Skip to content

Commit 87887db

Browse files
committed
Add a PR closer
Currently, it's impossible to disable pull request on github, so we have to add a workflow event to trigger it, which will automatically close the PR when attempting to open/reopen a PR on the github repo, and send a reminder on how to contribute patches to the crash-utility mailing list. Signed-off-by: Lianbo Jiang <[email protected]> Signed-off-by: Tao Liu <[email protected]>
1 parent 39ee29b commit 87887db

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/pr-closer.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Close Pull Request
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: superbrothers/close-pull-request@v3
12+
with:
13+
comment: "The github repo does not accept PRs, please subscribe to mail list via https://lists.crash-utility.osci.io/admin/lists/devel.lists.crash-utility.osci.io/ for contribution and discussion. Or post your patch to mail list: [email protected]"

0 commit comments

Comments
 (0)