File tree Expand file tree Collapse file tree 27 files changed +131
-112
lines changed Expand file tree Collapse file tree 27 files changed +131
-112
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ import "time"
8
8
9
9
// CreateUserOption create user options
10
10
type CreateUserOption struct {
11
- SourceID int64 `json:"source_id"`
11
+ SourceID int64 `json:"source_id"`
12
+ // identifier of the user, provided by the external authenticator (if configured)
13
+ // default: empty
12
14
LoginName string `json:"login_name"`
15
+ // username of the user
13
16
// required: true
14
17
Username string `json:"username" binding:"Required;Username;MaxSize(40)"`
15
18
FullName string `json:"full_name" binding:"MaxSize(100)"`
@@ -32,6 +35,8 @@ type CreateUserOption struct {
32
35
type EditUserOption struct {
33
36
// required: true
34
37
SourceID int64 `json:"source_id"`
38
+ // identifier of the user, provided by the external authenticator (if configured)
39
+ // default: empty
35
40
// required: true
36
41
LoginName string `json:"login_name" binding:"Required"`
37
42
// swagger:strfmt email
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ type PayloadUser struct {
71
71
// Full name of the commit author
72
72
Name string `json:"name"`
73
73
// swagger:strfmt email
74
- Email string `json:"email"`
74
+ Email string `json:"email"`
75
+ // username of the user
75
76
UserName string `json:"username"`
76
77
}
77
78
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type AddTimeOption struct {
14
14
Time int64 `json:"time" binding:"Required"`
15
15
// swagger:strfmt date-time
16
16
Created time.Time `json:"created"`
17
- // User who spent the time (optional)
17
+ // username of the user who spent the time working on the issue (optional)
18
18
User string `json:"user_name"`
19
19
}
20
20
@@ -26,7 +26,8 @@ type TrackedTime struct {
26
26
// Time in seconds
27
27
Time int64 `json:"time"`
28
28
// deprecated (only for backwards compatibility)
29
- UserID int64 `json:"user_id"`
29
+ UserID int64 `json:"user_id"`
30
+ // username of the user
30
31
UserName string `json:"user_name"`
31
32
// deprecated (only for backwards compatibility)
32
33
IssueID int64 `json:"issue_id"`
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ type Organization struct {
15
15
Location string `json:"location"`
16
16
Visibility string `json:"visibility"`
17
17
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"`
18
+ // username of the organization
18
19
// deprecated
19
20
UserName string `json:"username"`
20
21
}
@@ -30,6 +31,7 @@ type OrganizationPermissions struct {
30
31
31
32
// CreateOrgOption options for creating an organization
32
33
type CreateOrgOption struct {
34
+ // username of the organization
33
35
// required: true
34
36
UserName string `json:"username" binding:"Required;Username;MaxSize(40)"`
35
37
FullName string `json:"full_name" binding:"MaxSize(100)"`
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ import (
15
15
type User struct {
16
16
// the user's id
17
17
ID int64 `json:"id"`
18
- // the user's username
18
+ // login of the user, same as ` username`
19
19
UserName string `json:"login"`
20
- // the user's authentication sign-in name.
20
+ // identifier of the user, provided by the external authenticator (if configured)
21
21
// default: empty
22
22
LoginName string `json:"login_name"`
23
23
// The ID of the user's Authentication Source
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ type Email struct {
11
11
Verified bool `json:"verified"`
12
12
Primary bool `json:"primary"`
13
13
UserID int64 `json:"user_id"`
14
+ // username of the user
14
15
UserName string `json:"username"`
15
16
}
16
17
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func CreateOrg(ctx *context.APIContext) {
29
29
// parameters:
30
30
// - name: username
31
31
// in: path
32
- // description: username of the user that will own the created organization
32
+ // description: username of the user who will own the created organization
33
33
// type: string
34
34
// required: true
35
35
// - name: organization
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func CreateRepo(ctx *context.APIContext) {
22
22
// parameters:
23
23
// - name: username
24
24
// in: path
25
- // description: username of the user. This user will own the created repository
25
+ // description: username of the user who will own the created repository
26
26
// type: string
27
27
// required: true
28
28
// - name: repository
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ func EditUser(ctx *context.APIContext) {
175
175
// parameters:
176
176
// - name: username
177
177
// in: path
178
- // description: username of user to edit
178
+ // description: username of the user whose data is to be edited
179
179
// type: string
180
180
// required: true
181
181
// - name: body
@@ -272,7 +272,7 @@ func DeleteUser(ctx *context.APIContext) {
272
272
// parameters:
273
273
// - name: username
274
274
// in: path
275
- // description: username of user to delete
275
+ // description: username of the user to delete
276
276
// type: string
277
277
// required: true
278
278
// - name: purge
@@ -328,7 +328,7 @@ func CreatePublicKey(ctx *context.APIContext) {
328
328
// parameters:
329
329
// - name: username
330
330
// in: path
331
- // description: username of the user
331
+ // description: username of the user who is to receive a public key
332
332
// type: string
333
333
// required: true
334
334
// - name: key
@@ -358,7 +358,7 @@ func DeleteUserPublicKey(ctx *context.APIContext) {
358
358
// parameters:
359
359
// - name: username
360
360
// in: path
361
- // description: username of user
361
+ // description: username of the user whose public key is to be deleted
362
362
// type: string
363
363
// required: true
364
364
// - name: id
@@ -405,7 +405,7 @@ func SearchUsers(ctx *context.APIContext) {
405
405
// format: int64
406
406
// - name: login_name
407
407
// in: query
408
- // description: user's login name to search for
408
+ // description: identifier of the user, provided by the external authenticator
409
409
// type: string
410
410
// - name: page
411
411
// in: query
@@ -456,7 +456,7 @@ func RenameUser(ctx *context.APIContext) {
456
456
// parameters:
457
457
// - name: username
458
458
// in: path
459
- // description: existing username of user
459
+ // description: current username of the user
460
460
// type: string
461
461
// required: true
462
462
// - name: body
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func ListUserBadges(ctx *context.APIContext) {
22
22
// parameters:
23
23
// - name: username
24
24
// in: path
25
- // description: username of user
25
+ // description: username of the user whose badges are to be listed
26
26
// type: string
27
27
// required: true
28
28
// responses:
@@ -53,7 +53,7 @@ func AddUserBadges(ctx *context.APIContext) {
53
53
// parameters:
54
54
// - name: username
55
55
// in: path
56
- // description: username of user
56
+ // description: username of the user to whom a badge is to be added
57
57
// type: string
58
58
// required: true
59
59
// - name: body
@@ -87,7 +87,7 @@ func DeleteUserBadges(ctx *context.APIContext) {
87
87
// parameters:
88
88
// - name: username
89
89
// in: path
90
- // description: username of user
90
+ // description: username of the user whose badge is to be deleted
91
91
// type: string
92
92
// required: true
93
93
// - name: body
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func CheckUserBlock(ctx *context.APIContext) {
47
47
// required: true
48
48
// - name: username
49
49
// in: path
50
- // description: user to check
50
+ // description: username of the user to check
51
51
// type: string
52
52
// required: true
53
53
// responses:
@@ -71,7 +71,7 @@ func BlockUser(ctx *context.APIContext) {
71
71
// required: true
72
72
// - name: username
73
73
// in: path
74
- // description: user to block
74
+ // description: username of the user to block
75
75
// type: string
76
76
// required: true
77
77
// - name: note
@@ -101,7 +101,7 @@ func UnblockUser(ctx *context.APIContext) {
101
101
// required: true
102
102
// - name: username
103
103
// in: path
104
- // description: user to unblock
104
+ // description: username of the user to unblock
105
105
// type: string
106
106
// required: true
107
107
// responses:
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ func IsMember(ctx *context.APIContext) {
133
133
// required: true
134
134
// - name: username
135
135
// in: path
136
- // description: username of the user
136
+ // description: username of the user to check for an organization membership
137
137
// type: string
138
138
// required: true
139
139
// responses:
@@ -186,7 +186,7 @@ func IsPublicMember(ctx *context.APIContext) {
186
186
// required: true
187
187
// - name: username
188
188
// in: path
189
- // description: username of the user
189
+ // description: username of the user to check for a public organization membership
190
190
// type: string
191
191
// required: true
192
192
// responses:
@@ -240,7 +240,7 @@ func PublicizeMember(ctx *context.APIContext) {
240
240
// required: true
241
241
// - name: username
242
242
// in: path
243
- // description: username of the user
243
+ // description: username of the user whose membership is to be publicized
244
244
// type: string
245
245
// required: true
246
246
// responses:
@@ -282,7 +282,7 @@ func ConcealMember(ctx *context.APIContext) {
282
282
// required: true
283
283
// - name: username
284
284
// in: path
285
- // description: username of the user
285
+ // description: username of the user whose membership is to be concealed
286
286
// type: string
287
287
// required: true
288
288
// responses:
@@ -324,7 +324,7 @@ func DeleteMember(ctx *context.APIContext) {
324
324
// required: true
325
325
// - name: username
326
326
// in: path
327
- // description: username of the user
327
+ // description: username of the user to remove from the organization
328
328
// type: string
329
329
// required: true
330
330
// responses:
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ func ListUserOrgs(ctx *context.APIContext) {
82
82
// parameters:
83
83
// - name: username
84
84
// in: path
85
- // description: username of user
85
+ // description: username of the user whose organizations are to be listed
86
86
// type: string
87
87
// required: true
88
88
// - name: page
@@ -112,7 +112,7 @@ func GetUserOrgsPermissions(ctx *context.APIContext) {
112
112
// parameters:
113
113
// - name: username
114
114
// in: path
115
- // description: username of user
115
+ // description: username of the user whose permissions are to be obtained
116
116
// type: string
117
117
// required: true
118
118
// - name: org
Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ func GetTeamMember(ctx *context.APIContext) {
426
426
// required: true
427
427
// - name: username
428
428
// in: path
429
- // description: username of the member to list
429
+ // description: username of the user whose data is to be listed
430
430
// type: string
431
431
// required: true
432
432
// responses:
@@ -467,7 +467,7 @@ func AddTeamMember(ctx *context.APIContext) {
467
467
// required: true
468
468
// - name: username
469
469
// in: path
470
- // description: username of the user to add
470
+ // description: username of the user to add to a team
471
471
// type: string
472
472
// required: true
473
473
// responses:
@@ -509,7 +509,7 @@ func RemoveTeamMember(ctx *context.APIContext) {
509
509
// required: true
510
510
// - name: username
511
511
// in: path
512
- // description: username of the user to remove
512
+ // description: username of the user to remove from a team
513
513
// type: string
514
514
// required: true
515
515
// responses:
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ func IsCollaborator(ctx *context.APIContext) {
93
93
// required: true
94
94
// - name: collaborator
95
95
// in: path
96
- // description: username of the collaborator
96
+ // description: username of the user to check for being a collaborator
97
97
// type: string
98
98
// required: true
99
99
// responses:
@@ -145,7 +145,7 @@ func AddOrUpdateCollaborator(ctx *context.APIContext) {
145
145
// required: true
146
146
// - name: collaborator
147
147
// in: path
148
- // description: username of the collaborator to add
148
+ // description: username of the user to add or update as a collaborator
149
149
// type: string
150
150
// required: true
151
151
// - name: body
@@ -264,7 +264,7 @@ func GetRepoPermissions(ctx *context.APIContext) {
264
264
// required: true
265
265
// - name: collaborator
266
266
// in: path
267
- // description: username of the collaborator
267
+ // description: username of the collaborator whose permissions are to be obtained
268
268
// type: string
269
269
// required: true
270
270
// responses:
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func AddIssueSubscription(ctx *context.APIContext) {
43
43
// required: true
44
44
// - name: user
45
45
// in: path
46
- // description: user to subscribe
46
+ // description: username of the user to subscribe the issue to
47
47
// type: string
48
48
// required: true
49
49
// responses:
@@ -87,7 +87,7 @@ func DelIssueSubscription(ctx *context.APIContext) {
87
87
// required: true
88
88
// - name: user
89
89
// in: path
90
- // description: user witch unsubscribe
90
+ // description: username of the user to unsubscribe from an issue
91
91
// type: string
92
92
// required: true
93
93
// responses:
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ func ListTrackedTimesByUser(ctx *context.APIContext) {
405
405
// required: true
406
406
// - name: user
407
407
// in: path
408
- // description: username of user
408
+ // description: username of the user whose tracked times are to be listed
409
409
// type: string
410
410
// required: true
411
411
// responses:
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ func ListAccessTokens(ctx *context.APIContext) {
30
30
// parameters:
31
31
// - name: username
32
32
// in: path
33
- // description: username of user
33
+ // description: username of to user whose access tokens are to be listed
34
34
// type: string
35
35
// required: true
36
36
// - name: page
@@ -83,7 +83,7 @@ func CreateAccessToken(ctx *context.APIContext) {
83
83
// parameters:
84
84
// - name: username
85
85
// in: path
86
- // description: username of user
86
+ // description: username of the user whose token is to be created
87
87
// required: true
88
88
// type: string
89
89
// - name: body
@@ -149,7 +149,7 @@ func DeleteAccessToken(ctx *context.APIContext) {
149
149
// parameters:
150
150
// - name: username
151
151
// in: path
152
- // description: username of user
152
+ // description: username of the user whose token is to be deleted
153
153
// type: string
154
154
// required: true
155
155
// - name: token
You can’t perform that action at this time.
0 commit comments