Skip to content

Commit 02c1995

Browse files
committed
Renamed modifyPipelineSchedule() to updatePipelineSchedule() to follow library naming conventions (#318).
1 parent 74588bc commit 02c1995

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/gitlab4j/api/PipelineApi.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ public Pipeline cancelPipelineJobs(Object projectIdOrPath, int pipelineId) throw
305305
public List<PipelineSchedule> getPipelineSchedules(Object projectIdOrPath) throws GitLabApiException {
306306
return (getPipelineSchedules(projectIdOrPath, getDefaultPerPage()).all());
307307
}
308+
308309
/**
309310
* Get list of project pipeline schedules in the specified page range.
310311
*
@@ -320,6 +321,7 @@ public List<PipelineSchedule> getPipelineSchedules(Object projectIdOrPath, int p
320321
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "pipeline_schedules");
321322
return (response.readEntity(new GenericType<List<PipelineSchedule>>() {}));
322323
}
324+
323325
/**
324326
* Get Pager of project pipeline schedule.
325327
*
@@ -347,7 +349,6 @@ public Stream<PipelineSchedule> getPipelineSchedulesStream(Object projectIdOrPat
347349
return (getPipelineSchedules(projectIdOrPath, getDefaultPerPage()).stream());
348350
}
349351

350-
351352
/**
352353
* Get a specific pipeline schedule for project.
353354
*
@@ -427,7 +428,7 @@ public void deletePipelineSchedule(Object projectIdOrPath, Integer pipelineSched
427428
* @return the modified project schedule
428429
* @throws GitLabApiException if any exception occurs
429430
*/
430-
public PipelineSchedule modifyPipelineSchedule(Object projectIdOrPath,PipelineSchedule pipelineSchedule) throws GitLabApiException {
431+
public PipelineSchedule updatePipelineSchedule(Object projectIdOrPath,PipelineSchedule pipelineSchedule) throws GitLabApiException {
431432

432433
GitLabApiForm formData = new GitLabApiForm()
433434
.withParam("description", pipelineSchedule.getDescription(), false)

0 commit comments

Comments
 (0)