51 Commits (main)

Author SHA1 Message Date
wxiaoguang 0cbaa0b662
Remove incorrect "db.DefaultContext" usages (#35366) 4 months ago
Lunny Xiao 65cd3f5309
Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 5 months ago
ChristopherHX cda90eca31
Add workflow_run api + webhook (#33964) 6 months ago
silverwind 1f35435b81
Run `gopls modernize` on codebase (#34751) 6 months ago
hiifong aada0370e7
fix webhook url (#34186) 8 months ago
TheFox0x7 0fde8ecd55
Enable testifylint rules (#34075) 9 months ago
TheFox0x7 2a59dfbd47
enable staticcheck QFxxxx rules (#34064) 9 months ago
ChristopherHX 651ef66966
Add workflow_job webhook (#33694) 9 months ago
TheFox0x7 cc1fdc84ca
Use test context in tests and new loop system in benchmarks (#33648) 10 months ago
Lunny Xiao e94f37f95e
Refactor webhook events (#33337) 11 months ago
Michael B. a90af22003
Let API create and edit system webhooks, attempt 2 (#33180) 11 months ago
TheFox0x7 33e8e82c4b
Enable tenv and testifylint rules (#32852) 1 year ago
oliverpool 26653b196b
Store webhook event in database (#29145) 2 years ago
6543 a3f05d0d98
remove util.OptionalBool and related functions (#29513) 2 years ago
delvh 778ad795fd
Refactor deletion (#28610) 2 years 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) 2 years ago
Lunny Xiao 882e502327
Fix comment permissions (#28213) 2 years ago
Lunny Xiao df1e7d0067
Use db.Find instead of writing methods for every object (#28084) 2 years ago
JakobDev 76a85a4ce9
Final round of `db.DefaultContext` refactor (#27587) 2 years ago
Lunny Xiao 673cf6af76
make writing main test easier (#27270) 2 years ago
silverwind 88f835192d
Replace `interface{}` with `any` (#25686) 2 years ago
谈笑风生间 309354c70e
New webhook trigger for receiving Pull Request review requests (#24481) 3 years ago
yp05327 dbb3736785
Fix incorrect webhook time and use relative-time to display it (#24477) 3 years ago
KN4CK3R 2173f14708
Add user webhooks (#21563) 3 years ago
Lunny Xiao c0015979a6
Support system hook API (#14537) 3 years ago
Jason Song 3dbd2d942b
Remove old HookEventType (#22358) 3 years ago
delvh 0f4e1b9ac6
Restructure `webhook` module (#22256) 3 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 3 years ago
zeripath 787f6c3227
Ensure that Webhook tasks are not double delivered (#21558) 3 years ago
Lunny Xiao 34283a74e8
Allow detect whether it's in a database transaction for a context.Context (#21756) 3 years ago
oliverpool b6e81357bd
Add Webhook authorization header (#20926) 3 years ago
Lunny Xiao f337c32e86
Add index for hook_task table (#21545) 3 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 3 years ago
KN4CK3R 1887c95254
Decouple HookTask from Repository (#17940) 3 years ago
zeripath 716fcfcf72
Make every not exist error unwrappable to a fs.ErrNotExist (#20891) 3 years ago
Aaron F 3963625b6e
Webhook for Wiki changes (#20219) 3 years ago
Lunny Xiao 86c85c19b6
Refactor AssertExistsAndLoadBean to use generics (#20797) 3 years ago
Gabriel Vasile cf06e20c0d
Check webhooks slice length before calling xorm (#20642) 3 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 4 years ago
Wim 62104b4896
Alter hook_task TEXT fields to LONGTEXT (#20038) 4 years ago
Lunny Xiao 26095115f4
Move some repository related code into sub package (#19711) 4 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 4 years ago
Lunny Xiao b8911fb456
Use a struct as test options (#19393) 4 years ago
KN4CK3R 1d332342db
Add Package Registry (#16510) 4 years ago
zeripath d6fa138e7c
Only send webhook events to active system webhooks and only deliver to active hooks (#19234) 4 years ago
Dr. Tobias Quathamer 3349fd8f79
Add packagist webhook (#18224) 4 years ago
KN4CK3R bf7b083cfe
Add replay of webhooks. (#18191) 4 years ago
Lunny Xiao d710af6669
Remove NewSession method from db.Engine interface (#17577) 4 years ago
wxiaoguang 81926d61db
Decouple unit test, remove intermediate `unittestbridge` package (#17662) 4 years ago
wxiaoguang df64fa4865
Decouple unit test code from business code (#17623) 4 years ago