Commit Graph

45 Commits (e24f651c86a5168da8181f2c75f5f99b56561224)

Author SHA1 Message Date
wxiaoguang f6e029e6c7
Make repo migration cancelable and fix various bugs (#24605) 2 years ago
wxiaoguang ce9dee5a1e
Introduce path Clean/Join helper functions (#23495) 2 years ago
Lunny Xiao b116418f05
Use CleanPath instead of path.Clean (#23371) 2 years ago
Lauris BH 58b4143803
Add loading yaml label template files (#22976) 2 years ago
Sybren b383652e02
Fix assignment to `cm.AssigneeID` when importing comments (#22528) 2 years ago
Sybren 151b1a9508
Support importing comment types (#22510) 2 years ago
Jason Song 71ca3067bc
Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
Lunny Xiao 0a7d3ff786
refactor some functions to support ctx as first parameter (#21878) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
wxiaoguang dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
techknowlogick 9e2f37404c
Foreign ID conflicts if ID is 0 for each item (#21271) 2 years ago
zeripath e6b3be4608
Add more checks in migration code (#21011) 2 years ago
Lunny Xiao 1d8543e7db
Move some files into models' sub packages (#20262) 2 years ago
Chongyi Zheng 966e7bdc9b
Correctly handle draft releases without a tag (#20314) 2 years ago
Lunny Xiao 1a9821f57a
Move issues related files into models/issues (#19931) 2 years ago
zeripath 7948cb3149
Prevent NPE whilst migrating if there is a team request review (#19855) 2 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
Lunny Xiao 2728f0c213
Fix migrate release from github (#19510) 3 years ago
6543 fe274c148b
Add notags to fetch (#19487) 3 years ago
chavacava deffe9e525
Fix datarace in gitea_uploader.go (#19409) 3 years ago
Lunny Xiao 1dfa26e00e
Move milestone to models/issues/ (#19278) 3 years ago
wxiaoguang 124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 3 years ago
Lunny Xiao d4f84f1c93
Move reaction to models/issues/ (#19264) 3 years ago
6543 3e88af898a
Make git.OpenRepository accept Context (#19260) 3 years ago
wxiaoguang 7a550b3af2
Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 3 years ago
Aravinth Manivannan fa73cbf5a7
Store the foreign ID of issues during migration (#18446) 3 years ago
singuliere 49cab2b01f
migrations: add test for importing pull requests in gitea uploader (#18752) 3 years ago
singuliere 54dd0fc88b
migrations: remove dead code in gitea uploader (#18725) 3 years ago
6543 3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 3 years ago
singuliere 8bd89ca294
preserve users if restoring a repository on the same Gitea instance (#18604) 3 years ago
Gusted cafd19c1a3
Replace `sync.Map` with normal maps (#18584) 3 years ago
singuliere 367894adc8
add test coverage for original author conversion during migrations (#18506) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 3 years ago
Aravinth Manivannan 076cead40d
Fix CheckRepoStats and reuse it during migration (#18264) 3 years ago
zeripath ffc08c1914
Do not read or write git reference files directly (#18079) 3 years ago
Lunny Xiao 5723240490
Some repository refactors (#17950) 3 years ago
Lunny Xiao 719bddcd76
Move repository model into models/repo (#17933) 3 years ago
Lunny Xiao 9defddb286
Move more model into models/user (#17826) 3 years ago
Lunny Xiao a666829a37
Move user related model into models/user (#17781) 3 years ago
wxiaoguang 013fb73068
Use `hostmatcher` to replace `matchlist`, improve security (#17605) 3 years ago
Lunny Xiao fc3d082609
Move attachment into models/repo/ (#17650) 3 years ago
99rgosse e1d655991b
Fix Migrate Description (#17692) 3 years ago
Lunny Xiao 7e1ae38097
Move migrations into services and base into modules/migration (#17663) 3 years ago
Gusted ebaf4c48ea
Avoid double imports (#17569) 3 years ago
99rgosse 88fa9f3fb1
Remove heads pointing to missing old refs (#17076) 3 years ago
Lunny Xiao a4bfef265d
Move db related basic functions to models/db (#17075) 3 years ago
Lunny Xiao de2e96e37b
Ignore review comment when ref commit is missed (#16905) 3 years ago
Lunny Xiao 8d7704b5a2
Fix dump and restore respository (#16698) 3 years ago