Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jocelyn Falempe
rust-gitlab
Commits
6d54ce1d
Commit
6d54ce1d
authored
Feb 17, 2017
by
Ben Boeckel
Browse files
gitlab: add a method for getting issues closed by an MR
parent
5f24d8f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gitlab.rs
View file @
6d54ce1d
...
@@ -418,6 +418,16 @@ impl Gitlab {
...
@@ -418,6 +418,16 @@ impl Gitlab {
self
._post_with_param
(
path
,
&
[(
"body"
,
content
)])
self
._post_with_param
(
path
,
&
[(
"body"
,
content
)])
}
}
/// Get issues closed by a merge request.
pub
fn
get_issues_closed_by_merge_request
(
&
self
,
project
:
ProjectId
,
merge_request
:
MergeRequestId
)
->
Result
<
Vec
<
Issue
>>
{
let
path
=
&
format!
(
"projects/{}/merge_requests/{}/closes_issues"
,
project
,
merge_request
);
self
._get_paged
(
path
)
}
/// Set the labels on an issue.
/// Set the labels on an issue.
pub
fn
set_issue_labels
<
I
,
L
>
(
&
self
,
project
:
ProjectId
,
issue
:
IssueId
,
labels
:
I
)
pub
fn
set_issue_labels
<
I
,
L
>
(
&
self
,
project
:
ProjectId
,
issue
:
IssueId
,
labels
:
I
)
->
Result
<
Issue
>
->
Result
<
Issue
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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