Commit Graph

54 Commits (c207b94e0c99080fe7f43c3049469883fe4dde15)

Author SHA1 Message Date
wxiaoguang 18f26cfbf7
Improve queue and logger context (#24924) 2 years ago
wxiaoguang 6f9c278559
Rewrite queue (#24505) 2 years ago
Jason Song c8c2a31818
Add force_merge to merge request and fix checking mergable (#23010) 2 years ago
yp05327 bd66fa586a
Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
Lunny Xiao bd820aa9c5
Add context cache as a request level cache (#22294) 2 years ago
zeripath 3c5655ce18
Improve trace logging for pulls and processes (#22633) 2 years ago
Lunny Xiao 2782c14396
Supports wildcard protected branch (#20825) 2 years ago
Jason Song 6cf09ccab4
Use complete SHA to create and query commit status (#22244) 2 years ago
Lunny Xiao 68704532c2
Rename almost all Ctx functions (#22071) 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 dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
Ing. Jaroslav Šafka 8420c1bf4c
Fix checks in PR for empty commits #19603 (#20290) 2 years ago
Lunny Xiao 1a9821f57a
Move issues related files into models/issues (#19931) 2 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
Lunny Xiao cbd45471b1
Move access and repo permission to models/perm/access (#19350) 3 years ago
6543 f034ee6cf0
PullService lock via pullID (#19520) 3 years ago
6543 92f139d091
Use for a repo action one database transaction (#19576) 3 years ago
6543 d8905cb623
Dont overwrite err with nil & rename PullCheckingFuncs to reflect there usage (#19572) 3 years ago
6543 06e4687cec
more context for models (#19511) 3 years ago
Gusted 5e68fe7d37
Don't allow merging PR's which are being conflict checked (#19357) 3 years ago
wxiaoguang 124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 3 years ago
6543 9c349a4277
Move checks for pulls before merge into own function (#19271) 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
6543 3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 3 years ago
zeripath a82fd98d53
Pause queues (#15928) 3 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 3 years ago
Lunny Xiao 719bddcd76
Move repository model into models/repo (#17933) 3 years ago
Lunny Xiao a666829a37
Move user related model into models/user (#17781) 3 years ago
Lunny Xiao 99b2858e62
Move unit into models/unit/ (#17576) 3 years ago
Lunny Xiao 4a57c9ea17
Fix some lints (#17337) 3 years ago
Eng Zer Jun f2e7d5477f
refactor: move from io/ioutil to io and os package (#17109) 3 years ago
Lunny Xiao 8d7704b5a2
Fix dump and restore respository (#16698) 3 years ago
Lunny Xiao 5fef041079
Remove unnecessary goroutine (#16080) 3 years ago
a1012112796 a5279b74b6
Make manual merge autodetection optional and add manual merge as merge method (#12543) 4 years ago
6543 a19447aed1
migrate from com.* to alternatives (#14103) 4 years ago
赵智超 dfa7291f8f
[Enhancement] Allow admin to merge pr with protected file changes (#12078) 4 years ago
zeripath 74bd9691c6
Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
zeripath 408bc2c8b5
Only update merge_base in checker if not already merged (#10908) 5 years ago
zeripath 4a2b76d9c8
Update mergebase in pr checker (#10586) 5 years ago
zeripath 875c5e1305 Only check for conflicts/merging if the PR has not been merged in the interim (#10132) 5 years ago
zeripath 2c903383b5
Add Unique Queue infrastructure and move TestPullRequests to this (#9856) 5 years ago
6543 06cd3e03a2 [refactor] notify remove unused praram (#9804) 5 years ago
Lunny Xiao 8878cfa4a1
Fix lint (#9688) 5 years ago
zeripath 17b844a3ec Move Errored PRs out of StatusChecking (#9675) 5 years ago
Lunny Xiao 59d6401486
Use ioutil.TmpDir for new created temp directory (#9368) 5 years ago