Add GHA to close new issues with a comment (#35151)

* Add GHA to close new issues with a comment

* Remove trailing whitespace
This commit is contained in:
Will Hickey 2024-03-02 22:58:37 -06:00 committed by GitHub
parent cc4072bce8
commit 3b940a4746
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 0 deletions

20
.github/workflows/close-new-issues.yml vendored Normal file
View File

@ -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"