b51bd7f1d6
Refactor webhook payload convertion ( #12310 )
...
* Refactor webhook payload convertion
* Fix lint
Co-authored-by: techknowlogick <[email protected] >
2020-09-04 22:57:13 -04:00
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
ebc35f2b2e
Fix comments webhook panic ( #12046 )
...
* Fix webhook comment handling type cast panic
* Handle HookIssueReviewed action in webhook
Co-authored-by: Lunny Xiao <[email protected] >
2020-06-24 23:39:43 -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