Check if label template exist first (#14384)

* add check

* refactor

* rollback repo on error after session closed
This commit is contained in:
6543 2021-01-18 21:00:50 +01:00 committed by GitHub
parent 127907c5e6
commit 2686e6bbbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 33 deletions

View file

@ -106,7 +106,7 @@ type CreateRepoOption struct {
Description string `json:"description" binding:"MaxSize(255)"`
// Whether the repository is private
Private bool `json:"private"`
// Issue Label set to use
// Label-Set to use
IssueLabels string `json:"issue_labels"`
// Whether the repository should be auto-intialized?
AutoInit bool `json:"auto_init"`