Skip to content

Commit 4b25ab2

Browse files
authored
Add github action to close new pull requests (solana-labs#35400)
Add github action to close new pull requests with a comment directing them to agave
1 parent a780ffb commit 4b25ab2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Close new pull requests
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
comment-and-close:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- shell: bash
12+
env:
13+
PR_NUMBER: ${{ github.event.pull_request.number }}
14+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
GH_REPO: ${{ github.repository }}
16+
COMMENT: >
17+
This repository is no longer in use. Please re-open this
18+
pull request in the agave repo: https://github.com/anza-xyz/agave
19+
run: >
20+
gh pr close "$PR_NUMBER" --comment "$COMMENT"

0 commit comments

Comments
 (0)