Skip to content

Commit 33a698b

Browse files
authored
fix build (#156)
1 parent 84a6ec2 commit 33a698b

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

src/GitLabApiClient/IGroupsClient.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,34 @@ Task<IList<GroupLabel>> GetLabelsAsync(GroupId groupId,
218218
/// <param name="groupId">The ID, path or <see cref="Group"/> of the group.</param>
219219
/// <param name="name">Name of the label.</param>
220220
Task DeleteLabelAsync(GroupId groupId, string name);
221+
222+
/// <summary>
223+
/// Retrieves group variables by its id.
224+
/// </summary>
225+
/// <param name="groupId">Id of the group.</param>
226+
Task<IList<Variable>> GetVariablesAsync(GroupId groupId);
227+
228+
/// <summary>
229+
/// Creates new project variable.
230+
/// </summary>
231+
/// <param name="groupId">The ID, path or <see cref="Group"/> of the group.</param>
232+
/// <param name="request">Create variable request.</param>
233+
/// <returns>Newly created variable.</returns>
234+
Task<Variable> CreateVariableAsync(GroupId groupId, CreateGroupVariableRequest request);
235+
236+
/// <summary>
237+
/// Updates an existing group variable.
238+
/// </summary>
239+
/// <param name="groupId">The ID, path or <see cref="Group"/> of the group.</param>
240+
/// <param name="request">Update variable request.</param>
241+
/// <returns>Newly modified variable.</returns>
242+
Task<Variable> UpdateVariableAsync(GroupId groupId, UpdateGroupVariableRequest request);
243+
244+
/// <summary>
245+
/// Deletes group variable
246+
/// </summary>
247+
/// <param name="groupId">The ID, path or <see cref="Group"/> of the group.</param>
248+
/// <param name="key">The Key ID of the variable.</param>
249+
Task DeleteVariableAsync(GroupId groupId, string key);
221250
}
222251
}

src/GitLabApiClient/IMergeRequestsClient.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
using System.Collections.Generic;
33
using System.Threading.Tasks;
44
using GitLabApiClient.Internal.Paths;
5+
using GitLabApiClient.Models.AwardEmojis.Responses;
6+
using GitLabApiClient.Models.Discussions.Responses;
57
using GitLabApiClient.Models.MergeRequests.Requests;
68
using GitLabApiClient.Models.MergeRequests.Responses;
79
using GitLabApiClient.Models.Notes.Requests;
810
using GitLabApiClient.Models.Notes.Responses;
11+
using GitLabApiClient.Models.Projects.Responses;
912

1013
namespace GitLabApiClient
1114
{
@@ -71,5 +74,18 @@ public interface IMergeRequestsClient
7174
/// <returns>Merge requests satisfying options.</returns>
7275
Task<IList<Note>> GetNotesAsync(ProjectId projectId, int mergeRequestIid, Action<MergeRequestNotesQueryOptions> options = null);
7376

77+
/// <summary>
78+
/// Retrieves discussions of a merge request.
79+
/// </summary>
80+
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
81+
/// <param name="mergeRequestIid">Iid of the merge request.</param>
82+
Task<IList<Discussion>> GetDiscussionsAsync(ProjectId projectId, int mergeRequestIid);
83+
84+
/// <summary>
85+
/// Retrieves a list of all award emoji for a specified merge request.
86+
/// </summary>
87+
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
88+
/// <param name="mergeRequestIid">The Internal Merge Request Id.</param>
89+
Task<IList<AwardEmoji>> GetAwardEmojisAsync(ProjectId projectId, int mergeRequestIid);
7490
}
7591
}

src/GitLabApiClient/IProjectsClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface IProjectsClient
4040
/// Retrieves project variables by its id.
4141
/// </summary>
4242
/// <param name="projectId">Id of the project.</param>
43-
Task<IList<Variable>> GetVariablesAsync(int projectId);
43+
Task<IList<Variable>> GetVariablesAsync(ProjectId projectId);
4444

4545
/// <summary>
4646
/// Get the labels list of a project.

0 commit comments

Comments
 (0)