From cb30dd1d4caaba03f464cdf5751ef0336f8a6c33 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Thu, 29 Sep 2016 21:07:10 +0200 Subject: Use the plural merge_requests URL everywhere This breaks compatibility with older gitlab versions but maintaining support for changed APIs is just too complex and time consuming. See issue #139 if you need a workaround. Fixes #157 --- gitlab/objects.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index 577cd8a..8821633 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1379,8 +1379,7 @@ class ProjectMergeRequestNoteManager(BaseManager): class ProjectMergeRequest(GitlabObject): - _url = '/projects/%(project_id)s/merge_request' - _urlPlural = '/projects/%(project_id)s/merge_requests' + _url = '/projects/%(project_id)s/merge_requests' _constructorTypes = {'author': 'User', 'assignee': 'User'} requiredUrlAttrs = ['project_id'] requiredCreateAttrs = ['source_branch', 'target_branch', 'title'] -- cgit v1.2.1