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
Nicholas Bailey
rust-gitlab
Commits
a222c553
Commit
a222c553
authored
Nov 08, 2016
by
Ben Boeckel
Browse files
gitlab: add a method for MR award queries
parent
559f5f4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gitlab.rs
View file @
a222c553
...
...
@@ -382,6 +382,14 @@ impl Gitlab {
Self
::
_post_req
(
req
)
}
/// Get the awards for a merge request.
pub
fn
merge_request_awards
(
&
self
,
project
:
ProjectId
,
merge_request
:
MergeRequestId
)
->
GitlabResult
<
Vec
<
AwardEmoji
>>
{
self
._get_paged
(
&
format!
(
"projects/{}/merge_requests/{}/award_emoji"
,
project
,
merge_request
))
}
/// Get the awards for a merge request note.
pub
fn
merge_request_note_awards
(
&
self
,
project
:
ProjectId
,
merge_request
:
MergeRequestId
,
note
:
NoteId
)
...
...
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