@@ -81,6 +81,7 @@ func (n *actionsNotifier) NotifyIssueChangeStatus(ctx context.Context, doer *use
8181 newNotifyInputFromIssue (issue , webhook_module .HookEventPullRequest ).
8282 WithDoer (doer ).
8383 WithPayload (apiPullRequest ).
84+ WithPullRequest (issue .PullRequest ).
8485 Notify (ctx )
8586 return
8687 }
@@ -136,6 +137,7 @@ func (n *actionsNotifier) NotifyIssueChangeLabels(ctx context.Context, doer *use
136137 Repository : convert .ToRepo (ctx , issue .Repo , perm_model .AccessModeNone ),
137138 Sender : convert .ToUser (ctx , doer , nil ),
138139 }).
140+ WithPullRequest (issue .PullRequest ).
139141 Notify (ctx )
140142 return
141143 }
@@ -160,6 +162,10 @@ func (n *actionsNotifier) NotifyCreateIssueComment(ctx context.Context, doer *us
160162 mode , _ := access_model .AccessLevel (ctx , doer , repo )
161163
162164 if issue .IsPull {
165+ if err := issue .LoadPullRequest (ctx ); err != nil {
166+ log .Error ("LoadPullRequest: %v" , err )
167+ return
168+ }
163169 newNotifyInputFromIssue (issue , webhook_module .HookEventPullRequestComment ).
164170 WithDoer (doer ).
165171 WithPayload (& api.IssueCommentPayload {
@@ -170,6 +176,7 @@ func (n *actionsNotifier) NotifyCreateIssueComment(ctx context.Context, doer *us
170176 Sender : convert .ToUser (ctx , doer , nil ),
171177 IsPull : true ,
172178 }).
179+ WithPullRequest (issue .PullRequest ).
173180 Notify (ctx )
174181 return
175182 }
0 commit comments