loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add `WithPullRequest` for `actionsNotifier` (#25144)

authored by

Zettat123 and committed by
GitHub
15d238d3 c17423e0

+7
+7
services/actions/notifier.go
··· 81 81 newNotifyInputFromIssue(issue, webhook_module.HookEventPullRequest). 82 82 WithDoer(doer). 83 83 WithPayload(apiPullRequest). 84 + WithPullRequest(issue.PullRequest). 84 85 Notify(ctx) 85 86 return 86 87 } ··· 136 137 Repository: convert.ToRepo(ctx, issue.Repo, perm_model.AccessModeNone), 137 138 Sender: convert.ToUser(ctx, doer, nil), 138 139 }). 140 + WithPullRequest(issue.PullRequest). 139 141 Notify(ctx) 140 142 return 141 143 } ··· 160 162 mode, _ := access_model.AccessLevel(ctx, doer, repo) 161 163 162 164 if issue.IsPull { 165 + if err := issue.LoadPullRequest(ctx); err != nil { 166 + log.Error("LoadPullRequest: %v", err) 167 + return 168 + } 163 169 newNotifyInputFromIssue(issue, webhook_module.HookEventPullRequestComment). 164 170 WithDoer(doer). 165 171 WithPayload(&api.IssueCommentPayload{ ··· 170 176 Sender: convert.ToUser(ctx, doer, nil), 171 177 IsPull: true, 172 178 }). 179 + WithPullRequest(issue.PullRequest). 173 180 Notify(ctx) 174 181 return 175 182 }