diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-03 14:59:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-03 14:59:26 +0800 |
commit | 022d2d8beb6297016ed26b0090c6a4a4ac404437 (patch) | |
tree | aa6ca5fa9415661d02e97b66251166d456efa18e /modules/notification/base/notifier.go | |
parent | fe7a6d9bfcbcf53bfe2d24f4d8e7463c897b9389 (diff) | |
download | gitea-022d2d8beb6297016ed26b0090c6a4a4ac404437.tar.gz gitea-022d2d8beb6297016ed26b0090c6a4a4ac404437.zip |
Move push commits events to notification (#8783)
* Move push commits events to notification
* Update modules/notification/base/null.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'modules/notification/base/notifier.go')
-rw-r--r-- | modules/notification/base/notifier.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go index b0e7b4cae8..ff865f19cf 100644 --- a/modules/notification/base/notifier.go +++ b/modules/notification/base/notifier.go @@ -40,4 +40,6 @@ type Notifier interface { NotifyNewRelease(rel *models.Release) NotifyUpdateRelease(doer *models.User, rel *models.Release) NotifyDeleteRelease(doer *models.User, rel *models.Release) + + NotifyPushCommits(pusher *models.User, repo *models.Repository, refName, oldCommitID, newCommitID string, commits *models.PushCommits) } |