From b3896f83e4af0f180628132b5beb636bf2369be1 Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Thu, 23 Sep 2021 23:27:26 -0500 Subject: [PATCH 1/4] Adding extras for testing --- composer.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/composer.json b/composer.json index 146b2d3..f7b3113 100644 --- a/composer.json +++ b/composer.json @@ -12,5 +12,19 @@ "license": "MIT", "require": { "composer/installers": "^1 || ^2" + }, + "extra": { + "quicksilver-workflow": [ + { + "wf_type": "sync_code", + "stage": "before", + "priority": true + }, + { + "wf_type": "deploy", + "stage": "before", + "priority": true + } + ] } } From 3f4f4a812888e9414b4c47369aa26df094d6de15 Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Mon, 27 Sep 2021 22:37:33 -0500 Subject: [PATCH 2/4] Add initial pantheon yml editing --- composer.json | 3 +- composer.lock | 272 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 272 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f7b3113..9ebbe1c 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,8 @@ "type": "quicksilver-script", "license": "MIT", "require": { - "composer/installers": "^1 || ^2" + "composer/installers": "^1 || ^2", + "pantheon-quicksilver/pantheon-yml-editor": "dev-main" }, "extra": { "quicksilver-workflow": [ diff --git a/composer.lock b/composer.lock index 5a5faf1..8b06b0e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6c04f530915e8c88dc62586637a3ddd8", + "content-hash": "6a9b7d41cce6bbcb0844328a3b10dc8a", "packages": [ { "name": "composer/installers", @@ -148,12 +148,280 @@ } ], "time": "2021-09-13T08:21:20+00:00" + }, + { + "name": "pantheon-quicksilver/pantheon-yml-editor", + "version": "dev-main", + "source": { + "type": "git", + "url": "https://github.com/pantheon-quicksilver/pantheon-yml-editor.git", + "reference": "07fa6830c644f16b9be128e56339be4c6475a62b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pantheon-quicksilver/pantheon-yml-editor/zipball/07fa6830c644f16b9be128e56339be4c6475a62b", + "reference": "07fa6830c644f16b9be128e56339be4c6475a62b", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0 || ^2.0", + "symfony/yaml": "^5.3" + }, + "default-branch": true, + "type": "composer-plugin", + "extra": { + "class": "PantheonYmlEditor\\Plugin" + }, + "autoload": { + "psr-4": { + "PantheonYmlEditor\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kyle Taylor", + "email": "kyle.taylor@pantheon.io" + } + ], + "description": "A utility package for editing the pantheon.yml file.", + "support": { + "issues": "https://github.com/pantheon-quicksilver/pantheon-yml-editor/issues", + "source": "https://github.com/pantheon-quicksilver/pantheon-yml-editor/tree/main" + }, + "time": "2021-09-28T03:36:16+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-03-23T23:28:01+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.23.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-02-19T12:13:01+00:00" + }, + { + "name": "symfony/yaml", + "version": "v5.3.6", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7", + "reference": "4500fe63dc9c6ffc32d3b1cb0448c329f9c814b7", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<4.4" + }, + "require-dev": { + "symfony/console": "^4.4|^5.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v5.3.6" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-29T06:20:01+00:00" } ], "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "pantheon-quicksilver/pantheon-yml-editor": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": [], From 000777bf35133607629b83fec25410bd907a9720 Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Mon, 27 Sep 2021 22:49:54 -0500 Subject: [PATCH 3/4] Fix symfony yml version --- composer.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.lock b/composer.lock index 8b06b0e..7f5818b 100644 --- a/composer.lock +++ b/composer.lock @@ -155,17 +155,17 @@ "source": { "type": "git", "url": "https://github.com/pantheon-quicksilver/pantheon-yml-editor.git", - "reference": "07fa6830c644f16b9be128e56339be4c6475a62b" + "reference": "dfa778845a8e3bb1bb231dcc73d4ae3479820fd8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pantheon-quicksilver/pantheon-yml-editor/zipball/07fa6830c644f16b9be128e56339be4c6475a62b", - "reference": "07fa6830c644f16b9be128e56339be4c6475a62b", + "url": "https://api.github.com/repos/pantheon-quicksilver/pantheon-yml-editor/zipball/dfa778845a8e3bb1bb231dcc73d4ae3479820fd8", + "reference": "dfa778845a8e3bb1bb231dcc73d4ae3479820fd8", "shasum": "" }, "require": { "composer-plugin-api": "^1.0 || ^2.0", - "symfony/yaml": "^5.3" + "symfony/yaml": "^3 || ^4 || ^5" }, "default-branch": true, "type": "composer-plugin", @@ -192,7 +192,7 @@ "issues": "https://github.com/pantheon-quicksilver/pantheon-yml-editor/issues", "source": "https://github.com/pantheon-quicksilver/pantheon-yml-editor/tree/main" }, - "time": "2021-09-28T03:36:16+00:00" + "time": "2021-09-28T03:49:14+00:00" }, { "name": "symfony/deprecation-contracts", From d31dd1da46292294d1c6e0476b80e5371779a343 Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Mon, 25 Oct 2021 14:00:05 -0500 Subject: [PATCH 4/4] Add extras declaration --- composer.json | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 9ebbe1c..21edd30 100644 --- a/composer.json +++ b/composer.json @@ -15,17 +15,19 @@ "pantheon-quicksilver/pantheon-yml-editor": "dev-main" }, "extra": { - "quicksilver-workflow": [ - { - "wf_type": "sync_code", - "stage": "before", - "priority": true - }, - { - "wf_type": "deploy", - "stage": "before", - "priority": true - } - ] + "pantheon-quicksilver": { + "wakeup": [ + { + "wf_type": "clone_database", + "stage": "after", + "weight": 1 + }, + { + "wf_type": "create_cloud_development_environment", + "stage": "after", + "weight": 100 + } + ] + } } }