Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
a944b54e
Commit
a944b54e
authored
Feb 01, 2019
by
Craig Squire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also add custom attributes for projects and users
parent
2700a1ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
projects.go
projects.go
+2
-0
users.go
users.go
+2
-0
No files found.
projects.go
View file @
a944b54e
...
@@ -89,6 +89,7 @@ type Project struct {
...
@@ -89,6 +89,7 @@ type Project struct {
Statistics
*
ProjectStatistics
`json:"statistics"`
Statistics
*
ProjectStatistics
`json:"statistics"`
Links
*
Links
`json:"_links,omitempty"`
Links
*
Links
`json:"_links,omitempty"`
CIConfigPath
*
string
`json:"ci_config_path"`
CIConfigPath
*
string
`json:"ci_config_path"`
CustomAttributes
[]
*
CustomAttribute
`json:"custom_attributes"`
}
}
// Repository represents a repository.
// Repository represents a repository.
...
@@ -195,6 +196,7 @@ type ListProjectsOptions struct {
...
@@ -195,6 +196,7 @@ type ListProjectsOptions struct {
WithIssuesEnabled
*
bool
`url:"with_issues_enabled,omitempty" json:"with_issues_enabled,omitempty"`
WithIssuesEnabled
*
bool
`url:"with_issues_enabled,omitempty" json:"with_issues_enabled,omitempty"`
WithMergeRequestsEnabled
*
bool
`url:"with_merge_requests_enabled,omitempty" json:"with_merge_requests_enabled,omitempty"`
WithMergeRequestsEnabled
*
bool
`url:"with_merge_requests_enabled,omitempty" json:"with_merge_requests_enabled,omitempty"`
MinAccessLevel
*
AccessLevelValue
`url:"min_access_level,omitempty" json:"min_access_level,omitempty"`
MinAccessLevel
*
AccessLevelValue
`url:"min_access_level,omitempty" json:"min_access_level,omitempty"`
WithCustomAttributes
*
bool
`url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"`
}
}
// ListProjects gets a list of projects accessible by the authenticated user.
// ListProjects gets a list of projects accessible by the authenticated user.
...
...
users.go
View file @
a944b54e
...
@@ -66,6 +66,7 @@ type User struct {
...
@@ -66,6 +66,7 @@ type User struct {
External
bool
`json:"external"`
External
bool
`json:"external"`
PrivateProfile
bool
`json:"private_profile"`
PrivateProfile
bool
`json:"private_profile"`
SharedRunnersMinutesLimit
int
`json:"shared_runners_minutes_limit"`
SharedRunnersMinutesLimit
int
`json:"shared_runners_minutes_limit"`
CustomAttributes
[]
*
CustomAttribute
`json:"custom_attributes"`
}
}
// UserIdentity represents a user identity.
// UserIdentity represents a user identity.
...
@@ -91,6 +92,7 @@ type ListUsersOptions struct {
...
@@ -91,6 +92,7 @@ type ListUsersOptions struct {
CreatedAfter
*
time
.
Time
`url:"created_after,omitempty" json:"created_after,omitempty"`
CreatedAfter
*
time
.
Time
`url:"created_after,omitempty" json:"created_after,omitempty"`
OrderBy
*
string
`url:"order_by,omitempty" json:"order_by,omitempty"`
OrderBy
*
string
`url:"order_by,omitempty" json:"order_by,omitempty"`
Sort
*
string
`url:"sort,omitempty" json:"sort,omitempty"`
Sort
*
string
`url:"sort,omitempty" json:"sort,omitempty"`
WithCustomAttributes
*
bool
`url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"`
}
}
// ListUsers gets a list of users.
// ListUsers gets a list of users.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment