@@ -81,6 +81,7 @@ func (n *actionsNotifier) NotifyIssueChangeStatus(ctx context.Context, doer *use
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,6 +137,7 @@ func (n *actionsNotifier) NotifyIssueChangeLabels(ctx context.Context, doer *use
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,6 +162,10 @@ func (n *actionsNotifier) NotifyCreateIssueComment(ctx context.Context, doer *us
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,6 +176,7 @@ func (n *actionsNotifier) NotifyCreateIssueComment(ctx context.Context, doer *us
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
}
0 commit comments