Move some issue methods as functions (#19255)

* Move some issue methods as functions

* Fix bug
This commit is contained in:
Lunny Xiao authored and GitHub committed 2022-03-29 16:57:33 +02:00
1 parent bd97736b9c
commit 74731c3a5a
19 files changed
+63 -84

No files matched your search

+1 -1
View File
@@ -858,7 +858,7 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment
}
}
case CommentTypeReopen, CommentTypeClose:
if err = opts.Issue.updateClosedNum(ctx); err != nil {
if err = updateIssueClosedNum(ctx, opts.Issue); err != nil {
return err
}
}