forked from thephpleague/flysystem
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1c32f2a
commit 1e9ca10
Showing
3 changed files
with
63 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,22 @@ | ||
--- | ||
name: Close sub-split PRs | ||
|
||
on: | ||
schedule: | ||
- cron: '30 7 * * *' | ||
|
||
jobs: | ||
close_subsplit_prs: | ||
runs-on: ubuntu-latest | ||
name: Close sub-split PRs | ||
steps: | ||
- uses: frankdejonge/[email protected] | ||
with: | ||
close_pr: 'no' | ||
target_branch_match: '^(?!master).+$' | ||
message: | | ||
Hi :wave:, | ||
Thank you for contributing to Flysystem. Unfortunately, you've sent a PR to a read-only sub-split repository. | ||
All pull requests should be directed towards: https://github.com/thephpleague/flsysystem |
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,19 @@ | ||
<?php | ||
|
||
use League\Flysystem\Filesystem; | ||
use League\Flysystem\Local\LocalFilesystemAdapter; | ||
|
||
include __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$filesystem = new Filesystem(new LocalFilesystemAdapter(realpath(__DIR__ . '/../'))); | ||
$subsplits = json_decode($filesystem->read('config.subsplit-publish.json'), true); | ||
$workflowContents = $filesystem->read('bin/close-subsplit-prs.yml'); | ||
|
||
foreach ($subsplits['sub-splits'] as ['directory' => $subsplit]) { | ||
if ($subsplit !== 'src/AwsS3V3') { | ||
continue; | ||
} | ||
|
||
$workflowPath = $subsplit . '/.github/workflows/close-subsplit-prs.yaml'; | ||
$filesystem->write($workflowPath, $workflowContents); | ||
} |
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,22 @@ | ||
--- | ||
name: Close sub-split PRs | ||
|
||
on: | ||
schedule: | ||
- cron: '30 7 * * *' | ||
|
||
jobs: | ||
close_subsplit_prs: | ||
runs-on: ubuntu-latest | ||
name: Close sub-split PRs | ||
steps: | ||
- uses: frankdejonge/[email protected] | ||
with: | ||
close_pr: 'no' | ||
target_branch_match: '^(?!master).+$' | ||
message: | | ||
Hi :wave:, | ||
Thank you for contributing to Flysystem. Unfortunately, you've sent a PR to a read-only sub-split repository. | ||
All pull requests should be directed towards: https://github.com/thephpleague/flsysystem |