Skip to content

Commit 20fd65c

Browse files
Configure split repositories as read-only subtree splits (#3)
- Remove CODEOWNERS files (managed centrally in monorepo) - Remove ISSUE_TEMPLATE files (issues reported to main repository) - Remove CI workflows (CI runs in monorepo, not split repos) - Update PR templates to redirect contributions to monorepo - Add close-pull-request workflow to auto-close PRs with helpful message - Fix repository URLs to point to MatesOfMate/.github Split repositories (common, phpstan-extension, phpunit-extension) are now read-only mirrors that redirect all contributions to the main monorepo. This follows the Symfony split repository pattern.
1 parent c6d51e4 commit 20fd65c

7 files changed

Lines changed: 26 additions & 149 deletions

File tree

.github/CODEOWNERS

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/1-bug_report.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/2-feature_request.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
| Q | A
2-
| ------------- | ---
3-
| Bug fix? | yes/no
4-
| New feature? | yes/no
5-
| BC breaks? | yes/no
6-
| Deprecations? | yes/no
7-
| Tests pass? | yes/no
8-
| Issues | Fix #... <!-- prefix each issue number with "Fix #" -->
9-
| License | MIT
1+
Please do not submit any Pull Requests here. They will be closed.
2+
---
103

11-
<!--
12-
Replace this notice by a description of your feature/bugfix.
13-
This will help reviewers and should be a good start for the documentation.
4+
Please submit your PR here instead:
5+
https://github.com/MatesOfMate/.github
146

15-
Please ensure:
16-
- Tests are added/updated and pass (`composer test`)
17-
- Code quality checks pass (`composer lint`)
18-
- Documentation is updated if needed
19-
- For new tools/resources, provide usage examples
20-
-->
7+
This repository is what we call a "subtree split": a read-only subset of that main repository.
8+
We're looking forward to your PR there!

.github/workflows/ci.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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: |
14+
Thanks for your Pull Request! We love contributions.
15+
16+
However, you should instead open your PR on the main repository:
17+
https://github.com/MatesOfMate/.github
18+
19+
This repository is what we call a "subtree split": a read-only subset of that main repository.
20+
We're looking forward to your PR there!

0 commit comments

Comments
 (0)