File tree Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ type EditUserOption struct {
34
34
MustChangePassword * bool `json:"must_change_password"`
35
35
Website * string `json:"website" binding:"ValidUrl;MaxSize(255)"`
36
36
Location * string `json:"location" binding:"MaxSize(50)"`
37
+ Description * string `json:"description" binding:"MaxSize(255)"`
37
38
Active * bool `json:"active"`
38
39
Admin * bool `json:"admin"`
39
40
AllowGitHook * bool `json:"allow_git_hook"`
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ type CreateOrgOption struct {
22
22
// required: true
23
23
UserName string `json:"username" binding:"Required"`
24
24
FullName string `json:"full_name"`
25
+ Description string `json:"description" binding:"MaxSize(255)"`
25
26
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"`
26
27
Location string `json:"location" binding:"MaxSize(50)"`
27
28
// possible values are `public` (default), `limited` or `private`
@@ -33,6 +34,7 @@ type CreateOrgOption struct {
33
34
// EditOrgOption options for editing an organization
34
35
type EditOrgOption struct {
35
36
FullName string `json:"full_name"`
37
+ Description string `json:"description" binding:"MaxSize(255)"`
36
38
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"`
37
39
Location string `json:"location" binding:"MaxSize(50)"`
38
40
// possible values are `public`, `limited` or `private`
Original file line number Diff line number Diff line change @@ -203,6 +203,9 @@ func EditUser(ctx *context.APIContext) {
203
203
if form .Location != nil {
204
204
u .Location = * form .Location
205
205
}
206
+ if form .Description != nil {
207
+ u .Description = * form .Description
208
+ }
206
209
if form .Active != nil {
207
210
u .IsActive = * form .Active
208
211
}
Original file line number Diff line number Diff line change 13800
13800
"type": "boolean",
13801
13801
"x-go-name": "AllowImportLocal"
13802
13802
},
13803
+ "description": {
13804
+ "type": "string",
13805
+ "x-go-name": "Description"
13806
+ },
13803
13807
"email": {
13804
13808
"type": "string",
13805
13809
"format": "email",
You can’t perform that action at this time.
0 commit comments