Skip to content

Commit 0d1b3bd

Browse files
committed
Close PRs from non-collaborators
1 parent 949bb28 commit 0d1b3bd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Close PRs from non-collaborators
2+
on:
3+
pull_request_target:
4+
types: [opened]
5+
6+
jobs:
7+
close-unauthorized:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Close PR
11+
uses: superbrothers/close-pull-request@v3
12+
with:
13+
comment: "Thank you for your interest! We currently only accept PRs from invited collaborators."
14+
if: github.event.pull_request.author_association == 'NONE'

0 commit comments

Comments
 (0)