summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2014-08-21 11:23:18 +0200
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2014-08-21 11:23:18 +0200
commit97e26896a7c2916b0f0d2c64934f280d4c9e5dc7 (patch)
tree3cc484d3e868edd43b2a48936fec697024622abe /gitlab.py
parent09e4a64cda0531f7dd45984625cf5e1c90bb430f (diff)
downloadgitlab-97e26896a7c2916b0f0d2c64934f280d4c9e5dc7.tar.gz
add support for branches creation and deletion
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab.py b/gitlab.py
index 1bd56f8..9313c1d 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -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):