From b9612e6ecaa301e61f92b81e4dbc86791e5cee27 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 26 May 2026 10:50:31 -0400 Subject: [PATCH] Inline support-requests GH action logic and drop external action (#15097) * Remove third party GH action * Consolidate issue label checks --- .github/workflows/close-no-repro-issue.yml | 25 ---------- .github/workflows/issue-checks.yml | 55 ++++++++++++++++++++++ .github/workflows/support.yml | 25 ---------- scripts/close-no-repro-issue.md | 7 --- 4 files changed, 55 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/close-no-repro-issue.yml create mode 100644 .github/workflows/issue-checks.yml delete mode 100644 .github/workflows/support.yml delete mode 100644 scripts/close-no-repro-issue.md diff --git a/.github/workflows/close-no-repro-issue.yml b/.github/workflows/close-no-repro-issue.yml deleted file mode 100644 index 24c490d8a5..0000000000 --- a/.github/workflows/close-no-repro-issue.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Close a singular issue without a reproduction -# Triggered by adding the `no-reproduction` label to an issue - -name: 🚪 Close issue without a reproduction - -on: - issues: - types: [labeled] - -jobs: - close-no-repro-issue: - name: 🚪 Close issue - if: github.repository == 'remix-run/react-router' && github.event.label.name == 'no-reproduction' - runs-on: ubuntu-latest - steps: - - name: ⬇️ Checkout repo - uses: actions/checkout@v6 - - - name: 🚪 Close issue - env: - GH_TOKEN: ${{ github.token }} - run: | - gh issue comment ${{ github.event.issue.number }} -F ./scripts/close-no-repro-issue.md - gh issue edit ${{ github.event.issue.number }} --remove-label ${{ github.event.label.name }} - gh issue close ${{ github.event.issue.number }} -r "not planned"; diff --git a/.github/workflows/issue-checks.yml b/.github/workflows/issue-checks.yml new file mode 100644 index 0000000000..b3767ef074 --- /dev/null +++ b/.github/workflows/issue-checks.yml @@ -0,0 +1,55 @@ +# Issue automation triggered by labels + +name: Issue Checks + +on: + issues: + types: [labeled] + +permissions: + issues: write + +jobs: + close-no-repro-issue: + name: Close issue without a reproduction + if: github.repository == 'remix-run/react-router' && github.event.label.name == 'no-reproduction' + runs-on: ubuntu-latest + steps: + - name: Close issue + env: + GH_TOKEN: ${{ github.token }} + COMMENT_BODY: | + To align with our new [Open Governance](https://remix.run/blog/rr-governance) model, we are now requiring that all issues have a [**minimal** and **runnable** reproduction](https://github.com/remix-run/react-router/blob/main/GOVERNANCE.md#bugissue-process). This should help us to focus on actionable issues and be more responsive to newly filed issues. + + To get this re-opened, please add a reproduction to the Issue description and tag `@brophdawg11` or `@brookslybrand` in a comment so we can re-open. + + Or, if this was closed by mistake and there is a valid reproduction, please ensure that it is linked in the Issue description and tag `@brophdawg11` or `@brookslybrand` in a comment so we can re-open. + + If you have any questions, you can always reach out on [Discord](https://rmx.as/discord). Thanks again for providing feedback and helping us make React Router even better! + run: | + gh issue comment ${{ github.event.issue.number }} --body "$COMMENT_BODY" + gh issue edit ${{ github.event.issue.number }} --remove-label "${{ github.event.label.name }}" + gh issue close ${{ github.event.issue.number }} -r "not planned" + + close-support-issue: + name: Close support issue + if: github.repository == 'remix-run/react-router' && github.event.label.name == 'support' + runs-on: ubuntu-latest + steps: + - name: Close issue + env: + GH_TOKEN: ${{ github.token }} + COMMENT_BODY: | + :wave: @${{ github.event.issue.user.login }}, we use the issue tracker exclusively for bug reports + and feature requests. However, this issue appears to be a support request. + + For usage questions, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/react-router) + or [Discord](https://rmx.as/discord) where there are a lot more people ready to help you out, or + [post a new question](https://github.com/remix-run/react-router/discussions/new?category=q-a) in the + Discussions tab of this repository. + + Please feel free to clarify your issue if you think it was closed prematurely. + run: | + gh issue comment ${{ github.event.issue.number }} --body "$COMMENT_BODY" + gh issue edit ${{ github.event.issue.number }} --remove-label "${{ github.event.label.name }}" + gh issue close ${{ github.event.issue.number }} -r "not planned" diff --git a/.github/workflows/support.yml b/.github/workflows/support.yml deleted file mode 100644 index be506d9b36..0000000000 --- a/.github/workflows/support.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: "Support Requests" - -on: - issues: - types: [labeled, unlabeled, reopened] - -permissions: - issues: write - -jobs: - action: - runs-on: ubuntu-latest - steps: - - uses: dessant/support-requests@v4 - with: - issue-comment: > - :wave: @{issue-author}, we use the issue tracker exclusively for bug reports - and feature requests. However, this issue appears to be a support request. - - For usage questions, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/react-router) - or [Discord](https://rmx.as/discord) where there are a lot more people ready to help you out, or - [post a new question](https://github.com/remix-run/react-router/discussions/new?category=q-a) in the - Discussions tab of this repository. - - Please feel free to clarify your issue if you think it was closed prematurely. diff --git a/scripts/close-no-repro-issue.md b/scripts/close-no-repro-issue.md deleted file mode 100644 index 3e57a24847..0000000000 --- a/scripts/close-no-repro-issue.md +++ /dev/null @@ -1,7 +0,0 @@ -To align with our new [Open Governance](https://remix.run/blog/rr-governance) model, we are now requiring that all issues have a [**minimal** and **runnable** reproduction](https://github.com/remix-run/react-router/blob/main/GOVERNANCE.md#bugissue-process). This should help us to focus on actionable issues and be more responsive to newly filed issues. - -To get this re-opened, please add a reproduction to the Issue description and tag `@brophdawg11` or `@brookslybrand` in a comment so we can re-open. - -Or, if this was closed by mistake and there is a valid reproduction, please ensure that it is linked in the Issue description and tag `@brophdawg11` or `@brookslybrand` in a comment so we can re-open. - -If you have any questions, you can always reach out on [Discord](https://rmx.as/discord). Thanks again for providing feedback and helping us make React Router even better!