Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1417 commits
Select commit Hold shift + click to select a range
b47cf57
ci: add gofumpt check in reviewdog (#4973)
Jan 6, 2022
f757b8f
fix: auto migration column order unpredictable (#4980)
halfcrazy Jan 6, 2022
0df42e9
feat: add `Connection` to execute multiple commands in a single conne…
Jan 7, 2022
eae7362
Fix return failed to begin transaction error when failed to start a t…
jinzhu Jan 7, 2022
a0d6ff1
time.Time, []byte type add alias support. (rebase master) (#4992)
piyongcai-liucai Jan 12, 2022
e5894ca
chore(deps): bump gorm.io/driver/mysql from 1.2.1 to 1.2.3 in /tests …
dependabot[bot] Jan 12, 2022
cec0d32
Support use clause.Expression as argument
jinzhu Jan 28, 2022
98c4b78
Add Session Initialized option
jinzhu Jan 28, 2022
c0bea44
fix: omit not work when use join (#5034)
li-jin-gou Jan 28, 2022
8c36732
preoload not allowd before count (#5023)
0fv Jan 30, 2022
8d293d4
Fix docker-compose test env for Mac M1
jinzhu Jan 30, 2022
f19b84d
Fix github action
jinzhu Jan 30, 2022
581a879
Added comments to existing methods
Saurabh-Thakre Jan 31, 2022
93b1a6f
Merge pull request #5043 from Saurabh-Thakre/patch-2
huacnlee Feb 4, 2022
416c4d0
Test query with Or and soft delete
jinzhu Feb 8, 2022
d222151
fix: replace empty table name result in panic (#5048)
li-jin-gou Feb 8, 2022
4eeb839
Better support Stringer when explain SQL
jinzhu Feb 9, 2022
df23650
Remove uncessary switch case
jinzhu Feb 9, 2022
a0aceeb
Migrator AlterColumn with full data type
jinzhu Feb 9, 2022
19ac396
fix: isPrintable incorrect (#5076)
li-jin-gou Feb 15, 2022
39d84cb
Add serializer support (#5078)
jinzhu Feb 16, 2022
0af95f5
Enhance migrator Columntype interface (#5088)
jinzhu Feb 19, 2022
e0b4e0e
Update auto stale days
jinzhu Feb 19, 2022
48ced75
Improve support for AutoMigrate
jinzhu Feb 19, 2022
5edc781
Fixed the use of "or" to be " OR ", to account for words that contain…
sammyrnycreal Feb 14, 2022
f3547e0
Inherit clone flag (NewDB) on transaction creation (#5012)
Gilwe Feb 20, 2022
664c5fb
strings.replace -> strings.replaceAll (#5095)
hu-quan-er Feb 20, 2022
7837fb6
fix typo in TxCommitter interface comment & improve CheckTruth, chek …
0x2d3c Feb 20, 2022
b1201fc
Fix update with customized time type, close #5101
jinzhu Feb 23, 2022
45ef1da
Fix naming longer then 64 chars with dots in table (#5045)
mnussbaum Feb 24, 2022
3741f25
feat: support gob serialize (#5108)
ag9920 Feb 24, 2022
6a18a15
Refactor check missing where condition
jinzhu Feb 25, 2022
397b583
fix: query scanner in single column
Feb 25, 2022
f2edda5
Refactor check missing where condition
jinzhu Feb 25, 2022
68bb537
Refactor scan into struct
jinzhu Feb 27, 2022
4d14ac3
Merge branch 'a631807682-i5091'
jinzhu Feb 27, 2022
530b0a1
Add fast path for ValueOf, ReflectValueOf
jinzhu Feb 27, 2022
43a72b3
Refactor Scan
jinzhu Feb 27, 2022
e2e802b
Refactor Scan
jinzhu Feb 28, 2022
996b96e
Add TxConnPoolBeginner and Tx interface
Feb 28, 2022
4e52349
Refactor Tx interface
jinzhu Mar 1, 2022
29a8557
ToSQL should enable SkipDefaultTransaction by default
CaoManhDat Mar 3, 2022
b566ed7
Merge pull request #5125 from CaoManhDat/master
huacnlee Mar 4, 2022
f961bf1
chore(deps): bump actions/checkout from 2 to 3 (#5133)
dependabot[bot] Mar 12, 2022
61b4c31
fix when index name is "type", parseFieldIndexes will set index TYPE …
labulakalia Mar 14, 2022
6befa0c
Refactor preload error check
jinzhu Mar 17, 2022
63ac66b
Support default tag for time.Time
jinzhu Mar 17, 2022
f3e2da5
Added offset when scanning the result back to struct, close #5143
Joker666 Mar 17, 2022
2990790
Use WriteByte for single byte operations (#5167)
moredure Mar 17, 2022
9b9ae32
fix: circular reference save, close #5140
a631807682 Mar 17, 2022
c2e36eb
fix: soft delete for join, close #5132
a631807682 Mar 17, 2022
5431da8
fix: preload panic when model and dest different close #5130
a631807682 Mar 18, 2022
e6f7da0
Support Variable Relation
jinzhu Mar 18, 2022
3c00980
fix: serializer use default valueOf in assignInterfacesToValue, close…
ag9920 Mar 18, 2022
d402765
test: fix utils.AssertEqual (#5172)
a631807682 Mar 18, 2022
540b475
Fix update select clause with before/after expressions, close #5164
jinzhu Mar 18, 2022
0097b39
Should ignore error when parsing default value for time, close #5176
jinzhu Mar 20, 2022
2d5cb99
style: fix linter check for NamingStrategy and onConflictOption (#5174)
ag9920 Mar 20, 2022
d66f37a
Add Go 1.18
jinzhu Mar 21, 2022
a7b3b59
Fix hooks order, close https://github.com/go-gorm/gorm.io/pull/519
jinzhu Mar 22, 2022
f92e674
Handle field set value error
jinzhu Mar 23, 2022
9a4d10b
style: fix coding typo (#5184)
ag9920 Mar 24, 2022
3d7019a
fix: throw err if association model miss primary key (#5187)
a631807682 Mar 24, 2022
6d40a83
Update README.md
qqxhb Mar 24, 2022
6c827ff
chore(deps): bump actions/cache from 2 to 3 (#5196)
dependabot[bot] Mar 28, 2022
9dd6ed9
Scan with Rows interface
jinzhu Mar 29, 2022
ea8509b
Use defer to close rows to avoid scan panic leak rows
jinzhu Mar 29, 2022
8333844
fix variable shadowing (#5212)
ZhangShenao Mar 31, 2022
cd03153
fix: context missing in association (#5214)
goxiaoy Apr 1, 2022
f7b52bb
unify db receiver name (#5215)
ZhangShenao Apr 1, 2022
9144969
Allow to use tag to disable auto create/update time
jinzhu Apr 2, 2022
38a2460
fix: tables lost when joins exists in from clause, close #5218
chein-huang Apr 2, 2022
81c4024
Offset issue resolved for scanning results back into struct (#5227)
Joker666 Apr 7, 2022
0729261
Support double ptr for Save
jinzhu Apr 8, 2022
5c9ef9a
Set permissions for GitHub actions (#5237)
naveensrinivasan Apr 10, 2022
41bef26
Remove shared sync pool for Scanner compatibility
jinzhu Apr 11, 2022
74e07b0
Serializer unixtime support ptr of int
jinzhu Apr 11, 2022
6aa6d37
Fix scanIntoStruct (#5241)
delmorof Apr 13, 2022
a65912c
fix: FirstOrCreate RowsAffected (#5250)
a631807682 Apr 13, 2022
771cbed
chore(deps): bump actions/stale from 4 to 5 (#5244)
dependabot[bot] Apr 13, 2022
ce53ea5
chore(deps): bump actions/setup-go from 2 to 3 (#5243)
dependabot[bot] Apr 13, 2022
d421c67
Remove ErrRecordNotFound error from log when using Save
jinzhu Apr 14, 2022
e0ed3ce
fix spelling mistake (#5256)
ZhangShenao Apr 14, 2022
b49ae84
fix: FindInBatches with offset limit (#5255)
a631807682 Apr 17, 2022
88c26b6
Support Scopes in group conditions
jinzhu Apr 20, 2022
395606a
fix missing error-check in AutoMigrate (#5283)
glebarez Apr 22, 2022
9b80fe9
fix: stmt.Changed zero value filed behavior (#5281)
a631807682 Apr 24, 2022
3643f85
check for pointer to pointer value (#5278)
aelmel Apr 24, 2022
a0cc631
test: test for postgrs serial column (#5234)
a631807682 Apr 24, 2022
0211ac9
index: add composite id (#5269)
photon3108 Apr 25, 2022
6a6dfda
Refactor FirstOrCreate, FirstOrInit
jinzhu Apr 26, 2022
bd7e42e
fix: AutoMigrate with special table name (#5301)
a631807682 Apr 27, 2022
d3488ae
fix: add judge result of auto_migrate (#5306)
Heliner Apr 30, 2022
b010494
fix: callbcak sort when using multiple plugin (#5304)
a631807682 Apr 30, 2022
19b8d37
fix: preload with skip hooks (#5310)
a631807682 May 4, 2022
373bcf7
fix: many2many auto migrate (#5322)
a631807682 May 9, 2022
f5e77aa
fix: quote index when creating table (#5331)
black-06 May 17, 2022
7496c3a
fix: trx in hooks clone stmt (#5338)
a631807682 May 17, 2022
540fb49
Fixed #5355 - Named variables don't work when followed by Windows CRL…
clarkmcc May 22, 2022
7d1a92d
test: test for skip prepared when auto migrate (#5350)
a631807682 May 22, 2022
7e13b03
fix: duplicate column scan (#5369)
a631807682 May 28, 2022
dc1ae39
fixed FirstOrCreate not handled error when table is not exists (#5367)
ophum May 28, 2022
93986de
fix: migrate column default value (#5359)
a631807682 May 28, 2022
f4e9904
chore(deps): bump gorm.io/driver/mysql from 1.3.3 to 1.3.4 in /tests …
dependabot[bot] Jun 1, 2022
d01de72
enhancement: Avoid calling reflect.New() when passing in slice of val…
Bexanderthebex Jun 1, 2022
8d45714
fix: reset null value in slice (#5417)
a631807682 Jun 14, 2022
1305f63
feat: add method GetIndexes (#5436)
qqxhb Jun 17, 2022
a70af2a
Fix Select with digits in column name
jinzhu Jun 20, 2022
93f28bc
use callback to handle transaction
sunfuze Jun 24, 2022
3e6ab99
fix:serializer contain field panic (#5461)
wuweishuo Jun 25, 2022
235c093
fix(MigrateColumn):declared different type without length (#5465)
a631807682 Jun 29, 2022
2cb4088
ignore AddError return error
sunfuze Jul 1, 2022
c74bc57
fix: association many2many duplicate elem (#5473)
a631807682 Jul 1, 2022
5c4016d
Merge pull request #5455 from longbridgeapp/feat-support-transaction-…
huacnlee Jul 1, 2022
46bce17
test: pg array type (#5480)
a631807682 Jul 4, 2022
fe01e1b
Fix Model with slice data
jinzhu Jul 7, 2022
9fd73ae
Revert "use callback to handle transaction"
jinzhu Jul 7, 2022
b13d175
Refactor Model with slice data
jinzhu Jul 7, 2022
62fdc2b
Fix serializer with empty string
jinzhu Jul 11, 2022
08f6d06
Fix select with quoted column name
jinzhu Jul 13, 2022
a706384
Fix select with uppercase column name
jinzhu Jul 13, 2022
cae30e9
Fix select with association column
jinzhu Jul 13, 2022
3262daf
Fix select with association column
jinzhu Jul 13, 2022
4d40e34
Update select tests
jinzhu Jul 14, 2022
099813b
Adjust ToStringKey use unpack params, fix pass []any as any in varia…
alingse Jul 14, 2022
2ba599e
fix empty QueryClauses in association (#5502) (#5503)
goxiaoy Jul 15, 2022
7572009
Create a new db in FindInBatches
jinzhu Jul 18, 2022
bab3cd1
fix bad logging performance of bulk create (#5520) (#5521)
zxdvd Jul 18, 2022
06e174e
fix: embedded default value (#5540)
a631807682 Jul 25, 2022
3c6eb14
Fixed some typos in the code comment
Minjerous Jul 26, 2022
6e03b97
fix: empty serilizer err #5524 (#5525)
philhuan Jul 27, 2022
f223279
chore: fix gorm tag (#5577)
a631807682 Aug 10, 2022
a358835
update Delete Godoc to describe soft delete behaviour (#5554)
bruc3mackenzi3 Aug 11, 2022
573b9fa
fix: correct grammar
seaworn Aug 12, 2022
ba227e8
Add Go 1.19 Support (#5608)
Aoang Aug 15, 2022
3f92b9b
Refactor: redundant type from composite literal (#5604)
zaneli Aug 15, 2022
8c3018b
Replace `ioutil.Discard` with `io.Discard` (#5603)
zaneli Aug 15, 2022
d71caef
fix: remove uuid autoincrement (#5620)
a631807682 Sep 3, 2022
f78f635
Optimize: code logic db.scanIntoStruct() (#5633)
demoManito Sep 5, 2022
b3eb1c8
simplified regexp (#5677)
xiaoliwang Sep 5, 2022
f29afdd
Rewrite of finisher_api Godocs (#5618)
bruc3mackenzi3 Sep 9, 2022
edb00c1
AutoMigrate() should always migrate checks, even there is no relation…
googollee Sep 14, 2022
4906259
fix: update omit (#5699)
qqxhb Sep 16, 2022
5ed7b1a
fix: same embedded filed name (#5705)
a631807682 Sep 22, 2022
1f634c3
support scan assign slice cap (#5634)
demoManito Sep 22, 2022
3a72ba1
Allow shared foreign key for many2many jointable
jinzhu Sep 21, 2022
101a7c7
fix: scan array (#5624)
a631807682 Sep 22, 2022
73bc53f
feat: migrator support type aliases (#5627)
a631807682 Sep 22, 2022
1223745
fix: use preparestmt in trasaction will use new conn, close #5508
li-jin-gou Sep 22, 2022
328f301
add some test case which related the logic (#5477)
nohattee Sep 22, 2022
e1dd0dc
chore(deps): bump actions/stale from 5 to 6 (#5717)
dependabot[bot] Sep 30, 2022
be440e7
fix possible nil panic in tests (#5720)
demoManito Sep 30, 2022
a3cc6c6
Fix: wrong value when Find with Join with same column name, close #57…
StephanoGeorge Sep 30, 2022
0b7113b
fix: prepare deadlock (#5568)
a631807682 Sep 30, 2022
9564b82
Fix OnConstraint builder (#5738)
xwjdsh Oct 7, 2022
4b22a55
fix: primaryFields are overwritten (#5721)
demoManito Oct 7, 2022
e8f48b5
fix: limit=0 results (#5735) (#5736)
robhafner Oct 7, 2022
34fbe84
Add TableName with NamingStrategy support, close #5726
jinzhu Oct 7, 2022
983e96f
Add tests for alter column type
jinzhu Oct 8, 2022
e93dc34
Test postgres autoincrement check
jinzhu Oct 8, 2022
2c56954
tests mariadb with returning support
jinzhu Oct 8, 2022
08aa2f9
Update README
jinzhu Oct 14, 2022
aa4312e
Don't display any GORM related package path as source
jinzhu Oct 13, 2022
2a788fb
Upgrade tests go.mod
jinzhu Oct 17, 2022
186e8a9
fix: association without pks (#5779)
a631807682 Oct 18, 2022
ab5f80a
Save as NULL for nil object serialized into json
jinzhu Oct 18, 2022
a0f4d3f
Save as empty string for not nullable nil field serialized into json
jinzhu Oct 18, 2022
62593cf
add test: TestAutoMigrateInt8PG: shouldn't execute ALTER COLUMN TYPE …
viatoriche Oct 18, 2022
3f20a54
Support use clause.Interface as query params
jinzhu Oct 18, 2022
5dd2bb4
feat(PreparedStmtDB): support reset (#5782)
a631807682 Oct 19, 2022
9d82aa5
test: invalid cache plan with prepare stmt (#5778)
a631807682 Oct 20, 2022
b2f4252
fix(Joins): args with select and omit (#5790)
a631807682 Nov 2, 2022
f82e9cf
test(clause/joins): add join unit test (#5832)
demoManito Nov 3, 2022
5c8ecc3
feat: golangci add goimports and whitespace (#5835)
demoManito Nov 5, 2022
fb640cf
test(utils): add utils unit test (#5834)
demoManito Nov 5, 2022
871f1de
fix logger path bug (#5836)
kvii Nov 5, 2022
1b9cd56
doc(README.md): add contributors (#5847)
demoManito Nov 10, 2022
cef3de6
cleanup(prepare_stmt.go): unnecessary map delete (#5849)
demoManito Nov 13, 2022
b6836c2
fix bug in windows (#5844)
kvii Nov 21, 2022
342310f
fix(FindInBatches): throw err if pk not exists (#5868)
a631807682 Nov 21, 2022
f913134
Fix group by with count logic
jinzhu Nov 21, 2022
f931def
clear code syntax (#5889)
wjw1758548031 Dec 1, 2022
d9525d4
fix: skip append relation field to default db value (#5885)
a631807682 Dec 1, 2022
4ec73c9
Add test case for embedded value selects (#5901)
emcfarlane Dec 19, 2022
f3c6fc2
Update func comments in chainable_api and FirstOr_ (#5935)
naterarmstrong Dec 23, 2022
bbd2bbe
fix:Issue migrating field with CURRENT_TIMESTAMP (#5906)
0fv Dec 24, 2022
775fa70
DryRun for migrator (#5689)
defool Dec 24, 2022
1935eb0
feat: support inner join (#5583)
a631807682 Dec 24, 2022
794edad
test(MigrateColumn): mock alter column to improve field compare (#5499)
a631807682 Dec 24, 2022
ddd3cc2
Add ParameterizedQueries option support for logger, close #5288
jinzhu Dec 25, 2022
7da24d1
chore(deps): bump actions/stale from 6 to 7 (#5945)
dependabot[bot] Dec 27, 2022
da2b286
fix(migrator): ignore relationships when migrating #5913 (#5946)
Nomango Jan 1, 2023
16a2722
fix(migrator): Tag default:'null' always causes field migration #5953…
Nomango Jan 1, 2023
4b768c8
Upgrade tests deps
jinzhu Jan 1, 2023
b0e13d9
update github tests action
jinzhu Jan 1, 2023
3d91802
Fix unexpected alter table in auto migration, close #5942, #5943
jinzhu Jan 2, 2023
2bc9137
support implicit table alias, close #5840 #5940
jinzhu Jan 2, 2023
baf1afa
fix(schema): field is only unique when there is one unique index (#5974)
Nomango Jan 11, 2023
3d35ddb
Fix use table.* as select/omit columns
jinzhu Jan 12, 2023
d834dd6
Remove unnecessary code
jinzhu Jan 19, 2023
cfbcedb
fix: support zeroValue tag on DeletedAt (#6011)
qiankunli Feb 1, 2023
4d6b70e
Allow modify statement from dest
jinzhu Feb 2, 2023
e1f46eb
fix: ignore nil query (#6021)
chyroc Feb 2, 2023
878ac51
fix:throw model value required error (#6031)
a631807682 Feb 8, 2023
02b7e26
feat: add tidb integration test cases (#6014)
Feb 8, 2023
532e9cf
Issue 6054: Unscoped not working with PreLoad on Joins (#6058)
manstis Feb 18, 2023
aa89736
fix: miss join type (#6056)
a631807682 Feb 18, 2023
42fc75c
fix: association concurrently appending (#6044)
black-06 Feb 18, 2023
e66a059
fix: update panic if model is not ptr (#6037)
black-06 Feb 18, 2023
04cbd95
test: pgsql migrate unique index (#6028)
a631807682 Feb 18, 2023
391c961
quotes on docker-compose.yml ports (#6089)
xiaoliwang Feb 27, 2023
a80707d
Create and drop view (#6097)
black-06 Feb 27, 2023
877cc91
Remove redundant code (#6087)
xiaoliwang Feb 27, 2023
f387433
Fix Save with stress tests
jinzhu Mar 2, 2023
85eaf9e
feat: Unique Constraint Violation error translator for different driv…
saeidee Mar 6, 2023
e9f25c7
fix: on confilct with default null (#6129)
a631807682 Mar 10, 2023
1643a36
Fix possible concurrency problem for serializer
jinzhu Mar 10, 2023
ed47415
Fix: Composite primary key with auto-increment value returns 0 after …
truongns Mar 10, 2023
707d70a
refactor: translate error only when it is not nil (#6133)
saeidee Mar 10, 2023
b621924
fix: diff schema update assign value (#6096)
a631807682 Mar 10, 2023
654b5f2
test: pgsql alter column from smallint or string to boolean (#6107)
jeffry-luqman Mar 10, 2023
8bf1f26
feat: support nested join (#6067)
a631807682 Mar 10, 2023
cc2d46e
reuse name for savepoints from nested transaction, close #6060
jinzhu Mar 10, 2023
d2dd0ce
chore(deps): bump actions/setup-go from 3 to 4 (#6165)
dependabot[bot] Mar 23, 2023
0c7e575
save should be idempotent #6139 (#6149)
black-06 Mar 23, 2023
1a7ea98
fix: count with group (#6157) (#6160)
black-06 Mar 23, 2023
5d1cdfe
avoid starting a transaction when performing only one insert operatio…
chenyahui Mar 23, 2023
b444011
refactor: translatorError flag added for backward compatibility (#6178)
saeidee Mar 24, 2023
f0360dc
fix: embedded should be nil if not exists (#6219)
a631807682 Apr 11, 2023
59ca46d
fix: `limit(0).offset(0)` return all data (#6191)
Hanwn Apr 11, 2023
1d9f4b0
chore(deps): bump actions/stale from 7 to 8 (#6190)
dependabot[bot] Apr 11, 2023
05bb9d6
refactor(migrator): non-standard codes (#6180)
demoManito Apr 11, 2023
ccc3cb7
fix: many2many association with duplicate belongs to elem (#6206)
bsmith-auth0 Apr 11, 2023
4b0da0e
fix cond in scopes (#6152)
black-06 Apr 11, 2023
828e22b
feat: support embedded preload (#6137)
black-06 Apr 11, 2023
e963702
Update README
jinzhu Apr 11, 2023
ac20d9e
fix: unit test (#6250)
black-06 Apr 21, 2023
32fc201
fix: avoid coroutine leaks when the dialecter initialization fails. (…
onlyice Apr 21, 2023
1f763c8
fix typo chainable_api.go (#6266)
yikakia Apr 26, 2023
407beda
fix: nested joins alias (#6265)
a631807682 Apr 26, 2023
aeb2986
debug: use slice Stale sort (#6263)
Hanwn Apr 26, 2023
67642ab
fix: 🐛 numeric types in pointer embedded struct test failed (#6293)
hykuan May 4, 2023
32045fd
feat: unscoped association (#5899) (#6246)
black-06 May 4, 2023
e61b98d
feat: migrator support table comment (#6225)
johnmai-dev May 5, 2023
02b6bc1
docs: add gorm.Dialector
philhuan May 12, 2023
0a91cbf
docs schema.Namer
philhuan May 12, 2023
28aa724
docs: Dialector
May 14, 2023
3f340d9
Merge branch 'go-gorm:master' into docs
philhuan May 14, 2023
6ce1b84
docs: add field
philhuan Aug 26, 2023
f011168
chore(deps): bump gorm.io/driver/postgres from 1.5.0 to 1.5.2 in /tests
dependabot[bot] Aug 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .codeclimate.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: [jinzhu]
patreon: jinzhu
open_collective: gorm
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: gomod
directory: /tests
schedule:
interval: weekly
166 changes: 166 additions & 0 deletions .github/labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"labels": {
"critical": {
"name": "type:critical",
"colour": "#E84137",
"description": "critical questions"
},
"question": {
"name": "type:question",
"colour": "#EDEDED",
"description": "general questions"
},
"feature": {
"name": "type:feature_request",
"colour": "#43952A",
"description": "feature request"
},
"invalid_question": {
"name": "type:invalid question",
"colour": "#CF2E1F",
"description": "invalid question (not related to GORM or described in document or not enough information provided)"
},
"with_playground": {
"name": "type:with reproduction steps",
"colour": "#00ff00",
"description": "with reproduction steps"
},
"without_playground": {
"name": "type:missing reproduction steps",
"colour": "#CF2E1F",
"description": "missing reproduction steps"
},
"has_pr": {
"name": "type:has pull request",
"colour": "#43952A",
"description": "has pull request"
},
"not_tested": {
"name": "type:not tested",
"colour": "#CF2E1F",
"description": "not tested"
},
"tested": {
"name": "type:tested",
"colour": "#00ff00",
"description": "tested"
},
"breaking_change": {
"name": "type:breaking change",
"colour": "#CF2E1F",
"description": "breaking change"
}
},
"issue": {
"with_playground": {
"requires": 1,
"conditions": [
{
"type": "descriptionMatches",
"pattern": "/github.com\/go-gorm\/playground\/pull\/\\d\\d+/s"
}
]
},
"critical": {
"requires": 1,
"conditions": [
{
"type": "descriptionMatches",
"pattern": "/(critical|urgent)/i"
},
{
"type": "titleMatches",
"pattern": "/(critical|urgent)/i"
}
]
},
"question": {
"requires": 1,
"conditions": [
{
"type": "titleMatches",
"pattern": "/question/i"
},
{
"type": "descriptionMatches",
"pattern": "/question/i"
}
]
},
"feature": {
"requires": 1,
"conditions": [
{
"type": "titleMatches",
"pattern": "/feature/i"
},
{
"type": "descriptionMatches",
"pattern": "/Describe the feature/i"
}
]
},
"without_playground": {
"requires": 6,
"conditions": [
{
"type": "descriptionMatches",
"pattern": "/^((?!github.com\/go-gorm\/playground\/pull\/\\d\\d+).)*$/s"
},
{
"type": "titleMatches",
"pattern": "/^((?!question).)*$/s"
},
{
"type": "descriptionMatches",
"pattern": "/^((?!question).)*$/is"
},
{
"type": "descriptionMatches",
"pattern": "/^((?!Describe the feature).)*$/is"
},
{
"type": "titleMatches",
"pattern": "/^((?!critical|urgent).)*$/s"
},
{
"type": "descriptionMatches",
"pattern": "/^((?!critical|urgent).)*$/s"
}
]
}
},
"pr": {
"critical": {
"requires": 1,
"conditions": [
{
"type": "descriptionMatches",
"pattern": "/(critical|urgent)/i"
},
{
"type": "titleMatches",
"pattern": "/(critical|urgent)/i"
}
]
},
"not_tested": {
"requires": 1,
"conditions": [
{
"type": "descriptionMatches",
"pattern": "/\\[\\] Tested/"
}
]
},
"breaking_change": {
"requires": 1,
"conditions": [
{
"type": "descriptionMatches",
"pattern": "/\\[\\] Non breaking API changes/"
}
]
}
}
}
28 changes: 28 additions & 0 deletions .github/workflows/invalid_question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Close invalid questions issues"
on:
schedule:
- cron: "*/10 * * * *"

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Close Stale Issues
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been marked as invalid question, please give more information by following the `Question` template, if you believe there is a bug of GORM, please create a pull request that could reproduce the issue on [https://github.com/go-gorm/playground](https://github.com/go-gorm/playground), the issue will be closed in 30 days if no further activity occurs. most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ [Search Before Asking](https://stackoverflow.com/help/how-to-ask) ✨"
stale-issue-label: "status:stale"
days-before-stale: 0
days-before-close: 30
remove-stale-when-updated: true
only-labels: "type:invalid question"

19 changes: 19 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Issue Labeler"
on:
issues:
types: [opened, edited, reopened]
pull_request:
types: [opened, edited, reopened]

jobs:
triage:
runs-on: ubuntu-latest
name: Label issues and pull requests
steps:
- name: check out
uses: actions/checkout@v3

- name: labeler
uses: jinzhu/super-labeler-action@develop
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
27 changes: 27 additions & 0 deletions .github/workflows/missing_playground.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Close Missing Playground issues"
on:
schedule:
- cron: "*/10 * * * *"

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Close Stale Issues
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout [https://github.com/go-gorm/playground](https://github.com/go-gorm/playground) for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the `Question` template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ [Search Before Asking](https://stackoverflow.com/help/how-to-ask) ✨"
stale-issue-label: "status:stale"
days-before-stale: 0
days-before-close: 30
remove-stale-when-updated: true
only-labels: "type:missing reproduction steps"
22 changes: 22 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: reviewdog
on: [pull_request]
jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2

- name: Setup reviewdog
uses: reviewdog/action-setup@v1

- name: gofumpt -s with reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install mvdan.cc/gofumpt@v0.2.0
gofumpt -e -d . | \
reviewdog -name="gofumpt" -f=diff -f.diff.strip=0 -reporter=github-pr-review
28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Stale"
on:
schedule:
- cron: "0 2 * * *"

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Close Stale Issues
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days"
days-before-stale: 360
days-before-close: 180
stale-issue-label: "status:stale"
exempt-issue-labels: 'type:feature,type:with reproduction steps,type:has pull request'
stale-pr-label: 'status:stale'
exempt-pr-labels: 'type:feature,type:with reproduction steps,type:has pull request'
Loading