Commit Graph

49 Commits (5f82ead13cb7706d3f660271d94de6101cef4119)

Author SHA1 Message Date
Lunny Xiao 70c4aad8e1
Move more functions to db.Find (#28419) 10 months ago
wxiaoguang e743570f65
Refactor timeutil package (#28623) 11 months ago
delvh 778ad795fd
Refactor deletion (#28610) 11 months ago
nekrondev 52046b934d
Retry SSH key verification with additional CRLF if it failed (#28392) 11 months ago
Lunny Xiao dd30d9d5c0
Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 12 months ago
Lunny Xiao 882e502327
Fix comment permissions (#28213) 1 year ago
Lunny Xiao df1e7d0067
Use db.Find instead of writing methods for every object (#28084) 1 year ago
Lunny Xiao cddf245c12
Replace more db.DefaultContext (#27628) 1 year ago
JakobDev 76a85a4ce9
Final round of `db.DefaultContext` refactor (#27587) 1 year ago
Nanguan Lin dc04044716
Replace assert.Fail with assert.FailNow (#27578) 1 year ago
JakobDev ebe803e514
Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
Sebastian Grabowski 3c131307ac
Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536) 1 year ago
Lunny Xiao 673cf6af76
make writing main test easier (#27270) 1 year ago
JakobDev 7047df36d4
Another round of `db.DefaultContext` refactor (#27103) 1 year ago
JakobDev 76659b1114
Reduce usage of `db.DefaultContext` (#27073) 1 year ago
silverwind 887a683af9
Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
6543 8995046110
Less naked returns (#25713) 1 year ago
silverwind 88f835192d
Replace `interface{}` with `any` (#25686) 1 year ago
Lunny Xiao 377a0a20f0
Merge setting.InitXXX into one function with options (#24389) 2 years ago
Leon Busch-George 7a8a4f5432
Prefer native parser for SSH public key parsing (#23798) 2 years ago
Dmitry Sharshakov eb397c3e63
Allow adding SSH keys even if SSH server is disabled (#24025) 2 years ago
Lunny Xiao c53ad052d8
Refactor the setting to make unit test easier (#22405) 2 years ago
zeripath 52dd383b6d
Increase Content field size of gpg_key_import to MEDIUMTEXT (#22897) 2 years ago
Lunny Xiao bd820aa9c5
Add context cache as a request level cache (#22294) 2 years ago
zeripath 2914c5299b
Improve error report when user passes a private key (#22726) 2 years ago
Jason Song 477a1cc40e
Improve utils of slices (#22379) 2 years ago
KN4CK3R 3fef47b41c
Use ErrInvalidArgument in packages (#22268) 2 years ago
Gusted b76970f2e4
Fix key signature error page (#22229) 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
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
zeripath 716fcfcf72
Make every not exist error unwrappable to a fs.ErrNotExist (#20891) 2 years ago
zeripath 9d6a2034bc
Increase Content field size of gpg_key and public_key to MEDIUMTEXT (#20896) 2 years ago
zeripath 11bae50484
Pad GPG Key ID with preceding zeroes (#20878) 2 years ago
Lunny Xiao 86c85c19b6
Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 2 years ago
Lunny Xiao 26095115f4
Move some repository related code into sub package (#19711) 3 years ago
Lunny Xiao 12c742f8dc
Fix order by parameter (#19849) 3 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
Lunny Xiao b8911fb456
Use a struct as test options (#19393) 3 years ago
wxiaoguang 2b55422cd7
Fix the bug: deploy key with write access can not push (#19010) 3 years ago
zeripath 76e3111596
Collaborator trust model should trust collaborators (#18539) 3 years ago
luzpaz 8c647bf0f6
Fix various typos (#18219) 3 years ago
Gusted 242dddfcb7
Remove `ioutil` (#18222) 3 years ago
Lunny Xiao de8e3948a5
Refactor auth package (#17962) 3 years ago
6543 660c30db80
Migration 204 use Sync2 (#18044) 3 years ago
Wim 6fe756dc93
Add support for ssh commit signing (#17743) 3 years ago
Lunny Xiao 3ca5dc7e32
Move keys to models/asymkey (#17917) 3 years ago