1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-07 13:28:25 +00:00

Add deleting branch comment

This commit is contained in:
Lunny Xiao
2024-11-09 22:04:09 -08:00
parent 70b06b8fcc
commit ac0a4eae42
2 changed files with 43 additions and 13 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ func pushUpdates(optsList []*repo_module.PushUpdateOptions) error {
}
}
if err = pull_service.CloseBranchPulls(ctx, pusher, repo.ID, branch); err != nil {
if err = pull_service.ClosePullsCausedByBranchDeleted(ctx, pusher, repo.ID, branch); err != nil {
// close all related pulls
log.Error("close related pull request failed: %v", err)
}