diff options
Diffstat (limited to 'modules/notification/base')
-rw-r--r-- | modules/notification/base/notifier.go | 3 | ||||
-rw-r--r-- | modules/notification/base/null.go | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go index 12fde1737d..1c607ded3b 100644 --- a/modules/notification/base/notifier.go +++ b/modules/notification/base/notifier.go @@ -6,7 +6,6 @@ package base import ( "code.gitea.io/gitea/models" - "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/repository" ) @@ -32,7 +31,7 @@ type Notifier interface { addedLabels []*models.Label, removedLabels []*models.Label) NotifyNewPullRequest(*models.PullRequest) - NotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository) + NotifyMergePullRequest(*models.PullRequest, *models.User) NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest) NotifyPullRequestReview(*models.PullRequest, *models.Review, *models.Comment) NotifyPullRequestChangeTargetBranch(doer *models.User, pr *models.PullRequest, oldBranch string) diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go index 1f90f6519d..f6c423b469 100644 --- a/modules/notification/base/null.go +++ b/modules/notification/base/null.go @@ -6,7 +6,6 @@ package base import ( "code.gitea.io/gitea/models" - "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/repository" ) @@ -44,7 +43,7 @@ func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.R } // NotifyMergePullRequest places a place holder function -func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User, baseRepo *git.Repository) { +func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User) { } // NotifyPullRequestSynchronized places a place holder function |