From 3c831c19a644fbb2f393f969ebaa5137f9415793 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Fri, 17 Jan 2025 19:31:11 -0600 Subject: [PATCH] chore: added issue auto-closer --- .github/workflows/label-non-jdx-issues.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/label-non-jdx-issues.yml diff --git a/.github/workflows/label-non-jdx-issues.yml b/.github/workflows/label-non-jdx-issues.yml new file mode 100644 index 0000000000..e701fafadf --- /dev/null +++ b/.github/workflows/label-non-jdx-issues.yml @@ -0,0 +1,15 @@ +name: issue-closer + +on: + issues: + types: [opened] + +jobs: + label-issue: + runs-on: ubuntu-latest + if: github.actor != 'jdx' + + steps: + - run: gh issue close "${{ github.event.issue.number }}" --reason "not planned" -c "issues may only be created by maintainers" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}