Skip to content

Commit

Permalink
ProjectLabel: use name as id attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Oct 26, 2014
1 parent fa92155 commit f042d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab.py
Expand Up @@ -970,11 +970,11 @@ class ProjectMilestone(GitlabObject):
class ProjectLabel(GitlabObject):
_url = '/projects/%(project_id)s/labels'
requiredUrlAttrs = ['project_id']
idAttr = 'name'
requiredDeleteAttrs = ['name']
requiredCreateAttrs = ['name', 'color']
# FIXME: new_name is only valid with update
optionalCreateAttrs = ['new_name']
shortPrintAttr = 'name'


class ProjectFile(GitlabObject):
Expand Down

0 comments on commit f042d2f

Please sign in to comment.