@@ -584,7 +584,7 @@ class ProjectBranch(GitlabObject):
584584 idAttr = 'name'
585585 canUpdate = False
586586 requiredUrlAttrs = ['project_id' ]
587- requiredCreateAttrs = ['branch_name ' , 'ref' ]
587+ requiredCreateAttrs = ['branch ' , 'ref' ]
588588
589589 def protect (self , protect = True , ** kwargs ):
590590 """Protects the branch."""
@@ -741,7 +741,7 @@ class ProjectCommit(GitlabObject):
741741 canDelete = False
742742 canUpdate = False
743743 requiredUrlAttrs = ['project_id' ]
744- requiredCreateAttrs = ['branch_name ' , 'commit_message' , 'actions' ]
744+ requiredCreateAttrs = ['branch ' , 'commit_message' , 'actions' ]
745745 optionalCreateAttrs = ['author_email' , 'author_name' ]
746746 shortPrintAttr = 'title'
747747 managers = (
@@ -1489,10 +1489,10 @@ class ProjectFile(GitlabObject):
14891489 canList = False
14901490 requiredUrlAttrs = ['project_id' ]
14911491 requiredGetAttrs = ['file_path' , 'ref' ]
1492- requiredCreateAttrs = ['file_path' , 'branch_name ' , 'content' ,
1492+ requiredCreateAttrs = ['file_path' , 'branch ' , 'content' ,
14931493 'commit_message' ]
14941494 optionalCreateAttrs = ['encoding' ]
1495- requiredDeleteAttrs = ['branch_name ' , 'commit_message' , 'file_path' ]
1495+ requiredDeleteAttrs = ['branch ' , 'commit_message' , 'file_path' ]
14961496 shortPrintAttr = 'file_path'
14971497 getRequiresId = False
14981498
0 commit comments