|
|
|
@ -107,7 +107,7 @@ type CreateRepoOption struct {
|
|
|
|
|
// unique: true
|
|
|
|
|
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"` |
|
|
|
|
// Description of the repository to create
|
|
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
|
Description string `json:"description" binding:"MaxSize(1024)"` |
|
|
|
|
// Whether the repository is private
|
|
|
|
|
Private bool `json:"private"` |
|
|
|
|
// Label-Set to use
|
|
|
|
@ -136,7 +136,7 @@ type EditRepoOption struct {
|
|
|
|
|
// unique: true
|
|
|
|
|
Name *string `json:"name,omitempty" binding:"OmitEmpty;AlphaDashDot;MaxSize(100);"` |
|
|
|
|
// a short description of the repository.
|
|
|
|
|
Description *string `json:"description,omitempty" binding:"MaxSize(255)"` |
|
|
|
|
Description *string `json:"description,omitempty" binding:"MaxSize(1024)"` |
|
|
|
|
// a URL with more information about the repository.
|
|
|
|
|
Website *string `json:"website,omitempty" binding:"MaxSize(255)"` |
|
|
|
|
// either `true` to make the repository private or `false` to make it public.
|
|
|
|
@ -200,7 +200,7 @@ type GenerateRepoOption struct {
|
|
|
|
|
// unique: true
|
|
|
|
|
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"` |
|
|
|
|
// Description of the repository to create
|
|
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
|
Description string `json:"description" binding:"MaxSize(1024)"` |
|
|
|
|
// Whether the repository is private
|
|
|
|
|
Private bool `json:"private"` |
|
|
|
|
// include git content of default branch in template repo
|
|
|
|
@ -309,7 +309,7 @@ type MigrateRepoOptions struct {
|
|
|
|
|
LFS bool `json:"lfs"` |
|
|
|
|
LFSEndpoint string `json:"lfs_endpoint"` |
|
|
|
|
Private bool `json:"private"` |
|
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
|
Description string `json:"description" binding:"MaxSize(1024)"` |
|
|
|
|
Wiki bool `json:"wiki"` |
|
|
|
|
Milestones bool `json:"milestones"` |
|
|
|
|
Labels bool `json:"labels"` |
|
|
|
|