From 508ad782ae6561971c66edbf20f987986953ba4e Mon Sep 17 00:00:00 2001 From: Claudiu Cristea Date: Sun, 26 May 2024 13:08:28 +0200 Subject: [PATCH] Add git_stage to metadata --- src/Task/Config/Metadata.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Task/Config/Metadata.php b/src/Task/Config/Metadata.php index 134499a7..09e414ac 100644 --- a/src/Task/Config/Metadata.php +++ b/src/Task/Config/Metadata.php @@ -29,6 +29,7 @@ public static function getConfigurableOptions(): \GrumPHP\Task\Config\ConfigOpti 'enabled' => true, 'task' => '', 'label' => '', + 'git_stage' => ['pre-commit', 'pre-push'], ]); } @@ -60,6 +61,11 @@ public function label(): string return (string) $this->metadata['label']; } + public function gitStages(): array + { + return $this->metadata['git_stage']; + } + public function toArray(): array { return $this->metadata;