From 1f080e967a0d0871a08be151e1c3daa229ac83cd Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Fri, 9 Sep 2022 11:16:16 +0200 Subject: [PATCH] Prepare for new adapter sub-splits. --- .gitattributes | 2 ++ config.subsplit-publish.json | 10 +++++++ src/PathPrefixing/.gitattributes | 6 ++++ src/PathPrefixing/.github/FUNDING.yml | 3 ++ .../.github/workflows/close-subsplit-prs.yaml | 30 +++++++++++++++++++ src/PathPrefixing/README.md | 9 ++++++ src/PathPrefixing/composer.json | 24 +++++++++++++++ src/ReadOnly/.gitattributes | 6 ++++ src/ReadOnly/.github/FUNDING.yml | 3 ++ .../.github/workflows/close-subsplit-prs.yaml | 30 +++++++++++++++++++ src/ReadOnly/README.md | 9 ++++++ src/ReadOnly/composer.json | 24 +++++++++++++++ 12 files changed, 156 insertions(+) create mode 100644 src/PathPrefixing/.gitattributes create mode 100644 src/PathPrefixing/.github/FUNDING.yml create mode 100644 src/PathPrefixing/.github/workflows/close-subsplit-prs.yaml create mode 100644 src/PathPrefixing/README.md create mode 100644 src/PathPrefixing/composer.json create mode 100644 src/ReadOnly/.gitattributes create mode 100644 src/ReadOnly/.github/FUNDING.yml create mode 100644 src/ReadOnly/.github/workflows/close-subsplit-prs.yaml create mode 100644 src/ReadOnly/README.md create mode 100644 src/ReadOnly/composer.json diff --git a/.gitattributes b/.gitattributes index dfff64464..df64ea826 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/config.subsplit-publish.json b/config.subsplit-publish.json index 57aebb650..8f355dc20 100644 --- a/config.subsplit-publish.json +++ b/config.subsplit-publish.json @@ -45,6 +45,16 @@ "directory": "src/GoogleCloudStorage", "target": "git@github.com:thephpleague/flysystem-google-cloud-storage.git" }, + { + "name": "readonly", + "directory": "src/ReadOnly", + "target": "git@github.com:thephpleague/flysystem-read-only.git" + }, + { + "name": "pathprefixing", + "directory": "src/PathPrefixing", + "target": "git@github.com:thephpleague/flysystem-path-prefixing.git" + }, { "name": "webdav", "directory": "src/WebDAV", diff --git a/src/PathPrefixing/.gitattributes b/src/PathPrefixing/.gitattributes new file mode 100644 index 000000000..dba4fb271 --- /dev/null +++ b/src/PathPrefixing/.gitattributes @@ -0,0 +1,6 @@ +* text=auto + +.github export-ignore +.gitattributes export-ignore +.gitignore export-ignore +**/*Test.php export-ignore diff --git a/src/PathPrefixing/.github/FUNDING.yml b/src/PathPrefixing/.github/FUNDING.yml new file mode 100644 index 000000000..39b084a29 --- /dev/null +++ b/src/PathPrefixing/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: [frankdejonge] +tidelift: "packagist/league/flysystem" +custom: "https://offset.earth/frankdejonge" diff --git a/src/PathPrefixing/.github/workflows/close-subsplit-prs.yaml b/src/PathPrefixing/.github/workflows/close-subsplit-prs.yaml new file mode 100644 index 000000000..99b1e91a5 --- /dev/null +++ b/src/PathPrefixing/.github/workflows/close-subsplit-prs.yaml @@ -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/action-close-subsplit-pr@0.1.0 + 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 diff --git a/src/PathPrefixing/README.md b/src/PathPrefixing/README.md new file mode 100644 index 000000000..9a189fd75 --- /dev/null +++ b/src/PathPrefixing/README.md @@ -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/). diff --git a/src/PathPrefixing/composer.json b/src/PathPrefixing/composer.json new file mode 100644 index 000000000..69fe7cc12 --- /dev/null +++ b/src/PathPrefixing/composer.json @@ -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": "info@frankdejonge.nl" + } + ] +} diff --git a/src/ReadOnly/.gitattributes b/src/ReadOnly/.gitattributes new file mode 100644 index 000000000..dba4fb271 --- /dev/null +++ b/src/ReadOnly/.gitattributes @@ -0,0 +1,6 @@ +* text=auto + +.github export-ignore +.gitattributes export-ignore +.gitignore export-ignore +**/*Test.php export-ignore diff --git a/src/ReadOnly/.github/FUNDING.yml b/src/ReadOnly/.github/FUNDING.yml new file mode 100644 index 000000000..39b084a29 --- /dev/null +++ b/src/ReadOnly/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: [frankdejonge] +tidelift: "packagist/league/flysystem" +custom: "https://offset.earth/frankdejonge" diff --git a/src/ReadOnly/.github/workflows/close-subsplit-prs.yaml b/src/ReadOnly/.github/workflows/close-subsplit-prs.yaml new file mode 100644 index 000000000..99b1e91a5 --- /dev/null +++ b/src/ReadOnly/.github/workflows/close-subsplit-prs.yaml @@ -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/action-close-subsplit-pr@0.1.0 + 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 diff --git a/src/ReadOnly/README.md b/src/ReadOnly/README.md new file mode 100644 index 000000000..c8322db56 --- /dev/null +++ b/src/ReadOnly/README.md @@ -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/). diff --git a/src/ReadOnly/composer.json b/src/ReadOnly/composer.json new file mode 100644 index 000000000..a33f52000 --- /dev/null +++ b/src/ReadOnly/composer.json @@ -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": "info@frankdejonge.nl" + } + ] +}