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
fdacf2f6
Commit
fdacf2f6
authored
Jul 20, 2016
by
Sander van Harmelen
Committed by
GitHub
Jul 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add VisibilityLevel to CreateGroupOptions (#61)
parent
26db54c6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
gitlab.go
gitlab.go
+5
-5
groups.go
groups.go
+6
-0
No files found.
gitlab.go
View file @
fdacf2f6
...
...
@@ -31,7 +31,7 @@ import (
)
const
(
libraryVersion
=
"0.1"
libraryVersion
=
"0.1
.1
"
defaultBaseURL
=
"https://gitlab.com/api/v3/"
userAgent
=
"go-gitlab/"
+
libraryVersion
)
...
...
@@ -67,12 +67,12 @@ const (
// NotificationLevel represents a notification level within Gitlab.
//
// GitLab API docs: http://doc.gitlab.com/ce/
...?
// GitLab API docs: http://doc.gitlab.com/ce/
api/
type
NotificationLevel
int
// List of available notification levels
//
// GitLab API docs: http://doc.gitlab.com/ce/
...?
// GitLab API docs: http://doc.gitlab.com/ce/
api/
const
(
DisabledNotifications
NotificationLevel
=
iota
ParticipatingNotifications
...
...
@@ -83,12 +83,12 @@ const (
// VisibilityLevel represents a visibility level within GitLab.
//
// GitLab API docs: http://doc.gitlab.com/ce/
...?
// GitLab API docs: http://doc.gitlab.com/ce/
api/
type
VisibilityLevel
int
// List of available visibility levels
//
// GitLab API docs: http://doc.gitlab.com/ce/
...?
// GitLab API docs: http://doc.gitlab.com/ce/
api/
const
(
PrivateVisibility
VisibilityLevel
=
0
InternalVisibility
VisibilityLevel
=
10
...
...
groups.go
View file @
fdacf2f6
...
...
@@ -98,6 +98,12 @@ type CreateGroupOptions struct {
Name
string
`url:"name,omitempty" json:"name,omitempty"`
Path
string
`url:"path,omitempty" json:"path,omitempty"`
Description
string
`url:"description,omitempty" json:"description,omitempty"`
// TODO (SvH) This should have the `omitempty` tag, but until issue #29
// is implemented, there is no clean way of adding those tags and still
// being able to define private groups (as the visibility level for that
// is 0 and so it would be omitted defaulting to a public group instead).
VisibilityLevel
VisibilityLevel
`url:"visibility_level" json:"visibility_level"`
}
// CreateGroup creates a new project group. Available only for users who can
...
...
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