Skip to content

Commit f96d08d

Browse files
authored
chore: add GitHub Action to automatically close PRs on subtree splits (#6648)
1 parent 8b03ddd commit f96d08d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
/.github export-ignore
2+
/.gitattributes export-ignore
13
/.gitignore export-ignore
24
/Tests export-ignore
5+
/phpunit.xml.dist export-ignore

.github/workflows/close_pr.yml

+13
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]
6+
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: superbrothers/close-pull-request@v3
12+
with:
13+
comment: "Thank you for your pull request. However, you have submitted this PR on a read-only sub split of `api-platform/core`. Please submit your PR on the https://github.com/api-platform/core repository.<br><br>Thanks!"

0 commit comments

Comments
 (0)