8000 Use the plural merge_requests URL everywhere · rowhit/python-gitlab@cb30dd1 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb30dd1

Browse files
author
Gauvain Pocentek
committed
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 python-gitlab#139 if you need a workaround. Fixes python-gitlab#157
1 parent d09eaa0 commit cb30dd1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitlab/objects.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,8 +1379,7 @@ class ProjectMergeRequestNoteManager(BaseManager):
13791379

13801380

13811381
class ProjectMergeRequest(GitlabObject):
1382-
_url = '/projects/%(project_id)s/merge_request'
1383-
_urlPlural = '/projects/%(project_id)s/merge_requests'
1382+
_url = '/projects/%(project_id)s/merge_requests'
13841383
_constructorTypes = {'author': 'User', 'assignee': 'User'}
13851384
requiredUrlAttrs = ['project_id']
13861385
requiredCreateAttrs = ['source_branch', 'target_branch', 'title']

0 commit comments

Comments
 (0)
0