Skip to content

Commit 3af47d5

Browse files
committed
handle-pr-comment: really look for the PR in the correct repo
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 500af72 commit 3af47d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/handle-pr-comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
5757
PR_NUMBER="${PR_COMMENT_URL%#*}" # skip the suffix with the comment ID
5858
PR_NUMBER="${PR_NUMBER##*/}" # skip the prefix before the PR number
59-
PR_REPO="${PR_COMMENT_URL%/$PR_NUMBER*#*}" # skip the suffix including the PR number
60-
PR_REPO="${PR_REPO#https://.*/}"
59+
PR_REPO="${PR_COMMENT_URL%/pull/$PR_NUMBER*#*}" # skip the suffix including the PR number
60+
PR_REPO="${PR_REPO#https://*/}"
6161
6262
export GH_TOKEN="${{ secrets.GITHUB_TOKEN }}"
6363
eval "$(gh api repos/$PR_REPO/pulls/$PR_NUMBER \

0 commit comments

Comments
 (0)