File tree Expand file tree Collapse file tree 8 files changed +81
-62
lines changed Expand file tree Collapse file tree 8 files changed +81
-62
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 @@ -123,7 +123,7 @@ func ListPublicMembers(ctx *context.APIContext) {
123
123
// IsMember check if a user is a member of an organization
124
124
func IsMember (ctx * context.APIContext ) {
125
125
// swagger:operation GET /orgs/{org}/members/{username} organization orgIsMember
126
- // ---
126
+ // ---
127
127
// summary: Check if a user is a member of an organization
128
128
// parameters:
129
129
// - name: org
You can’t perform that action at this time.
0 commit comments