7af2ccd511
Avoid sending "0 new commits" webhooks ( #12212 )
...
* Avoid sending "0 new commits" webhook
Signed-off-by: Till Faelligen <[email protected] >
* Revert "Avoid sending "0 new commits" webhook"
This reverts commit 1f47ccfacd81470e2c33a02bb8d255172aa4ec08.
* Move commit count check to more central place
* Make tests pass
* Update modules/webhook/webhook.go
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: zeripath <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-09-02 22:46:02 -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
dcefcc10e6
Add missing templates ( #11729 )
...
Signed-off-by: Till Faelligen <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-06-02 22:04:52 -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