Skip to content

Commit

Permalink
minor #58355 Add PR template and auto-close PR on subtree split repos…
Browse files Browse the repository at this point in the history
…itories (GromNaN)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

Add PR template and auto-close PR on subtree split repositories

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #57267
| License       | MIT

Extract the Pull Request Template from #54653.

~The GitHub action did not work as said by `@nicolas`-grekas symfony/symfony#57267 (comment) Replaced by https://github.com/superbrothers/close-pull-request.

Commits
-------

d90fa7ab08f Add PR template and auto-close PR on subtree split repositories
  • Loading branch information
nicolas-grekas committed Sep 25, 2024
2 parents ba1a6cb + ea38ad2 commit ae232b0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/Tests export-ignore
/phpunit.xml.dist export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.git* export-ignore
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Please do not submit any Pull Requests here. They will be closed.
---

Please submit your PR here instead:
https://github.com/symfony/symfony

This repository is what we call a "subtree split": a read-only subset of that main repository.
We're looking forward to your PR there!
20 changes: 20 additions & 0 deletions .github/workflows/close-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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: |
Thanks for your Pull Request! We love contributions.
However, you should instead open your PR on the main repository:
https://github.com/symfony/symfony
This repository is what we call a "subtree split": a read-only subset of that main repository.
We're looking forward to your PR there!

0 comments on commit ae232b0

Please sign in to comment.