bf60146444
Don't use legacy method to send Matrix Webhook ( #12348 )
...
* Don't use legacy send for messages
* Add migrations to ensure Matrix webhooks use PUT
* Set HTTP method to PUT as default
* Fix sql condition..
Signed-off-by: Till Faelligen <[email protected] >
* Rename getTxnID -> getMatrixTxnID
* Use local variable instead of constant value
Co-authored-by: techknowlogick <[email protected] >
2020-07-30 18:04:19 -04:00
4a04740daf
Handle panics that percolate up to the graceful module ( #11291 )
...
* Handle panics in graceful goroutines
Adds a some deferred functions to handle panics in graceful goroutines
Signed-off-by: Andrew Thornton <[email protected] >
* Handle panic in webhook.Deliver
Signed-off-by: Andrew Thornton <[email protected] >
* Handle panic in mirror.syncMirror
Signed-off-by: Andrew Thornton <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-05-14 20:06:00 -04:00
828a27feeb
Add Matrix webhook ( #10831 )
...
* Add Matrix webhook
Signed-off-by: Till Faelligen <[email protected] >
* Add template and related translations for Matrix hook
Signed-off-by: Till Faelligen <[email protected] >
* Add actual webhook routes and form
Signed-off-by: Till Faelligen <[email protected] >
* Add missing file
Signed-off-by: Till Faelligen <[email protected] >
* Update modules/webhook/matrix_test.go
* Use stricter regex to replace URLs
Signed-off-by: Till Faelligen <[email protected] >
* Escape url and text
Signed-off-by: Till Faelligen <[email protected] >
* Remove unnecessary whitespace
* Fix copy and paste mistake
Co-Authored-By: Tulir Asokan <[email protected] >
* Fix indention inconsistency
* Use Authorization header instead of url parameter
* Add raw commit information to webhook
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: Tulir Asokan <[email protected] >
2020-03-28 15:09:55 +02:00
3f1c0841cb
Granular webhook events ( #9626 )
...
* Initial work
Signed-off-by: jolheiser <[email protected] >
* Add PR reviews and API coverage
Signed-off-by: jolheiser <[email protected] >
* Split up events
Signed-off-by: jolheiser <[email protected] >
* Add migration and locale
Signed-off-by: jolheiser <[email protected] >
* Format
Signed-off-by: jolheiser <[email protected] >
* Revert IsPull
Signed-off-by: jolheiser <[email protected] >
* Fix comments
Signed-off-by: jolheiser <[email protected] >
* Fix tests
Signed-off-by: jolheiser <[email protected] >
* Fix PR reviews
Signed-off-by: jolheiser <[email protected] >
* Fix issue_comment
Signed-off-by: jolheiser <[email protected] >
* Make fmt
Signed-off-by: jolheiser <[email protected] >
* Migrations
Signed-off-by: jolheiser <[email protected] >
* Backwards compatible API
Signed-off-by: jolheiser <[email protected] >
* Fix feishu
Signed-off-by: jolheiser <[email protected] >
* Move session commit
Signed-off-by: jolheiser <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: guillep2k <[email protected] >
2020-03-06 07:10:48 +02:00
zeripath and GitHub
e3c3b33ea7
Graceful: Xorm, RepoIndexer, Cron and Others ( #9282 )
...
* Change graceful to use a singleton obtained through GetManager instead of a global.
* Graceful: Make TestPullRequests shutdownable
* Graceful: Make the cron tasks graceful
* Graceful: AddTestPullRequest run in graceful ctx
* Graceful: SyncMirrors shutdown
* Graceful: SetDefaultContext for Xorm to be HammerContext
* Avoid starting graceful for migrate commands and checkout
* Graceful: DeliverHooks now can be shutdown
* Fix multiple syncing errors in modules/sync/UniqueQueue & Make UniqueQueue closable
* Begin the process of making the repo indexer shutdown gracefully
2019-12-15 09:51:28 +00:00
Lunny Xiao and techknowlogick
55bdc9aa38
Webhook support custom proxy ( #8760 )
...
* Webhook support custom proxy
* Add glob support on webhook proxy host rules
* fix app.ini.sample
* improve code and app.ini.sample
* update cheetsheet about added webhook options
2019-11-08 16:25:53 -05:00
Lunny Xiao and GitHub
f518fe6662
Rename HookQueue to hookQueue ( #8778 )
...
* Rename HookQueue to hookQueue
* fix lint
2019-11-02 10:35:12 +08:00
Lunny Xiao and zeripath
0e7f7df3cf
Move webhook to a standalone package under modules ( #8747 )
...
* Move webhook to a standalone package under modules
* fix test
* fix comments
2019-11-01 22:51:22 +00:00