Commit a222c553 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab: add a method for MR award queries

parent 559f5f4a
......@@ -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)
......
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