-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add group labels and issues methods (#99)
* #97 Add support for group labels * #97 Add query options for group label list request * #97 Add group issue list endpoint - Add some missing issue query parameters - Add `GetAllAsync` endpoint to query issue for project, group or all - Mark `GetAsync` endpoint for issue list (for all and project) as deprecated - Simplify use of issue query options (no need for specific project version) - exists only for backward compatibility * Fix formatting * #97 Small refactorings and documentation * Fix unit test (#97) * Fix deprecated calls in tests Co-authored-by: Joseph Petersen <[email protected]>
- Loading branch information
Showing
17 changed files
with
444 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/GitLabApiClient/Internal/Queries/GroupLabelsQueryBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using GitLabApiClient.Models.Groups.Requests; | ||
|
||
namespace GitLabApiClient.Internal.Queries | ||
{ | ||
internal class GroupLabelsQueryBuilder : QueryBuilder<GroupLabelsQueryOptions> | ||
{ | ||
#region Overrides of QueryBuilder<GroupLabelsQueryOptions> | ||
|
||
/// <inheritdoc /> | ||
protected override void BuildCore(GroupLabelsQueryOptions options) | ||
{ | ||
if (options.WithCounts) | ||
{ | ||
Add("with_counts", true); | ||
} | ||
|
||
if (!options.IncludeAncestorGroups) | ||
{ | ||
Add("include_ancestor_groups", false); | ||
} | ||
} | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/GitLabApiClient/Internal/Queries/ProjectIssuesQueryBuilder.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.