Skip to content

Commit

Permalink
add support for branches creation and deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Aug 21, 2014
1 parent 09e4a64 commit 97e2689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab.py
Expand Up @@ -701,11 +701,11 @@ class Issue(GitlabObject):
class ProjectBranch(GitlabObject):
_url = '/projects/%(project_id)s/repository/branches'
idAttr = 'name'
canDelete = False
canUpdate = False
canCreate = False
requiredGetAttrs = ['project_id']
requiredListAttrs = ['project_id']
requiredCreateAttrs = ['project_id', 'branch_name', 'ref']
requiredDeleteAttrs = ['project_id']
_constructorTypes = {'commit': 'ProjectCommit'}

def protect(self, protect=True):
Expand Down

0 comments on commit 97e2689

Please sign in to comment.