Skip to content

Commit c8392e1

Browse files
laurenzgamperm1guelpf
authored andcommitted
add sha filter for pipelines
1 parent 2443e7f commit c8392e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public function unarchive($project_id)
182182
* @var string $scope The scope of pipelines, one of: running, pending, finished, branches, tags.
183183
* @var string $status The status of pipelines, one of: running, pending, success, failed, canceled, skipped.
184184
* @var string $ref The ref of pipelines.
185+
* @var string $sha The sha of pipelines.
185186
* @var bool $yaml_errors Returns pipelines with invalid configurations.
186187
* @var string $name The name of the user who triggered pipelines.
187188
* @var string $username The username of the user who triggered pipelines.
@@ -204,6 +205,7 @@ public function pipelines($project_id, array $parameters = [])
204205
->setAllowedValues('status', ['running', 'pending', 'success', 'failed', 'canceled', 'skipped'])
205206
;
206207
$resolver->setDefined('ref');
208+
$resolver->setDefined('sha');
207209
$resolver->setDefined('yaml_errors')
208210
->setAllowedTypes('yaml_errors', 'bool')
209211
->setNormalizer('yaml_errors', $booleanNormalizer)

0 commit comments

Comments
 (0)