Skip to content

Commit f4a6087

Browse files
committed
Added deleteMilestone() (#432).
1 parent 752622f commit f4a6087

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,4 +601,15 @@ public Milestone updateMilestone(Object projectIdOrPath, Integer milestoneId, St
601601
"projects", getProjectIdOrPath(projectIdOrPath), "milestones", milestoneId);
602602
return (response.readEntity(Milestone.class));
603603
}
604+
605+
/**
606+
* Delete a project milestone.
607+
*
608+
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
609+
* @param milestoneId the milestone ID to delete
610+
* @throws GitLabApiException if any exception occurs
611+
*/
612+
public void deleteMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException {
613+
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "milestones", milestoneId);
614+
}
604615
}

0 commit comments

Comments
 (0)