Commit Graph

6170 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
074714d61f Fix lint and MySQL test failures: remove unused function and fix UUID column type
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:53:49 +00:00
copilot-swe-agent[bot]
68f049ad15 Replace XORM with GORM while maintaining functionality
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:20:20 +00:00
copilot-swe-agent[bot]
ec5eede78f Fix code review issues: FindInBatches usage and memory optimization
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:17:07 +00:00
copilot-swe-agent[bot]
06b85ac5ba Convert remaining files from XORM to GORM and fix unused imports
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:11:35 +00:00
copilot-swe-agent[bot]
c74b48bd2d Convert repo_branch.go and repo_collaboration.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:10:14 +00:00
copilot-swe-agent[bot]
e89db8393d Fix transaction scope issues in repo.go UpdateRepository and DeleteRepository
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:03:10 +00:00
copilot-swe-agent[bot]
653c95c842 Complete XORM to GORM migration for issue.go, pull.go, and repo.go
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:01:10 +00:00
deepsource-autofix[bot]
dfc768b968 style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in 63221df according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
2026-01-24 16:00:41 +00:00
copilot-swe-agent[bot]
63221dfec3 Complete XORM to GORM migration for internal/database/repo.go
- Replace import "xorm.io/xorm" with "gorm.io/gorm"
- Replace all Engine parameters with *gorm.DB
- Replace *xorm.Session parameters with *gorm.DB
- Convert all database queries from XORM to GORM syntax:
  - e.ID(id).Get(&model) → db.First(&model, id).Error
  - e.Insert(&model) → db.Create(&model).Error
  - e.Update(&model) → db.Updates(&model).Error
  - e.In("col", values) → db.Where("col IN ?", values)
  - e.Find(&results) → db.Find(&results).Error
  - e.Iterate() → db.FindInBatches()
- Convert transaction patterns from NewSession/Begin/Commit to db.Transaction()
- Replace global x variable with db
- Convert XORM AfterSet callback to GORM AfterFind hook
- Handle gorm.ErrRecordNotFound for missing records
- Fix related files: repositories.go, repo_collaboration.go, two_factor.go

Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 16:00:27 +00:00
deepsource-autofix[bot]
d2ff1fa978 style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in 748ecbf according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
2026-01-24 15:48:04 +00:00
copilot-swe-agent[bot]
748ecbfdf3 Complete XORM to GORM migration for internal/database/pull.go
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 15:47:50 +00:00
copilot-swe-agent[bot]
04d063c65d Complete XORM to GORM migration for issue.go and pull.go
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 15:43:22 +00:00
copilot-swe-agent[bot]
eebe4065c6 Migrate internal/database/backup.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 01:21:38 +00:00
copilot-swe-agent[bot]
de9f03d533 Migrate webhook.go, org_team.go, ssh_key.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 01:17:45 +00:00
copilot-swe-agent[bot]
8d43893af2 Migrate internal/database/ssh_key.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 01:15:23 +00:00
copilot-swe-agent[bot]
233f0fb18d Migrate internal/database/org_team.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 01:07:23 +00:00
copilot-swe-agent[bot]
aba381e7f8 Migrate webhook.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 01:00:42 +00:00
deepsource-autofix[bot]
1a285ca5ce style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in b74ce2f according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
2026-01-24 00:52:55 +00:00
copilot-swe-agent[bot]
b74ce2f6bc Migrate org.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 00:52:43 +00:00
deepsource-autofix[bot]
5469f017bc style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in cddfd5f according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
2026-01-24 00:51:36 +00:00
copilot-swe-agent[bot]
cddfd5fbb9 Migrate issue_label.go and comment.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 00:51:00 +00:00
deepsource-autofix[bot]
9bd5123bcf style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in 589bf5f according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
2026-01-24 00:47:06 +00:00
copilot-swe-agent[bot]
589bf5f532 Convert release.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 00:46:54 +00:00
copilot-swe-agent[bot]
9d9175df80 Convert mirror.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 00:45:29 +00:00
deepsource-autofix[bot]
e3e107f95d style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in 36833b1 according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
2026-01-24 00:44:38 +00:00
copilot-swe-agent[bot]
36833b135e Convert milestone.go from XORM to GORM
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 00:44:21 +00:00
deepsource-autofix[bot]
d5954c42eb style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in f9478a3 according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
2026-01-24 00:43:07 +00:00
copilot-swe-agent[bot]
f9478a3f76 Initial XORM to GORM migration: models.go and attachment.go converted
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-24 00:42:51 +00:00
copilot-swe-agent[bot]
9bfb9a719b Initial plan 2026-01-24 00:34:38 +00:00
Joe Chen
a7bc1637db chore: update AGENTS.md
[skip ci]
2026-01-23 12:20:51 -05:00
Joe Chen
f1102a7a7c release: cut CHANGELOG entries for 0.13.4
[skip ci]
2026-01-23 10:13:11 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
26ef07f60d repo: validate Git server hook name for editing (#8103) 2026-01-23 09:40:36 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
ca59e76a53 api: verify write access to update repo content (#8102) 2026-01-23 09:19:11 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
27f1250d00 api: verify owner access to delete repos (#8101) 2026-01-22 22:52:57 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
560f92ec5f two_factor: verify recovery code ownership upon using (#8100) 2026-01-22 22:30:27 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
1bbc36149a wiki: sanitize old wiki page name when editing (#8099) 2026-01-22 11:00:27 -05:00
Copilot
4ee706b2bf chore: replace pkg/errors with cockroachdb/errors (#8098)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com>
2026-01-22 08:20:53 -05:00
Copilot
ae59787ff5 chore: remove internal/database/errors package (#8096) 2026-01-22 07:17:34 -05:00
Copilot
389ec54b2c chore: rename osutil.IsExist to osutil.Exist (#8097) 2026-01-21 22:22:07 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
5544212adb wiki: auto-detect default branch (#8094) 2026-01-20 23:38:10 -05:00
Joe Chen
6e1e4cb848 chore: update AGENTS.md
[skip ci]
2026-01-19 22:13:49 -05:00
deepsource-autofix[bot]
8e08450182 style: format code with Go fmt and Gofumpt (#8092) 2026-01-19 14:54:13 -05:00
Shivam Kumar
beeeb64969 repo: check directory existence before creation (#8091)
Co-authored-by: ᴊᴏᴇ ᴄʜᴇɴ <jc@unknwon.io>
2026-01-19 14:36:38 -05:00
Mukaiu
3ef71a43d9 api: fix nil pointer dereference when listing user repos (#8069)
Co-authored-by: Joe Chen <jc@unknwon.io>
2026-01-18 21:01:03 -05:00
Joe Chen
e44284fada chore: add AGENTS.md
[skip ci]
2026-01-18 21:00:19 -05:00
Shivam Kumar
b7010084b7 auth: support redirecting to custom URL upon sign out (#8089)
Co-authored-by: ᴊᴏᴇ ᴄʜᴇɴ <jc@unknwon.io>
2026-01-16 15:44:26 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
b8ab712819 chore: update pull request template checklist
[skip ci]
2026-01-16 14:38:59 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
59e9fa191b chore: remove all MIT license file headers (#8083)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2026-01-08 19:32:15 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
553707f3fd repository: reject any updates that has symlink in path hierarchy (#8082)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-08 14:22:04 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
b6030ba713 docker-next: fix up Git user home directory and permission issue (#8081) 2026-01-07 10:33:27 -05:00