diff --git a/lib/gitlab/client/merge_requests.rb b/lib/gitlab/client/merge_requests.rb index d2bd5f3f9..12ec16711 100644 --- a/lib/gitlab/client/merge_requests.rb +++ b/lib/gitlab/client/merge_requests.rb @@ -187,7 +187,7 @@ def merge_request_commits(project, id) # @param [Integer] project The ID of a project # @param [Integer] iid The internal ID of a merge request def merge_request_closes_issues(project_id, merge_request_iid) - get("/projects/#{project_id}/merge_requests/#{merge_request_iid}/closes_issues") + get("/projects/#{url_encode project_id}/merge_requests/#{merge_request_iid}/closes_issues") end # Subscribes to a merge request.