Commit Graph

69 Commits (9bc5552c11f6aca08c8c873a0561882b3e099350)

Author SHA1 Message Date
Lunny Xiao 930bae2300
Add cache for branch divergence on branch list page (#29577) 8 months ago
Lunny Xiao 25b842df26
Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 8 months ago
Jason Song 5bdf805e05
Sync branches to DB immediately when handle git hook calling (#29493) 8 months ago
Lunny Xiao b79c30435f
Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 9 months ago
Jason Song 0ea8de2d07
Do not use lower tag names to find releases/tags (#29261) 9 months ago
Lunny Xiao 5f82ead13c
Simplify how git repositories are opened (#28937) 10 months ago
Lunny Xiao 70c4aad8e1
Move more functions to db.Find (#28419) 10 months ago
Lunny Xiao 408a484224
Adjust object format interface (#28469) 11 months ago
Adam Majer cbf923e87b
Abstract hash function usage (#28138) 11 months ago
Lunny Xiao aeb383025f
Also sync DB branches on push if necessary (#28361) 11 months ago
Earl Warren 1bfcdeef4c
Make pushUpdate error verbose (#28263) 12 months ago
JakobDev f91dbbba98
Next round of `db.DefaultContext` refactor (#27089) 1 year ago
Lunny Xiao 540bf9fa6d
Move notification interface to services layer (#26915) 1 year ago
Lunny Xiao b167f35113
Add context parameter to some database functions (#26055) 1 year ago
Lunny Xiao 01c04607c7
Fix bug when pushing to a pull request which enabled dismiss approval automatically (#25882) 1 year ago
Lunny Xiao 65acd1e9ef
Fix branch commit message too long problem (#25588) 1 year ago
Lunny Xiao 6e19484f4d
Sync branches into databases (#22743) 1 year ago
Lunny Xiao 0d47b0ab1d
Remove duplicated functions when deleting a branch (#25128) 1 year ago
wxiaoguang 18f26cfbf7
Improve queue and logger context (#24924) 1 year ago
Lunny Xiao f9cfd6ce5b
Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 1 year ago
wxiaoguang 6f9c278559
Rewrite queue (#24505) 2 years ago
Wiktor Kwapisiewicz b78c955958
Fix tags view (#23243) 2 years ago
Brecht Van Lommel 8bdc0acf97
Fix pull request update showing too many commits with multiple branches (#22856) 2 years ago
Jason Song 1960ad5c90
Improve cache context (#23330) 2 years ago
Jason Song 04347eb810
Use context parameter in services/repository (#23186) 2 years ago
Lunny Xiao bd820aa9c5
Add context cache as a request level cache (#22294) 2 years ago
Jason Song 4011821c94
Implement actions (#21937) 2 years ago
zeripath 4199d28053
When updating by rebase we need to set the environment for head repo (#22535) 2 years ago
Jason Song 7adc2de464
Use context parameter in models/git (#22367) 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
KN4CK3R 044c754ea5
Add `context.Context` to more methods (#21546) 2 years ago
Lunny Xiao 34283a74e8
Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
wxiaoguang 11ac14cfe1
Fix incorrect notification commit url (#21479) 2 years ago
Lunny Xiao 1d8543e7db
Move some files into models' sub packages (#20262) 2 years ago
Lunny Xiao 110fc57cbc
Move some code into models/git (#19879) 2 years ago
Lunny Xiao 26095115f4
Move some repository related code into sub package (#19711) 2 years ago
Lunny Xiao e09fb30d34
improvement some release related code (#19867) 2 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
6543 3e88af898a
Make git.OpenRepository accept Context (#19260) 3 years ago
a1012112796 0eff23dae0
Fix compare link in active feeds for new branch (#19149) 3 years ago
wxiaoguang 7a550b3af2
Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 3 years ago
zeripath a82fd98d53
Pause queues (#15928) 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
6543 ff00b8688b
Fix NPE on try to get tag reference via API (#18245) 3 years ago
KN4CK3R 8fa97a25f0
Set HeadCommit when creating tags. (#18116) 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