Skip to content

Commit

Permalink
renamed query to have jobs singular (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
phdesroUbi authored Jun 17, 2021
1 parent f98b999 commit 8a87dba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NGitLab.Mock/Clients/PipelineClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public Models.Job[] GetJobs(int pipelineId)
}
}

public IEnumerable<Models.Job> GetJobs(PipelineJobsQuery query)
public IEnumerable<Models.Job> GetJobs(PipelineJobQuery query)
{
using (Context.BeginOperationScope())
{
Expand Down
2 changes: 1 addition & 1 deletion NGitLab/IPipelineClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public interface IPipelineClient
/// <summary>
/// Returns the jobs of a pipeline.
/// </summary>
IEnumerable<Job> GetJobs(PipelineJobsQuery query);
IEnumerable<Job> GetJobs(PipelineJobQuery query);

/// <summary>
/// Create a new pipeline.
Expand Down
2 changes: 1 addition & 1 deletion NGitLab/Impl/PipelineClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Job[] GetJobs(int pipelineId)
return jobs;
}

public IEnumerable<Job> GetJobs(PipelineJobsQuery query)
public IEnumerable<Job> GetJobs(PipelineJobQuery query)
{
var url = $"{_pipelinesPath}/{query.PipelineId}/jobs";
url = Utils.AddParameter(url, "scope", query.Scope);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace NGitLab.Models
{
[DataContract]
public class PipelineJobsQuery
public class PipelineJobQuery
{
[Required]
[DataMember(Name = "id")]
Expand Down

0 comments on commit 8a87dba

Please sign in to comment.