@@ -584,7 +584,7 @@ class ProjectBranch(GitlabObject):
584
584
idAttr = 'name'
585
585
canUpdate = False
586
586
requiredUrlAttrs = ['project_id' ]
587
- requiredCreateAttrs = ['branch_name ' , 'ref' ]
587
+ requiredCreateAttrs = ['branch ' , 'ref' ]
588
588
589
589
def protect (self , protect = True , ** kwargs ):
590
590
"""Protects the branch."""
@@ -741,7 +741,7 @@ class ProjectCommit(GitlabObject):
741
741
canDelete = False
742
742
canUpdate = False
743
743
requiredUrlAttrs = ['project_id' ]
744
- requiredCreateAttrs = ['branch_name ' , 'commit_message' , 'actions' ]
744
+ requiredCreateAttrs = ['branch ' , 'commit_message' , 'actions' ]
745
745
optionalCreateAttrs = ['author_email' , 'author_name' ]
746
746
shortPrintAttr = 'title'
747
747
managers = (
@@ -1489,10 +1489,10 @@ class ProjectFile(GitlabObject):
1489
1489
canList = False
1490
1490
requiredUrlAttrs = ['project_id' ]
1491
1491
requiredGetAttrs = ['file_path' , 'ref' ]
1492
- requiredCreateAttrs = ['file_path' , 'branch_name ' , 'content' ,
1492
+ requiredCreateAttrs = ['file_path' , 'branch ' , 'content' ,
1493
1493
'commit_message' ]
1494
1494
optionalCreateAttrs = ['encoding' ]
1495
- requiredDeleteAttrs = ['branch_name ' , 'commit_message' , 'file_path' ]
1495
+ requiredDeleteAttrs = ['branch ' , 'commit_message' , 'file_path' ]
1496
1496
shortPrintAttr = 'file_path'
1497
1497
getRequiresId = False
1498
1498
0 commit comments