52 Commits (main)

Author SHA1 Message Date
Lunny Xiao 5454fdacd4
Use git model to detect whether branch exist instead of gitrepo method (#35459) 2 months ago
Lunny Xiao 69f5ee970c
Move some functions to gitrepo package (#35543) 3 months ago
Lunny Xiao 9332ff291b
Move git command to git/gitcmd (#35483) 3 months ago
Brecht Van Lommel a9343896f4
Option to delay conflict checking of old pull requests until page view (#27779) 8 months ago
TheFox0x7 ee3c82f874
Enable addtional linters (#34085) 9 months ago
TheFox0x7 2a59dfbd47
enable staticcheck QFxxxx rules (#34064) 9 months ago
Lunny Xiao 0056fdb942
Move git references checking to gitrepo packages to reduce expose of repository path (#33891) 10 months ago
TheFox0x7 ae3a18e01a
Remove context from git struct (#33793) 10 months ago
Lunny Xiao 751fe8b714
Move some errors to their own sub packages (#32880) 1 year ago
Lunny Xiao df7f1c2ead
Fix protected branch files detection on pre_receive hook (#31778) 1 year ago
Henry Goodman 12cb1d2998
Allow force push to protected branches (#28086) 1 year ago
wxiaoguang 7c613f100e
Make sure git version&feature are always prepared (#30877) 2 years ago
Chongyi Zheng e80466f734
Resolve lint for unused parameter and unnecessary type arguments (#30750) 2 years ago
silverwind 9b2536b78f
Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 2 years ago
silverwind 74f0c84fa4
Enable more `revive` linter rules (#30608) 2 years ago
wxiaoguang 3feba9f1f4
Allow everyone to read or write a wiki by a repo unit setting (#30495) 2 years ago
Lunny Xiao 29f149bd9f
Move context from modules to services (#29440) 2 years ago
wxiaoguang 1ef87773b1
Refactor modules/git global variables (#29376) 2 years 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) 2 years ago
Lunny Xiao 408a484224
Adjust object format interface (#28469) 2 years ago
Adam Majer cbf923e87b
Abstract hash function usage (#28138) 2 years ago
Lunny Xiao b167f35113
Add context parameter to some database functions (#26055) 2 years ago
Lunny Xiao f9cfd6ce5b
Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 3 years ago
wxiaoguang f4538791f5
Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 3 years ago
Jason Song 4011821c94
Implement actions (#21937) 3 years ago
Lunny Xiao 2782c14396
Supports wildcard protected branch (#20825) 3 years ago
Jason Song 7adc2de464
Use context parameter in models/git (#22367) 3 years ago
Lunny Xiao 0a7d3ff786
refactor some functions to support ctx as first parameter (#21878) 3 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 3 years ago
KN4CK3R 044c754ea5
Add `context.Context` to more methods (#21546) 3 years ago
wxiaoguang dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 3 years ago
Gusted 9eb6c4a0df
Add missing parameter for error in log message (#20144) 4 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 4 years ago
Lunny Xiao 1a9821f57a
Move issues related files into models/issues (#19931) 4 years ago
Lunny Xiao 110fc57cbc
Move some code into models/git (#19879) 4 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 4 years ago
Lunny Xiao cbd45471b1
Move access and repo permission to models/perm/access (#19350) 4 years ago
6543 92f139d091
Use for a repo action one database transaction (#19576) 4 years ago
6543 d8905cb623
Dont overwrite err with nil & rename PullCheckingFuncs to reflect there usage (#19572) 4 years ago
qwerty287 8eb1cd9264
Add "Allow edits from maintainer" feature (#18002) 4 years ago
6543 06e4687cec
more context for models (#19511) 4 years ago
wxiaoguang 124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 4 years ago
6543 9c349a4277
Move checks for pulls before merge into own function (#19271) 4 years ago
wxiaoguang 2b55422cd7
Fix the bug: deploy key with write access can not push (#19010) 4 years ago
6543 3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 4 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 4 years ago
luzpaz 8c647bf0f6
Fix various typos (#18219) 4 years ago
wxiaoguang 4da1d97810
Refactor HTTP request context (#17979) 4 years ago
Lunny Xiao 719bddcd76
Move repository model into models/repo (#17933) 4 years ago
Lunny Xiao a666829a37
Move user related model into models/user (#17781) 4 years ago