Skip to content

Commit

Permalink
Prepare for new adapter sub-splits.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Sep 9, 2022
1 parent f81d66d commit 1f080e9
Show file tree
Hide file tree
Showing 12 changed files with 156 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
/src/AzureBlobStorage export-ignore
/src/ZipArchive export-ignore
/src/WebDAV export-ignore
/src/PathPrefixing export-ignore
/src/ReadOnly export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/bin/ export-ignore
Expand Down
10 changes: 10 additions & 0 deletions config.subsplit-publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@
"directory": "src/GoogleCloudStorage",
"target": "[email protected]:thephpleague/flysystem-google-cloud-storage.git"
},
{
"name": "readonly",
"directory": "src/ReadOnly",
"target": "[email protected]:thephpleague/flysystem-read-only.git"
},
{
"name": "pathprefixing",
"directory": "src/PathPrefixing",
"target": "[email protected]:thephpleague/flysystem-path-prefixing.git"
},
{
"name": "webdav",
"directory": "src/WebDAV",
Expand Down
6 changes: 6 additions & 0 deletions src/PathPrefixing/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text=auto

.github export-ignore
.gitattributes export-ignore
.gitignore export-ignore
**/*Test.php export-ignore
3 changes: 3 additions & 0 deletions src/PathPrefixing/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: [frankdejonge]
tidelift: "packagist/league/flysystem"
custom: "https://offset.earth/frankdejonge"
30 changes: 30 additions & 0 deletions src/PathPrefixing/.github/workflows/close-subsplit-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Close sub-split PRs

on:
push:
branches:
- 2.x
- 3.x
pull_request:
branches:
- 2.x
- 3.x
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: 'yes'
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/flysystem
9 changes: 9 additions & 0 deletions src/PathPrefixing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Sub-split of Flysystem for path prefixed adapter decoration.

> ⚠️ this is a sub-split, for pull requests and issues, visit: https://github.com/thephpleague/flysystem
```bash
composer require league/flysystem-path-prefixing
```

View the [documentation](https://flysystem.thephpleague.com/v2/docs/adapter/path-prefixing/).
24 changes: 24 additions & 0 deletions src/PathPrefixing/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "league/flysystem-path-prefixing",
"description": "Path prefixing filesystem adapter for Flysystem.",
"keywords": ["flysystem", "filesystem", "prefixing", "prefix"],
"type": "library",
"prefer-stable": true,
"autoload": {
"psr-4": {
"League\\Flysystem\\PathPrefixing\\": ""
}
},
"require": {
"php": "^8.0.2",
"ext-fileinfo": "*",
"league/flysystem": "^2.0.0 || ^3.0.0"
},
"license": "MIT",
"authors": [
{
"name": "Frank de Jonge",
"email": "[email protected]"
}
]
}
6 changes: 6 additions & 0 deletions src/ReadOnly/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text=auto

.github export-ignore
.gitattributes export-ignore
.gitignore export-ignore
**/*Test.php export-ignore
3 changes: 3 additions & 0 deletions src/ReadOnly/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: [frankdejonge]
tidelift: "packagist/league/flysystem"
custom: "https://offset.earth/frankdejonge"
30 changes: 30 additions & 0 deletions src/ReadOnly/.github/workflows/close-subsplit-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Close sub-split PRs

on:
push:
branches:
- 2.x
- 3.x
pull_request:
branches:
- 2.x
- 3.x
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: 'yes'
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/flysystem
9 changes: 9 additions & 0 deletions src/ReadOnly/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Sub-split of Flysystem for read-only adapter decoration.

> ⚠️ this is a sub-split, for pull requests and issues, visit: https://github.com/thephpleague/flysystem
```bash
composer require league/flysystem-read-only
```

View the [documentation](https://flysystem.thephpleague.com/v2/docs/adapter/read-only/).
24 changes: 24 additions & 0 deletions src/ReadOnly/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "league/flysystem-read-only",
"description": "Read-only filesystem adapter for Flysystem.",
"keywords": ["flysystem", "filesystem", "read-only", "read", "only"],
"type": "library",
"prefer-stable": true,
"autoload": {
"psr-4": {
"League\\Flysystem\\ReadOnly\\": ""
}
},
"require": {
"php": "^8.0.2",
"ext-fileinfo": "*",
"league/flysystem": "^2.0.0 || ^3.0.0"
},
"license": "MIT",
"authors": [
{
"name": "Frank de Jonge",
"email": "[email protected]"
}
]
}

0 comments on commit 1f080e9

Please sign in to comment.