From 79e86b7398828da7e8de71eb2493e5cd158d59ea Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Wed, 22 May 2024 21:26:15 +0300 Subject: [PATCH] Issue #3448429: Add varbase:composer:cleanup:patches drush command to clean up composer.json from any merge request patches --- src/Drush/Commands/VarbaseCoreCommands.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Drush/Commands/VarbaseCoreCommands.php b/src/Drush/Commands/VarbaseCoreCommands.php index 020e6de..f5dc46e 100644 --- a/src/Drush/Commands/VarbaseCoreCommands.php +++ b/src/Drush/Commands/VarbaseCoreCommands.php @@ -73,10 +73,10 @@ final class VarbaseCoreCommands extends DrushCommands { } /** - * Detect any merge request patch and download it to the local patches folder with a timestamp date and update the root composer.json file to use the timestamped local patch file. + * This command detects any merge request patches, downloads them to the local patches folder with a timestamp, and updates the root `composer.json` file to use the timestamped local patch file. */ #[CLI\Command(name: 'varbase:composer:cleanup:patches', aliases: ['var-ccup'])] - #[CLI\Usage(name: 'varbase:composer:cleanup:patches', description: 'Detect any merge request patch and download it to the local patches folder with a timestamp date and update the root composer.json file to use the timestamped local patch file.')] + #[CLI\Usage(name: 'varbase:composer:cleanup:patches', description: 'This command detects any merge request patches, downloads them to the local patches folder with a timestamp, and updates the root `composer.json` file to use the timestamped local patch file.')] public function mergeRequestPatchesCleanup() { $root_directory = $this->getConfig()->get('runtime.project'); $root_composer_json = file_get_contents($root_directory . '/composer.json'); @@ -186,10 +186,10 @@ final class VarbaseCoreCommands extends DrushCommands { } /** - * Detect any merge request patch and download it to the local patches folder with a timestamp date and update patches-file json file to use the timestamped local patch file. + * This command detects any merge request patches, downloads them to the local patches folder with a timestamp, and updates the `patches-file JSON` file to use the timestamped local patch file. */ #[CLI\Command(name: 'varbase:composer:cleanup:patches-file', aliases: ['var-ccupf'])] - #[CLI\Usage(name: 'varbase:composer:cleanup:patches-file', description: 'Detect any merge request patch and download it to the local patches folder with a timestamp date and update patches-file json file to use the timestamped local patch file.')] + #[CLI\Usage(name: 'varbase:composer:cleanup:patches-file', description: 'This command detects any merge request patches, downloads them to the local patches folder with a timestamp, and updates the `patches-file JSON` file to use the timestamped local patch file.')] public function mergeRequestPatchesFileCleanup() { $root_directory = $this->getConfig()->get('runtime.project'); -- GitLab