Merge branch 'main' into feature/bots

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

No files matched your search

+5
View File
@@ -314,6 +314,11 @@ func (m *webhookNotifier) NotifyNewPullRequest(ctx context.Context, pull *issues
}
func (m *webhookNotifier) NotifyIssueChangeContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldContent string) {
if err := issue.LoadRepo(ctx); err != nil {
log.Error("LoadRepo: %v", err)
return
}
mode, _ := access_model.AccessLevel(ctx, issue.Poster, issue.Repo)
var err error
if issue.IsPull {