1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-19 20:58:11 +00:00

call notifier after merging a pr

This commit is contained in:
Zettat123
2024-04-26 16:47:06 +08:00
parent 4ff54933f8
commit 078d120ac5
11 changed files with 29 additions and 19 deletions

View File

@@ -499,10 +499,6 @@ func (pr *PullRequest) SetMerged(ctx context.Context) (bool, error) {
return false, err
}
if _, err := changeIssueStatus(ctx, pr.Issue, pr.Merger, true, true); err != nil {
return false, fmt.Errorf("Issue.changeStatus: %w", err)
}
// reset the conflicted files as there cannot be any if we're merged
pr.ConflictedFiles = []string{}