Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
f4a6087b
Commit
f4a6087b
authored
Sep 13, 2019
by
Greg Messner
Browse files
Added deleteMilestone() (#432).
parent
752622fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/MilestonesApi.java
View file @
f4a6087b
...
...
@@ -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
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment