5982 Commits

Author SHA1 Message Date
Joe Chen
403e1fb219
Fix test 2023-12-17 16:46:07 -05:00
Joe Chen
f0fed90a0a
Add tests 2023-12-17 16:44:32 -05:00
Joe Chen
34e59c21f0
orgsSetMemberVisibility 2023-12-17 16:44:32 -05:00
Joe Chen
22526be6cf
orgsIsOwnedBy 2023-12-17 16:44:31 -05:00
Joe Chen
c5fa4cf93d
orgsListMembers 2023-12-17 16:44:31 -05:00
deepsource-autofix[bot]
54d5e4c399
style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in 12efef4 according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/7538
2023-12-17 16:44:31 -05:00
Joe Chen
b2a0ce6b53
orgsHasMember 2023-12-17 16:44:31 -05:00
Joe Chen
7d4c5b47a2
Check access before watch repo 2023-12-17 16:44:31 -05:00
Joe Chen
5ab8262fe1
orgsRemoveMember 2023-12-17 16:42:35 -05:00
Joe Chen
fce3e65b2c
orgsAddMember 2023-12-17 16:42:35 -05:00
Joe Chen
bf92bcdf66
orgsDeleteByID 2023-12-17 16:42:35 -05:00
Joe Chen
6345c503c8
orgsCount 2023-12-17 16:42:14 -05:00
Joe Chen
cbd3c7a40b
orgsList 2023-12-17 16:42:14 -05:00
Joe Chen
0ca926e87b
fixup 2023-12-17 16:42:14 -05:00
Joe Chen
26f8ddfca0
orgsGetByName 2023-12-17 16:42:14 -05:00
Joe Chen
ed260cbcb9
orgsCreate 2023-12-17 16:41:34 -05:00
Joe Chen
b49e4a4089
fixup 2023-12-17 16:39:41 -05:00
Joe Chen
9797508a0a
GetUserMirrorRepositories 2023-12-17 16:39:41 -05:00
Joe Chen
2971cabae1
getOrgUsersByOrgID 2023-12-17 16:39:41 -05:00
Joe Chen
849d281bfa
GetOwnedOrgsByUserIDDesc 2023-12-17 16:39:41 -05:00
Joe Chen
a18290d166
fix race 2023-12-17 16:39:41 -05:00
Joe Chen
b332af5653
Fix damn test 2023-12-17 16:39:41 -05:00
Joe Chen
bd31c3fa6f
Delete GetOrgsByUserID 2023-12-17 16:39:41 -05:00
Joe Chen
ac636b53cf
DeleteByID 2023-12-17 16:39:41 -05:00
Joe Chen
a44928493d
Fix Orgs.Join 2023-12-17 16:39:40 -05:00
Joe Chen
e0a14a54fe
Use OrganizationsStore.Create replace tests hack 2023-12-17 16:38:42 -05:00
Joe Chen
371c56e306
fixup 2023-12-17 16:37:40 -05:00
deepsource-autofix[bot]
9cc3cc7a26
style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in d1a28d3 according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/7538
2023-12-17 16:34:10 -05:00
Joe Chen
10fd9e9e38
db: migrate org.go to orgs.go with GORM 2023-12-17 16:34:09 -05:00
Joe Chen
25fdeaac49
db: pass context to tests by default (#7622)
[skip ci]
2023-12-17 16:32:28 -05:00
Joe Chen
0c7b45ad1f
locale: sync from Crowdin (#7621) 2023-12-16 21:31:21 -05:00
dependabot[bot]
5293781c0d
mod: bump golang.org/x/net from 0.17.0 to 0.19.0 (#7609)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 12:31:22 -05:00
dependabot[bot]
7a2c691c5b
mod: bump golang.org/x/text from 0.13.0 to 0.14.0 (#7608)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 12:25:35 -05:00
dependabot[bot]
dfc129ee98
mod: bump golang.org/x/crypto from 0.14.0 to 0.16.0 (#7607)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 12:25:21 -05:00
Joe Chen
1c711bc8d4
chore: move CODEOWNERS to .github/
[skip ci]
2023-11-17 19:20:20 -05:00
Joe Chen
31a0964e12
dbtest: properly close test connection (#7598) 2023-11-12 19:09:50 -05:00
Joe Chen
b644d797b4
chore: add CODEOWNERS 2023-11-12 19:08:26 -05:00
Joe Chen
61940ca879
chore: update security policy
[skip ci]
2023-11-09 22:10:42 -05:00
Joe Chen
16b185f97d
build: remove support of Go 1.18 and 1.19 (#7590) 2023-11-01 23:06:24 -04:00
Athanasios Oikonomou
c531da02ca
commit: fix matchUsersWithCommitEmails (#7561)
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-11-01 11:58:48 -04:00
dependabot[bot]
bc1b5e52a9
mod: bump modernc.org/sqlite from 1.26.0 to 1.27.0 (#7587)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 08:56:17 -04:00
dependabot[bot]
0b5257425f
mod: bump gorm.io/driver/postgres from 1.5.3 to 1.5.4 (#7588)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 08:55:58 -04:00
Joe Chen
7fb3dcb1eb
locale: sync from Crowdin (#7584) 2023-10-29 21:38:20 -04:00
dependabot[bot]
5c3fde8531
mod: bump gorm.io/driver/postgres from 1.5.2 to 1.5.3 (#7573)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 20:26:53 -04:00
dependabot[bot]
7bffc0d0e3
mod: bump gorm.io/gorm from 1.25.4 to 1.25.5 (#7574)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 20:14:39 -04:00
Joe Chen
748c67df8b
chore: slow down dep update to monthly
[ci skip]
2023-10-20 20:04:41 -04:00
dependabot[bot]
2d9be6c06b
mod: bump gorm.io/driver/mysql from 1.5.1 to 1.5.2 (#7575)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 20:03:59 -04:00
dependabot[bot]
493a56b262
mod: bump golang.org/x/net from 0.15.0 to 0.17.0 (#7569)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 00:11:23 -04:00
dependabot[bot]
3350740563
mod: bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 (#7560)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 22:51:35 -04:00
dependabot[bot]
89b123f9d1
mod: bump modernc.org/sqlite from 1.25.0 to 1.26.0 (#7559)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 22:51:11 -04:00