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>(
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