diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-05 19:04:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 19:04:08 +0800 |
commit | aaeef295bb07b281fe0554aa6e97f24596d073aa (patch) | |
tree | 6df2fb31d6d3f3d50a14e1a992ab3f719683a658 /modules/notification/base | |
parent | 05e7715c4b2af174aefc56fe459e5c08a96a3017 (diff) | |
download | gitea-aaeef295bb07b281fe0554aa6e97f24596d073aa.tar.gz gitea-aaeef295bb07b281fe0554aa6e97f24596d073aa.zip |
Move pull webhook to notification (#8805)
* Move pull webhook to notification
* fix fmt
Diffstat (limited to 'modules/notification/base')
-rw-r--r-- | modules/notification/base/notifier.go | 1 | ||||
-rw-r--r-- | modules/notification/base/null.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go index ff865f19cf..286ebe5d69 100644 --- a/modules/notification/base/notifier.go +++ b/modules/notification/base/notifier.go @@ -30,6 +30,7 @@ type Notifier interface { NotifyNewPullRequest(*models.PullRequest) NotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository) + NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest) NotifyPullRequestReview(*models.PullRequest, *models.Review, *models.Comment) NotifyCreateIssueComment(*models.User, *models.Repository, diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go index c10e1b6340..5b6359cbd5 100644 --- a/modules/notification/base/null.go +++ b/modules/notification/base/null.go @@ -46,6 +46,10 @@ func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.R func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User, baseRepo *git.Repository) { } +// NotifyPullRequestSynchronized places a place holder function +func (*NullNotifier) NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest) { +} + // NotifyUpdateComment places a place holder function func (*NullNotifier) NotifyUpdateComment(doer *models.User, c *models.Comment, oldContent string) { } |