We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2684137 commit 500af72Copy full SHA for 500af72
.github/workflows/handle-pr-comment.yml
@@ -56,9 +56,11 @@ jobs:
56
57
PR_NUMBER="${PR_COMMENT_URL%#*}" # skip the suffix with the comment ID
58
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://.*/}"
61
62
export GH_TOKEN="${{ secrets.GITHUB_TOKEN }}"
- eval "$(gh api repos/gitgitgadget/git/pulls/$PR_NUMBER \
63
+ eval "$(gh api repos/$PR_REPO/pulls/$PR_NUMBER \
64
--jq '"head_sha=\(.head.sha) && repo=\(.base.repo.full_name)"')"
65
echo "head_sha=$head_sha" >> $GITHUB_OUTPUT
66
echo "repo=$repo" >> $GITHUB_OUTPUT
0 commit comments