Skip to content

Commit

Permalink
Add git_stage to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed May 26, 2024
1 parent 426a6a5 commit 508ad78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Task/Config/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public static function getConfigurableOptions(): \GrumPHP\Task\Config\ConfigOpti
'enabled' => true,
'task' => '',
'label' => '',
'git_stage' => ['pre-commit', 'pre-push'],
]);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 508ad78

Please sign in to comment.