File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,19 @@ function TryPostPackagesReadyNoticeOnPrepareReleasePullRequest {
113113 }
114114
115115 $foundComment = $false
116+
117+ $expectedCommentAuthorLogin = $expectedPrAuthorUserName
118+
119+ # The GitHub API requires bot users to be prefixed with "app/" when querying issues/PRs, but the login in the
120+ # response for comments does not include the "app/" prefix, so we need to trim it off here to find the comment.
121+ if ($expectedCommentAuthorLogin.StartsWith (" app/" ))
122+ {
123+ $expectedCommentAuthorLogin = $expectedCommentAuthorLogin.Substring (4 )
124+ }
125+
116126 foreach ($comment in $pr.comments )
117127 {
118- if ($comment.author.login -eq $expectedPrAuthorUserName -and $comment.body.StartsWith (" I just pushed the [$tag ]" ))
128+ if ($comment.author.login -eq $expectedCommentAuthorLogin -and $comment.body.StartsWith (" I just pushed the [$tag ]" ))
119129 {
120130 $foundComment = $true
121131 break
You can’t perform that action at this time.
0 commit comments