Commit 939cfbf5 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'close_issue'

39d40039

 gitlab: Add `close_issue` function
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !187
parents 7de8819a 39d40039
......@@ -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