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

Commit 39d40039 authored by Andrew Chin's avatar Andrew Chin
Browse files

gitlab: Add `close_issue` function

parent 7de8819a
......@@ -1622,6 +1622,12 @@ impl Gitlab {
)
}
/// Closes an issue
pub fn close_issue(&self, project: ProjectId, issue: IssueInternalId) -> GitlabResult<Issue> {
let path = format!("projects/{}/issues/{}", project, issue);
self.put_with_param(path, &[("state_event", "close")])
}
/// Set the labels on an issue.
pub fn set_issue_labels<I, L>(
&self,
......
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