From 596422e7f0eefc2a8970ba2febc0f32b69d4b564 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Wed, 5 Jul 2023 14:14:07 +0200 Subject: [PATCH] chore: fix labelling GH action (#14300) --- .github/workflows/issues.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 91550b94622c..88dfd8f78d76 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -13,14 +13,16 @@ jobs: runs-on: ubuntu-latest steps: - if: "${{ github.event.label.name == ':speech_balloon: Question' }}" - run: gh issue close ${{ github.event.issue.number }} --comment "Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/jestjs) or our [discord channel](https://discord.gg/j6FKKQQrW9) for questions." + run: gh issue close $ISSUE --comment "Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/jestjs) or our [discord channel](https://discord.gg/j6FKKQQrW9) for questions." env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.html_url }} bug-without-repro: name: Bug reports without reproductions runs-on: ubuntu-latest steps: - if: "${{ github.event.label.name == 'Needs Reproduction' }}" - run: gh issue close ${{ github.event.issue.number }} --comment "As noted in the [Bug Report template](https://github.com/jestjs/jest/blob/main/.github/ISSUE_TEMPLATE/bug.yml), all bug reports requires a minimal reproduction. Please open up a new issue providing one. Read more at https://stackoverflow.com/help/minimal-reproducible-example." + run: gh issue close $ISSUE --comment "As noted in the [Bug Report template](https://github.com/jestjs/jest/blob/main/.github/ISSUE_TEMPLATE/bug.yml), all bug reports requires a minimal reproduction. Please open up a new issue providing one. Read more at https://stackoverflow.com/help/minimal-reproducible-example." env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.html_url }}