diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/pull/check.go | 8 | ||||
-rw-r--r-- | services/pull/merge.go | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/services/pull/check.go b/services/pull/check.go index c5d8a585cb..5d380b4609 100644 --- a/services/pull/check.go +++ b/services/pull/check.go @@ -147,13 +147,7 @@ func manuallyMerged(pr *models.PullRequest) bool { return false } - baseGitRepo, err := git.OpenRepository(pr.BaseRepo.RepoPath()) - if err != nil { - log.Error("OpenRepository[%s] : %v", pr.BaseRepo.RepoPath(), err) - return false - } - - notification.NotifyMergePullRequest(pr, merger, baseGitRepo) + notification.NotifyMergePullRequest(pr, merger) log.Info("manuallyMerged[%d]: Marked as manually merged into %s/%s by commit id: %s", pr.ID, pr.BaseRepo.Name, pr.BaseBranch, commit.ID.String()) return true diff --git a/services/pull/merge.go b/services/pull/merge.go index f6f0abe836..5e077f6dc0 100644 --- a/services/pull/merge.go +++ b/services/pull/merge.go @@ -350,7 +350,7 @@ func Merge(pr *models.PullRequest, doer *models.User, baseGitRepo *git.Repositor log.Error("setMerged [%d]: %v", pr.ID, err) } - notification.NotifyMergePullRequest(pr, doer, baseGitRepo) + notification.NotifyMergePullRequest(pr, doer) // Reset cached commit count cache.Remove(pr.Issue.Repo.GetCommitsCountCacheKey(pr.BaseBranch, true)) |