1
0
Fork 0
forked from forgejo/forgejo

Fix issues count bug (#21600)

backport #21557
This commit is contained in:
Lunny Xiao 2022-10-26 20:42:45 +08:00 committed by GitHub
parent e504410708
commit 291787a5ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 55 deletions

View file

@ -881,7 +881,7 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment
}
}
case CommentTypeReopen, CommentTypeClose:
if err = updateIssueClosedNum(ctx, opts.Issue); err != nil {
if err = repo_model.UpdateRepoIssueNumbers(ctx, opts.Issue.RepoID, opts.Issue.IsPull, true); err != nil {
return err
}
}