From bddaf80d9625562996a29dfc0278ae29553c39ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Sat, 23 Jan 2021 16:42:44 +0100 Subject: [PATCH] Add CaptainHook dependency --- captainhook.json | 52 ++++++++ composer.json | 6 +- composer.lock | 311 ++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 366 insertions(+), 3 deletions(-) create mode 100644 captainhook.json diff --git a/captainhook.json b/captainhook.json new file mode 100644 index 0000000..1827bce --- /dev/null +++ b/captainhook.json @@ -0,0 +1,52 @@ +{ + "commit-msg": { + "enabled": true, + "actions": [ + { + "action": "\\CaptainHook\\App\\Hook\\Message\\Action\\Beams", + "options": { + "subjectLength": 50, + "bodyLineLength": 72 + } + } + ] + }, + "pre-push": { + "enabled": true, + "actions": [ + { + "action": "./vendor/bin/phing analyse", + "options": [] + } + ] + }, + "pre-commit": { + "enabled": true, + "actions": [ + { + "action": "./vendor/bin/phing lint", + "options": [] + }, + { + "action": "./vendor/bin/phing sniff", + "options": [] + }, + { + "action": "./vendor/bin/phing unit", + "options": [] + } + ] + }, + "prepare-commit-msg": { + "enabled": false, + "actions": [] + }, + "post-commit": { + "enabled": false, + "actions": [] + }, + "post-merge": { + "enabled": false, + "actions": [] + } +} diff --git a/composer.json b/composer.json index 8ca9690..6f117ba 100644 --- a/composer.json +++ b/composer.json @@ -23,14 +23,16 @@ "require": { "php": "^7.4", "magento/module-webapi": "100.3.5|100.4.0", - "magento/framework": "102.0.6|103.0.0|103.0.1" + "magento/framework": "102.0.6|103.0.0|103.0.1", + "captainhook/captainhook": "^5.4" }, "require-dev": { "n98/magerun2": "^4.0.0", "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "^3.5", "phing/phing": "^2.16", - "phpstan/phpstan": "^0.12.68" + "phpstan/phpstan": "^0.12.68", + "captainhook/plugin-composer": "^5.2" }, "repositories": [ { diff --git a/composer.lock b/composer.lock index 5f7241b..a06e5f2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,90 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "855844197a7929c42b0c3c906054d761", + "content-hash": "f336f2c5410ac8100afc06708a21c9ba", "packages": [ + { + "name": "captainhook/captainhook", + "version": "5.4.4", + "source": { + "type": "git", + "url": "https://github.com/captainhookphp/captainhook.git", + "reference": "c91b567364f20bc7c3d2db064cd59b4c4c731983" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/captainhookphp/captainhook/zipball/c91b567364f20bc7c3d2db064cd59b4c4c731983", + "reference": "c91b567364f20bc7c3d2db064cd59b4c4c731983", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-spl": "*", + "ext-xml": "*", + "php": ">=7.2", + "sebastianfeldmann/camino": "^0.9.2", + "sebastianfeldmann/cli": "^3.3", + "sebastianfeldmann/git": "^3.4", + "symfony/console": "^2.7 || ^3.0 || ^4.0 || ^5.0", + "symfony/process": "^2.7 || ^3.0 || ^4.0 || ^5.0" + }, + "replace": { + "sebastianfeldmann/captainhook": "*" + }, + "require-dev": { + "composer/composer": "~1", + "mikey179/vfsstream": "~1" + }, + "bin": [ + "bin/captainhook" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0.x-dev" + }, + "captainhook": { + "config": "captainhook.json" + } + }, + "autoload": { + "psr-4": { + "CaptainHook\\App\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian Feldmann", + "email": "sf@sebastian-feldmann.info" + } + ], + "description": "PHP git hook manager", + "homepage": "https://github.com/captainhookphp/captainhook", + "keywords": [ + "commit-msg", + "git", + "hooks", + "post-merge", + "pre-commit", + "pre-push", + "prepare-commit-msg" + ], + "support": { + "issues": "https://github.com/captainhookphp/captainhook/issues", + "source": "https://github.com/captainhookphp/captainhook/tree/5.4.4" + }, + "funding": [ + { + "url": "https://github.com/sponsors/sebastianfeldmann", + "type": "github" + } + ], + "time": "2020-12-07T19:38:34+00:00" + }, { "name": "colinmollenhour/credis", "version": "v1.12.1", @@ -4974,6 +5056,178 @@ ], "time": "2018-07-19T23:38:55+00:00" }, + { + "name": "sebastianfeldmann/camino", + "version": "0.9.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianfeldmann/camino.git", + "reference": "3b611368e22e8565c3a6504613136402ed9e6f69" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianfeldmann/camino/zipball/3b611368e22e8565c3a6504613136402ed9e6f69", + "reference": "3b611368e22e8565c3a6504613136402ed9e6f69", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "SebastianFeldmann\\Camino\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian Feldmann", + "email": "sf@sebastian-feldmann.info" + } + ], + "description": "Path management the OO way", + "homepage": "https://github.com/sebastianfeldmann/camino", + "keywords": [ + "file system", + "path" + ], + "support": { + "issues": "https://github.com/sebastianfeldmann/camino/issues", + "source": "https://github.com/sebastianfeldmann/camino/tree/0.9.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianfeldmann", + "type": "github" + } + ], + "time": "2020-12-08T09:25:24+00:00" + }, + { + "name": "sebastianfeldmann/cli", + "version": "3.3.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianfeldmann/cli.git", + "reference": "490a6ba01d62e56d597b4d3377024feb87871f6f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianfeldmann/cli/zipball/490a6ba01d62e56d597b4d3377024feb87871f6f", + "reference": "490a6ba01d62e56d597b4d3377024feb87871f6f", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "require-dev": { + "symfony/process": "^4.3 | ^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4.x-dev" + } + }, + "autoload": { + "psr-4": { + "SebastianFeldmann\\Cli\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian Feldmann", + "email": "sf@sebastian-feldmann.info" + } + ], + "description": "PHP cli helper classes", + "homepage": "https://github.com/sebastianfeldmann/cli", + "keywords": [ + "cli" + ], + "support": { + "issues": "https://github.com/sebastianfeldmann/cli/issues", + "source": "https://github.com/sebastianfeldmann/cli/tree/3.3.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianfeldmann", + "type": "github" + } + ], + "time": "2020-12-08T09:20:06+00:00" + }, + { + "name": "sebastianfeldmann/git", + "version": "3.4.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianfeldmann/git.git", + "reference": "a1855895dbc4056cb3f8d14645487f10a393c029" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianfeldmann/git/zipball/a1855895dbc4056cb3f8d14645487f10a393c029", + "reference": "a1855895dbc4056cb3f8d14645487f10a393c029", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-xml": "*", + "php": ">=7.2", + "sebastianfeldmann/cli": "^3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "SebastianFeldmann\\Git\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian Feldmann", + "email": "sf@sebastian-feldmann.info" + } + ], + "description": "PHP git wrapper", + "homepage": "https://github.com/sebastianfeldmann/git", + "keywords": [ + "git" + ], + "support": { + "issues": "https://github.com/sebastianfeldmann/git/issues", + "source": "https://github.com/sebastianfeldmann/git/tree/3.4.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianfeldmann", + "type": "github" + } + ], + "time": "2020-12-08T09:38:31+00:00" + }, { "name": "seld/jsonlint", "version": "1.8.3", @@ -6165,6 +6419,61 @@ ], "time": "2019-01-01T23:59:15+00:00" }, + { + "name": "captainhook/plugin-composer", + "version": "5.2.3", + "source": { + "type": "git", + "url": "https://github.com/captainhookphp/plugin-composer.git", + "reference": "7c0c809011c24c1517d3896c5a7318268cea70ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/captainhookphp/plugin-composer/zipball/7c0c809011c24c1517d3896c5a7318268cea70ee", + "reference": "7c0c809011c24c1517d3896c5a7318268cea70ee", + "shasum": "" + }, + "require": { + "captainhook/captainhook": "^5.0", + "composer-plugin-api": "^1.1|^2.0", + "php": ">=7.1" + }, + "require-dev": { + "composer/composer": "*" + }, + "type": "composer-plugin", + "extra": { + "class": "CaptainHook\\Plugin\\Composer\\ComposerPlugin", + "branch-alias": { + "dev-fluffy_hedgehog": "5.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "CaptainHook\\Plugin\\Composer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Heigl", + "email": "andreas@heigl.org" + }, + { + "name": "Sebastian Feldmann", + "email": "sf@sebastian-feldmann.info" + } + ], + "description": "Composer-Plugin handling your git-hooks", + "support": { + "issues": "https://github.com/captainhookphp/plugin-composer/issues", + "source": "https://github.com/captainhookphp/plugin-composer/tree/5.2.3" + }, + "time": "2020-12-07T19:27:49+00:00" + }, { "name": "dnoegel/php-xdg-base-dir", "version": "v0.1.1",