You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -122,7 +140,7 @@ export async function report(): Promise<void> {
122
140
if(!commentId){
123
141
console.log('Creating new comment')
124
142
try{
125
-
constnewComment=awaitcreateIssueComment(octokit,{ ...repo,issue_number: pull_number, body })
143
+
constnewComment=awaitcreateIssueComment(octokit,{ ...repo,issue_number: pr, body })
126
144
commentId=newComment.id
127
145
console.log(`Created new comment #${commentId}`)
128
146
}catch(error: unknown){
@@ -145,7 +163,7 @@ export async function report(): Promise<void> {
145
163
endGroup()
146
164
}
147
165
148
-
if(!commentId&&hasPR){
166
+
if(!commentId&&pr){
149
167
constintro=`Unable to comment on your PR — this can happen for PR's originating from a fork without write permissions. You can copy the test results directly into a comment using the markdown summary below:`
150
168
warning(`${intro}\n\n${body}`,{title: 'Unable to comment on PR'})
0 commit comments