John Olheiser
ffc33714dc
Granular webhook events ( #9626 )
* Initial work
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add PR reviews and API coverage
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Split up events
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add migration and locale
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Format
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert IsPull
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix comments
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix PR reviews
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix issue_comment
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Migrations
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Backwards compatible API
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix feishu
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move session commit
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
6 years ago
Lunny Xiao
a1d35421d5
Add feishu webhook support ( #10229 )
Add feishu webhook support
6 years ago
John Olheiser
73bce7a050
Fix RocketChat ( #9908 )
* Fix RocketChat??
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Don't send attachment for repo create/delete
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
6 years ago
John Olheiser
48c246ca83
Add HTML URL to API Issues ( #9654 )
* Add HTML URL to API Issues
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
6 years ago
John Olheiser
143a3aa9e6
Add PR review webhook to Telegram ( #9653 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
6 years ago
John Olheiser
8be71c9c0a
Only show sender if it makes sense ( #9601 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
Cornel
55a7dc8b6b
Refactor webhooks to reduce code duplication ( #9422 )
* Start webhook refactoring to reduce code duplication
* More webhook refactoring
* Unify webhook release messages
* Fix webhook release link
* Remove sql import
* More webhook refactoring
* More webhook refactoring
* Webhook tests extended
* Fixed issue opened webhook
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
6 years ago
Cornel
5184c309fd
Fix Slack webhook payload title generation to work with Mattermost ( #9378 )
* Fix Slack webhook payload title generation to work with Mattermost by using a markdown link instead of html
* Fix Slack webhook attachment title and title link handling
6 years ago
John Olheiser
738f8907dc
Remove text from action-only webhooks ( #9377 )
* Remove text from contextual webhooks
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Missed one in Telegram
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
zeripath
eecb25d52b
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
6 years ago
Lauris BH
20936bdeff
Make consistent links to repository in the Slack/Mattermost notificiations ( #9205 )
6 years ago
Lunny Xiao
9932df9ee6
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
6 years ago
Lunny Xiao
ccfd918a9a
Move more webhook codes from models to webhook module ( #8802 )
* Move more webhook codes from models to webhook module
6 years ago
Lunny Xiao
33914aee50
Rename HookQueue to hookQueue ( #8778 )
* Rename HookQueue to hookQueue
* fix lint
6 years ago
Lunny Xiao
a01023f251
Move webhook to a standalone package under modules ( #8747 )
* Move webhook to a standalone package under modules
* fix test
* fix comments
6 years ago