Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song
2022-12-09 16:20:28 +08:00
committed by GitHub
25 changed files with 1761 additions and 91 deletions

View File

@ -875,6 +875,8 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment
return fmt.Errorf("update attachment [%d]: %w", attachments[i].ID, err)
}
}
comment.Attachments = attachments
case CommentTypeReopen, CommentTypeClose:
if err = repo_model.UpdateRepoIssueNumbers(ctx, opts.Issue.RepoID, opts.Issue.IsPull, true); err != nil {
return err