-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c565ad1
commit c797154
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.git* export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/polyfill | ||
|
||
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Check subtree split | ||
on: | ||
pull_request_target: | ||
jobs: | ||
close-pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Close pull request | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
if (context.repo.owner === "symfony") { | ||
github.rest.issues.createComment({ | ||
owner: "symfony", | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
body: ` | ||
Thanks for your Pull Request! We love contributions. | ||
However, you should instead open your PR on the main repository: | ||
https://github.com/symfony/polyfill | ||
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! | ||
` | ||
}); | ||
github.rest.pulls.update({ | ||
owner: "symfony", | ||
repo: context.repo.repo, | ||
pull_number: context.issue.number, | ||
state: "closed" | ||
}); | ||
} |