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
811c11f2
Commit
811c11f2
authored
Sep 22, 2017
by
Sindre Paulsrud Moe
Committed by
Sander van Harmelen
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add omitempty (#214)
parent
8264730a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
build_variables.go
build_variables.go
+2
-2
No files found.
build_variables.go
View file @
811c11f2
...
@@ -91,7 +91,7 @@ func (s *BuildVariablesService) GetBuildVariable(pid interface{}, key string, op
...
@@ -91,7 +91,7 @@ func (s *BuildVariablesService) GetBuildVariable(pid interface{}, key string, op
type
CreateBuildVariableOptions
struct
{
type
CreateBuildVariableOptions
struct
{
Key
*
string
`url:"key" json:"key"`
Key
*
string
`url:"key" json:"key"`
Value
*
string
`url:"value" json:"value"`
Value
*
string
`url:"value" json:"value"`
Protected
*
bool
`url:"protected
" json:"protected
"`
Protected
*
bool
`url:"protected
,omitempty" json:"protected,omitempty
"`
}
}
// CreateBuildVariable creates a variable for a given project
// CreateBuildVariable creates a variable for a given project
...
@@ -126,7 +126,7 @@ func (s *BuildVariablesService) CreateBuildVariable(pid interface{}, opt *Create
...
@@ -126,7 +126,7 @@ func (s *BuildVariablesService) CreateBuildVariable(pid interface{}, opt *Create
type
UpdateBuildVariableOptions
struct
{
type
UpdateBuildVariableOptions
struct
{
Key
*
string
`url:"key" json:"key"`
Key
*
string
`url:"key" json:"key"`
Value
*
string
`url:"value" json:"value"`
Value
*
string
`url:"value" json:"value"`
Protected
*
bool
`url:"protected
" json:"protected
"`
Protected
*
bool
`url:"protected
,omitempty" json:"protected,omitempty
"`
}
}
// UpdateBuildVariable updates an existing project variable
// UpdateBuildVariable updates an existing project variable
...
...
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