Skip to content

Commit

Permalink
Fix naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
mlemieuxlafontaine-ubi committed Oct 25, 2024
1 parent 25de5fc commit 86e5028
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion NGitLab.Mock/Clients/PipelineScheduleClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public IEnumerable<PipelineScheduleBasic> All
public GitLabCollectionResponse<PipelineScheduleBasic> GetAllAsync()
=> GitLabCollectionResponse.Create(All);

public GitLabCollectionResponse<PipelineBasic> GetAllSchedulePipelines(int id)
public GitLabCollectionResponse<PipelineBasic> GetAllSchedulePipelinesAsync(int id)
{
using (Context.BeginOperationScope())
{
Expand Down
3 changes: 1 addition & 2 deletions NGitLab/IPipelineScheduleClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public interface IPipelineScheduleClient
/// Get all pipelines triggered by a pipeline schedule in a project.
/// </summary>
/// <param name="id">Schedule Id</param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
GitLabCollectionResponse<PipelineBasic> GetAllSchedulePipelines(int id);
GitLabCollectionResponse<PipelineBasic> GetAllSchedulePipelinesAsync(int id);
}
2 changes: 1 addition & 1 deletion NGitLab/Impl/PipelineScheduleClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public PipelineScheduleClient(API api, ProjectId projectId)
public GitLabCollectionResponse<PipelineScheduleBasic> GetAllAsync()
=> _api.Get().GetAllAsync<PipelineScheduleBasic>(_schedulesPath);

public GitLabCollectionResponse<PipelineBasic> GetAllSchedulePipelines(int id)
public GitLabCollectionResponse<PipelineBasic> GetAllSchedulePipelinesAsync(int id)
=> _api.Get().GetAllAsync<PipelineBasic>($"{_schedulesPath}/{id.ToStringInvariant()}/pipelines");

public Task<PipelineSchedule> GetByIdAsync(int id, CancellationToken cancellationToken = default)
Expand Down
2 changes: 1 addition & 1 deletion NGitLab/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ NGitLab.IPipelineClient.UpdateMetadataAsync(int pipelineId, NGitLab.Models.Pipel
NGitLab.IPipelineScheduleClient
NGitLab.IPipelineScheduleClient.All.get -> System.Collections.Generic.IEnumerable<NGitLab.Models.PipelineScheduleBasic>
NGitLab.IPipelineScheduleClient.GetAllAsync() -> NGitLab.GitLabCollectionResponse<NGitLab.Models.PipelineScheduleBasic>
NGitLab.IPipelineScheduleClient.GetAllSchedulePipelines(int id) -> NGitLab.GitLabCollectionResponse<NGitLab.Models.PipelineBasic>
NGitLab.IPipelineScheduleClient.GetAllSchedulePipelinesAsync(int id) -> NGitLab.GitLabCollectionResponse<NGitLab.Models.PipelineBasic>
NGitLab.IPipelineScheduleClient.GetByIdAsync(int id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<NGitLab.Models.PipelineSchedule>
NGitLab.IPipelineScheduleClient.this[int id].get -> NGitLab.Models.PipelineSchedule
NGitLab.IProjectBadgeClient
Expand Down

0 comments on commit 86e5028

Please sign in to comment.