From 4b25ab207ce41e7006ae6a43f84259a15908b40d Mon Sep 17 00:00:00 2001 From: Will Hickey Date: Mon, 4 Mar 2024 11:17:29 -0600 Subject: [PATCH] Add github action to close new pull requests (#35400) Add github action to close new pull requests with a comment directing them to agave --- .github/workflows/close-new-pull-requests.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/close-new-pull-requests.yml diff --git a/.github/workflows/close-new-pull-requests.yml b/.github/workflows/close-new-pull-requests.yml new file mode 100644 index 00000000000000..1da0ad1d33ba14 --- /dev/null +++ b/.github/workflows/close-new-pull-requests.yml @@ -0,0 +1,20 @@ +name: Close new pull requests + +on: + pull_request: + types: [opened, reopened] + +jobs: + comment-and-close: + runs-on: ubuntu-latest + steps: + - shell: bash + env: + PR_NUMBER: ${{ github.event.pull_request.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + COMMENT: > + This repository is no longer in use. Please re-open this + pull request in the agave repo: https://github.com/anza-xyz/agave + run: > + gh pr close "$PR_NUMBER" --comment "$COMMENT"