Move mirror sync actions to notification (#9022)

* Move mirror sync actions to notification

* fix lint
This commit is contained in:
Lunny Xiao authored and techknowlogick committed 2019-11-24 00:16:59 -05:00
1 parent e3f22ad2cc
commit 8ab35eefc4
8 files changed
+135 -81

No files matched your search

+4
View File
@@ -47,4 +47,8 @@ type Notifier interface {
NotifyPushCommits(pusher *models.User, repo *models.Repository, refName, oldCommitID, newCommitID string, commits *models.PushCommits)
NotifyCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string)
NotifyDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string)
NotifySyncPushCommits(pusher *models.User, repo *models.Repository, refName, oldCommitID, newCommitID string, commits *models.PushCommits)
NotifySyncCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string)
NotifySyncDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string)
}