Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 3, 2023
1 parent 89eef50 commit fa951eb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 27 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [11.13.0] - UPCOMING

* Add support for `symfony/options-resolver:^7.0`
* Add support for `status` and `environment` in `Deployments::all`
* Add support for `Groups::search`, `Projects::search`, and `Search::all`

## [11.12.0] - 2023-10-08

Expand Down
15 changes: 7 additions & 8 deletions src/Api/Groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,17 +986,16 @@ public function deleteDeployToken($group_id, int $token_id)
* @param int|string $id
* @param array $parameters {
*
* @var string $scope The scope to search in
* @var string $search The search query
* @var string $state Filter by state. Issues and merge requests are supported; it is ignored for other scopes.
* @var bool $confidential Filter by confidentiality. Issues scope is supported; it is ignored for other scopes.
* @var string $order_by Allowed values are created_at only. If this is not set, the results are either sorted by created_at in descending order for basic search, or by the most relevant documents when using advanced search.
* @var string $sort Return projects sorted in asc or desc order (default is desc)
* @var string $scope The scope to search in
* @var string $search The search query
* @var string $state Filter by state. Issues and merge requests are supported; it is ignored for other scopes.
* @var bool $confidential Filter by confidentiality. Issues scope is supported; it is ignored for other scopes.
* @var string $order_by Allowed values are created_at only. If this is not set, the results are either sorted by created_at in descending order for basic search, or by the most relevant documents when using advanced search.
* @var string $sort Return projects sorted in asc or desc order (default is desc)
* }
*
* @throws UndefinedOptionsException If an option name is undefined
* @throws InvalidOptionsException If an option doesn't fulfill the
* specified validation rules
* @throws InvalidOptionsException If an option doesn't fulfill the specified validation rules
*
* @return mixed
*/
Expand Down
20 changes: 9 additions & 11 deletions src/Api/Projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ class Projects extends AbstractApi
* }
*
* @throws UndefinedOptionsException If an option name is undefined
* @throws InvalidOptionsException If an option doesn't fulfill the
* specified validation rules
* @throws InvalidOptionsException If an option doesn't fulfill the specified validation rules
*
* @return mixed
*/
Expand Down Expand Up @@ -1786,18 +1785,17 @@ public function deleteProtectedTag($project_id, string $tag_name)
* @param int|string $id
* @param array $parameters {
*
* @var string $scope The scope to search in
* @var string $search The search query
* @var string $state Filter by state. Issues and merge requests are supported; it is ignored for other scopes.
* @var string $ref The name of a repository branch or tag to search on. The project’s default branch is used by default. Applicable only for scopes blobs, commits, and wiki_blobs.
* @var bool $confidential Filter by confidentiality. Issues scope is supported; it is ignored for other scopes.
* @var string $order_by Allowed values are created_at only. If this is not set, the results are either sorted by created_at in descending order for basic search, or by the most relevant documents when using advanced search.
* @var string $sort Return projects sorted in asc or desc order (default is desc)
* @var string $scope The scope to search in
* @var string $search The search query
* @var string $state Filter by state. Issues and merge requests are supported; it is ignored for other scopes.
* @var string $ref The name of a repository branch or tag to search on. The project’s default branch is used by default. Applicable only for scopes blobs, commits, and wiki_blobs.
* @var bool $confidential Filter by confidentiality. Issues scope is supported; it is ignored for other scopes.
* @var string $order_by Allowed values are created_at only. If this is not set, the results are either sorted by created_at in descending order for basic search, or by the most relevant documents when using advanced search.
* @var string $sort Return projects sorted in asc or desc order (default is desc)
* }
*
* @throws UndefinedOptionsException If an option name is undefined
* @throws InvalidOptionsException If an option doesn't fulfill the
* specified validation rules
* @throws InvalidOptionsException If an option doesn't fulfill the specified validation rules
*
* @return mixed
*/
Expand Down
15 changes: 7 additions & 8 deletions src/Api/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ class Search extends AbstractApi
/**
* @param array $parameters {
*
* @var string $scope The scope to search in
* @var string $search The search query
* @var string $state Filter by state. Issues and merge requests are supported; it is ignored for other scopes.
* @var bool $confidential Filter by confidentiality. Issues scope is supported; it is ignored for other scopes.
* @var string $order_by Allowed values are created_at only. If this is not set, the results are either sorted by created_at in descending order for basic search, or by the most relevant documents when using advanced search.
* @var string $sort Return projects sorted in asc or desc order (default is desc)
* @var string $scope The scope to search in
* @var string $search The search query
* @var string $state Filter by state. Issues and merge requests are supported; it is ignored for other scopes.
* @var bool $confidential Filter by confidentiality. Issues scope is supported; it is ignored for other scopes.
* @var string $order_by Allowed values are created_at only. If this is not set, the results are either sorted by created_at in descending order for basic search, or by the most relevant documents when using advanced search.
* @var string $sort Return projects sorted in asc or desc order (default is desc)
* }
*
* @throws UndefinedOptionsException If an option name is undefined
* @throws InvalidOptionsException If an option doesn't fulfill the
* specified validation rules
* @throws InvalidOptionsException If an option doesn't fulfill the specified validation rules
*
* @return mixed
*/
Expand Down

0 comments on commit fa951eb

Please sign in to comment.