Commit f4a6087b authored by Greg Messner's avatar Greg Messner
Browse files

Added deleteMilestone() (#432).

No related merge requests found
Showing with 11 additions and 0 deletions
+11 -0
......@@ -601,4 +601,15 @@ public class MilestonesApi extends AbstractApi {
"projects", getProjectIdOrPath(projectIdOrPath), "milestones", milestoneId);
return (response.readEntity(Milestone.class));
}
/**
* Delete a project milestone.
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param milestoneId the milestone ID to delete
* @throws GitLabApiException if any exception occurs
*/
public void deleteMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "milestones", milestoneId);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment