@@ -111,7 +111,7 @@ type CreateRepoOption struct {
111
111
// unique: true
112
112
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"`
113
113
// Description of the repository to create
114
- Description string `json:"description" binding:"MaxSize(255 )"`
114
+ Description string `json:"description" binding:"MaxSize(2048 )"`
115
115
// Whether the repository is private
116
116
Private bool `json:"private"`
117
117
// Label-Set to use
@@ -140,9 +140,9 @@ type EditRepoOption struct {
140
140
// unique: true
141
141
Name * string `json:"name,omitempty" binding:"OmitEmpty;AlphaDashDot;MaxSize(100);"`
142
142
// a short description of the repository.
143
- Description * string `json:"description,omitempty" binding:"MaxSize(255 )"`
143
+ Description * string `json:"description,omitempty" binding:"MaxSize(2048 )"`
144
144
// a URL with more information about the repository.
145
- Website * string `json:"website,omitempty" binding:"MaxSize(255 )"`
145
+ Website * string `json:"website,omitempty" binding:"MaxSize(1024 )"`
146
146
// either `true` to make the repository private or `false` to make it public.
147
147
// Note: you will get a 422 error if the organization restricts changing repository visibility to organization
148
148
// owners and a non-owner tries to change the value of private.
@@ -208,7 +208,7 @@ type GenerateRepoOption struct {
208
208
// Default branch of the new repository
209
209
DefaultBranch string `json:"default_branch"`
210
210
// Description of the repository to create
211
- Description string `json:"description" binding:"MaxSize(255 )"`
211
+ Description string `json:"description" binding:"MaxSize(2048 )"`
212
212
// Whether the repository is private
213
213
Private bool `json:"private"`
214
214
// include git content of default branch in template repo
@@ -316,7 +316,7 @@ type MigrateRepoOptions struct {
316
316
LFS bool `json:"lfs"`
317
317
LFSEndpoint string `json:"lfs_endpoint"`
318
318
Private bool `json:"private"`
319
- Description string `json:"description" binding:"MaxSize(255 )"`
319
+ Description string `json:"description" binding:"MaxSize(2048 )"`
320
320
Wiki bool `json:"wiki"`
321
321
Milestones bool `json:"milestones"`
322
322
Labels bool `json:"labels"`
0 commit comments