Skip to content

Commit

Permalink
chore: add GitHub Action to automatically close PRs on subtree splits…
Browse files Browse the repository at this point in the history
… (#6648)
  • Loading branch information
dunglas authored Sep 20, 2024
1 parent 19a944d commit 60c9e1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/Tests export-ignore
/phpunit.xml.dist export-ignore
13 changes: 13 additions & 0 deletions .github/workflows/close_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Close Pull Request

on:
pull_request_target:
types: [opened]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
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 comments on commit 60c9e1b

Please sign in to comment.