Fix issues count bug (#21557)

fix #19349 , #19505

Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
Lunny Xiaoanddelvh authored and GitHub committed 2022-10-25 14:47:46 +02:00
1 parent 29c00eb1ed
commit 5e8e3ecbeb
4 files changed
+29 -47

No files matched your search

+1 -1
View File
@@ -886,7 +886,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
}
}