Skip to content

Commit

Permalink
Add github action to close new pull requests (#35400)
Browse files Browse the repository at this point in the history
Add github action to close new pull requests with a comment directing them to agave
  • Loading branch information
willhickey authored Mar 4, 2024
1 parent a780ffb commit 4b25ab2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/close-new-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4b25ab2

Please sign in to comment.