Skip to content

Commit f042d2f

Browse files
author
Gauvain Pocentek
committed
ProjectLabel: use name as id attribute
1 parent fa92155 commit f042d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -970,11 +970,11 @@ class ProjectMilestone(GitlabObject):
970970
class ProjectLabel(GitlabObject):
971971
_url = '/projects/%(project_id)s/labels'
972972
requiredUrlAttrs = ['project_id']
973+
idAttr = 'name'
973974
requiredDeleteAttrs = ['name']
974975
requiredCreateAttrs = ['name', 'color']
975976
# FIXME: new_name is only valid with update
976977
optionalCreateAttrs = ['new_name']
977-
shortPrintAttr = 'name'
978978

979979

980980
class ProjectFile(GitlabObject):

0 commit comments

Comments
 (0)