The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Yidi Sprei 62bd0b9331
Add GitHub Actions workflow to automate release creation on tagged pushes (#7209)
* feat(workflows): add GitHub Action to create release on new tag

This workflow automates the release creation process whenever a new
tag is pushed to the repository. It checks if a release for the tag
already exists and creates one if it doesn't, enhancing the release
management and streamlining the deployment process.

* test

* fix(workflow): improve release existence check in release-on-tag.yml

Refactor the script to improve checking for existing releases by tag.
Return an object instead of using core.setOutput to streamline the
workflow logic. Also, set result-encoding to string for better
compatibility.

* fix(workflow): correct output handling in release-on-tag.yml

Corrected the output handling in the 'release-on-tag.yml' workflow file
by changing 'result-encoding' to 'outputs'. This ensures that the step
correctly checks if a release exists before attempting to create a new
one, thereby avoiding potential errors during the release process.
Added a blank line for better readability.

* fix(workflow): correct output setting in release-on-tag workflow

Refactored how the release_exists output is set to be compatible with
GitHub Actions syntax. This ensures the workflow reliably detects if
a release already exists, improving the robustness of the release
process.

* fix(release): correct output handling in release-on-tag workflow

Improved the way outputs are managed in the 'check_release' step by
returning values instead of direct assignments. This change ensures
better handling of release existence checks and improves code
readability. Added 'result-encoding' to specify string encoding for
results.

* fix(workflow): correct release existence check and add debug output

Refactored the release existence check to return a simple boolean
string ('true'/'false') rather than an object. Added a step to print
the release existence status for debugging purposes. This ensures
correct conditional evaluation and aids in troubleshooting workflow
issues.

* fix(workflow): simplify release process by removing redundant checks

The release-on-tag workflow has been streamlined by eliminating the
redundant steps checking for existing releases. This change reduces
complexity and speeds up the release process by directly creating a
release on every tag push without prior existence verification.
2024-09-30 14:18:13 +08:00
.github Add GitHub Actions workflow to automate release creation on tagged pushes (#7209) 2024-09-30 14:18:13 +08:00
callbacks fix: AfterQuery using safer right trim while clearing from clause's join added as part of https://github.com/go-gorm/gorm/pull/7027 (#7153) 2024-08-22 19:03:42 +08:00
clause fix: not clause with or condition (#6984) 2024-04-25 20:22:53 +08:00
logger fix: 'type XXXX int' will print wrong sql to terminal (#6917) 2024-03-21 16:00:02 +08:00
migrator Fix panic bug in migrator due to lack of nil check for stmt.Schema (#6932) 2024-04-26 15:15:49 +08:00
schema fix map fields with clickhouse driver 2024-06-20 20:19:31 +08:00
tests Use official SQL Server docker image for tests (#7205) 2024-09-30 11:21:19 +08:00
utils fix: AfterQuery using safer right trim while clearing from clause's join added as part of https://github.com/go-gorm/gorm/pull/7027 (#7153) 2024-08-22 19:03:42 +08:00
.gitignore Adjust ToStringKey use unpack params, fix pass []any as any in variadic function (#5500) 2022-07-14 20:05:22 +08:00
.golangci.yml feat: golangci add goimports and whitespace (#5835) 2022-11-05 08:37:37 +08:00
LICENSE renamed License to LICENSE (#6336) 2023-05-21 21:24:00 +08:00
README.md docs: fix broken link (#6673) 2023-11-07 10:20:06 +08:00
association.go Fix association replace non-addressable panic (#7012) 2024-06-12 18:49:45 +08:00
callbacks.go fix: remove `callback` from `callbacks` if `Remove()` called (#6916) 2024-03-26 11:33:36 +08:00
chainable_api.go feat: add MapColumns method (#6901) 2024-06-24 17:42:59 +08:00
errors.go Add new error for "Violation Check Constraint" (#6992) 2024-04-26 10:53:17 +08:00
finisher_api.go Generate unique savepoint names for nested transactions (#7174) 2024-09-14 20:58:29 +08:00
go.mod fix: strings.Title -> cases.Title bcs strings.Title library is deprecated (#6999) 2024-06-12 11:46:59 +08:00
go.sum fix: strings.Title -> cases.Title bcs strings.Title library is deprecated (#6999) 2024-06-12 11:46:59 +08:00
gorm.go add DB level propagation for the Unscoped flag (#7007) 2024-06-17 11:59:06 +08:00
interfaces.go feat: rm GetDBConnWithContext method (#6535) 2023-08-19 21:33:31 +08:00
migrator.go feat: add MigrateColumnUnique (#6640) 2023-10-30 17:15:49 +08:00
model.go Issue 6054: Unscoped not working with PreLoad on Joins (#6058) 2023-02-18 09:06:43 +08:00
prepare_stmt.go fix memory leaks in PrepareStatementDB (#7142) 2024-08-22 19:02:05 +08:00
scan.go feat: add MapColumns method (#6901) 2024-06-24 17:42:59 +08:00
soft_delete.go fix: support zeroValue tag on DeletedAt (#6011) 2023-02-01 14:40:55 +08:00
statement.go feat: add MapColumns method (#6901) 2024-06-24 17:42:59 +08:00
statement_test.go fix: join and select mytable.* not working (#6761) 2023-12-23 21:19:41 +08:00

README.md

GORM

The fantastic ORM library for Golang, aims to be developer friendly.

go report card test status MIT license Go.Dev reference

Overview

  • Full-Featured ORM
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
  • Hooks (Before/After Create/Save/Update/Delete/Find)
  • Eager loading with Preload, Joins
  • Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
  • Context, Prepared Statement Mode, DryRun Mode
  • Batch Insert, FindInBatches, Find To Map
  • SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, NamedArg, Search/Update/Create with SQL Expr
  • Composite Primary Key
  • Auto Migrations
  • Logger
  • Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus…
  • Every feature comes with tests
  • Developer Friendly

Getting Started

Contributing

You can help to deliver a better GORM, check out things you can do

Contributors

Thank you for contributing to the GORM framework!

License

© Jinzhu, 2013~time.Now

Released under the MIT License