From 3b940a47467aebe390e43eb493123578a6c8b0a2 Mon Sep 17 00:00:00 2001 From: Will Hickey Date: Sat, 2 Mar 2024 22:58:37 -0600 Subject: [PATCH] Add GHA to close new issues with a comment (#35151) * Add GHA to close new issues with a comment * Remove trailing whitespace --- .github/workflows/close-new-issues.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/close-new-issues.yml diff --git a/.github/workflows/close-new-issues.yml b/.github/workflows/close-new-issues.yml new file mode 100644 index 00000000000000..2d10a66fd5c2b9 --- /dev/null +++ b/.github/workflows/close-new-issues.yml @@ -0,0 +1,20 @@ +name: Close new issues + +on: + issues: + types: [opened, reopened] + +jobs: + comment-and-close: + runs-on: ubuntu-latest + steps: + - shell: bash + env: + ISSUE_NUMBER: ${{ github.event.issue.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + COMMENT: > + This repository is no longer in use. Please re-open this + issue in the agave repo: https://github.com/anza-xyz/agave + run: > + gh issue close "$ISSUE_NUMBER" --comment "$COMMENT"