Skip to content

Commit

Permalink
Add GHA to close new issues with a comment (solana-labs#35151)
Browse files Browse the repository at this point in the history
* Add GHA to close new issues with a comment

* Remove trailing whitespace
  • Loading branch information
willhickey authored Mar 3, 2024
1 parent cc4072b commit 3b940a4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/close-new-issues.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 3b940a4

Please sign in to comment.