File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class Issues extends AbstractApi
1010 * @var string $labels Comma-separated list of label names, issues must have all labels to be returned.
1111 * No+Label lists all issues with no labels.
1212 * @var string $milestone The milestone title.
13+ * @var string scope Return issues for the given scope: created-by-me, assigned-to-me or all. Defaults to created-by-me
1314 * @var int[] $iids Return only the issues having the given iid.
1415 * @var string $order_by Return requests ordered by created_at or updated_at fields. Default is created_at.
1516 * @var string $sort Return requests sorted in asc or desc order. Default is desc.
@@ -33,6 +34,9 @@ public function all($project_id = null, array $parameters = [])
3334 return count ($ value ) == count (array_filter ($ value , 'is_int ' ));
3435 })
3536 ;
37+ $ resolver ->setDefined ('scope ' )
38+ ->setAllowedValues ('scope ' , ['created-by-me ' , 'assigned-to-me ' , 'all ' ])
39+ ;
3640 $ resolver ->setDefined ('order_by ' )
3741 ->setAllowedValues ('order_by ' , ['created_at ' , 'updated_at ' ])
3842 ;
You can’t perform that action at this time.
0 commit comments