From 4067d9b5ca84b2eee233cdab8fa92c531b4a4552 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Mon, 27 Nov 2023 07:03:27 -0600 Subject: [PATCH] use GH_REPO instead of --repo and REPO (#29826) Co-authored-by: hubwriter --- .../commenting-on-an-issue-when-a-label-is-added.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md b/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md index a06bd49313..db54bcb0f8 100644 --- a/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md +++ b/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md @@ -43,11 +43,11 @@ In the tutorial, you will first make a workflow file that uses the `gh issue com issues: write steps: - name: Add comment - run: gh issue comment "$NUMBER" --repo "$REPO" --body "$BODY" + run: gh issue comment "$NUMBER" --body "$BODY" env: GITHUB_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} + GH_REPO: {% raw %}${{ github.repository }}{% endraw %} NUMBER: {% raw %}${{ github.event.issue.number }}{% endraw %} - REPO: {% raw %}${{ github.repository }}{% endraw %} BODY: > This issue is available for anyone to work on. **Make sure to reference this issue in your pull request.**