Skip to content

Commit 97e2689

Browse files
author
Gauvain Pocentek
committed
add support for branches creation and deletion
1 parent 09e4a64 commit 97e2689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -701,11 +701,11 @@ class Issue(GitlabObject):
701701
class ProjectBranch(GitlabObject):
702702
_url = '/projects/%(project_id)s/repository/branches'
703703
idAttr = 'name'
704-
canDelete = False
705704
canUpdate = False
706-
canCreate = False
707705
requiredGetAttrs = ['project_id']
708706
requiredListAttrs = ['project_id']
707+
requiredCreateAttrs = ['project_id', 'branch_name', 'ref']
708+
requiredDeleteAttrs = ['project_id']
709709
_constructorTypes = {'commit': 'ProjectCommit'}
710710

711711
def protect(self, protect=True):

0 commit comments

Comments
 (0)