kopia lustrzana https://github.com/Langenfeld/py-gitea
feat: Set the default branch on repo creation
A new option is proposed for the gitea.Gitea.create_repo to set the default branch.pull/13/head
rodzic
507ac1de18
commit
4af5ce7ae9
|
@ -228,6 +228,7 @@ class Gitea:
|
|||
license: str = None,
|
||||
readme: str = "Default",
|
||||
issue_labels: str = None,
|
||||
default_branch="master",
|
||||
):
|
||||
""" Create a Repository.
|
||||
Throws:
|
||||
|
@ -249,6 +250,7 @@ class Gitea:
|
|||
"license": license,
|
||||
"issue_labels": issue_labels,
|
||||
"readme": readme,
|
||||
"default_branch": default_branch,
|
||||
},
|
||||
)
|
||||
if "id" in result:
|
||||
|
|
Ładowanie…
Reference in New Issue