Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 98a3e64c authored by Ben Boeckel's avatar Ben Boeckel
Browse files

api: fix milestone creation endpoint paths

parent 5336b453
......@@ -19,6 +19,7 @@
* The `min_access_level` field for `api::groups::Groups` and the
`access_level` for `api::projects::members::AddProjectMember` are now
properly passed as integers to the API. (#42)
* The path used for the project and group milestone endpoints has been fixed.
# v0.1210.2
......
......@@ -46,7 +46,7 @@ impl<'a> Endpoint for CreateGroupMilestone<'a> {
}
fn endpoint(&self) -> Cow<'static, str> {
format!("groups/{}/issues", self.group).into()
format!("groups/{}/milestones", self.group).into()
}
fn body(&self) -> Result<Option<(&'static str, Vec<u8>)>, BodyError> {
......
......@@ -46,7 +46,7 @@ impl<'a> Endpoint for CreateProjectMilestone<'a> {
}
fn endpoint(&self) -> Cow<'static, str> {
format!("projects/{}/issues", self.project).into()
format!("projects/{}/milestones", self.project).into()
}
fn body(&self) -> Result<Option<(&'static str, Vec<u8>)>, BodyError> {
......
Markdown is supported
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