Commit 40a9c531 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'set-mr-labels-method'


 Add Gitlab::set_merge_request_labels

Acked-by: Kitware Robot's avatarKitware Robot <>
Reviewed-by: Ben Boeckel's avatarBen Boeckel <>
Merge-request: !94
parents 42673dda 239023e9
......@@ -434,6 +434,18 @@ impl Gitlab {
self._put_with_param(path, &[("labels", labels.into_iter().join(","))])
/// Set the labels on a merge request.
pub fn set_merge_request_labels<I, L>(&self, project: ProjectId, merge_request: MergeRequestInternalId, labels: I)
-> Result<MergeRequest>
where I: IntoIterator<Item = L>,
L: Display,
let path = &format!("projects/{}/merge_requests/{}",
self._put_with_param(path, &[("labels", labels.into_iter().join(","))])
/// Create a URL to an API endpoint.
fn _mk_url(&self, url: &str) -> Result<Url> {
debug!(target: "gitlab", "api call {}", url);
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