Skip to content

Commit 6ab9132

Browse files
author
Cyril Dupont
committed
Add "raw" option to group/project variable managment
1 parent 85caccc commit 6ab9132

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

group_variables.go

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type GroupVariable struct {
4242
Protected bool `json:"protected"`
4343
Masked bool `json:"masked"`
4444
EnvironmentScope string `json:"environment_scope"`
45+
Raw bool `json:"raw"`
4546
}
4647

4748
func (v GroupVariable) String() string {
@@ -117,6 +118,7 @@ type CreateGroupVariableOptions struct {
117118
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
118119
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
119120
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
121+
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
120122
}
121123

122124
// CreateVariable creates a new group variable.
@@ -155,6 +157,7 @@ type UpdateGroupVariableOptions struct {
155157
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
156158
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
157159
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
160+
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
158161
}
159162

160163
// UpdateVariable updates the position of an existing

project_variables.go

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type ProjectVariable struct {
4242
Protected bool `json:"protected"`
4343
Masked bool `json:"masked"`
4444
EnvironmentScope string `json:"environment_scope"`
45+
Raw bool `json:"raw"`
4546
}
4647

4748
func (v ProjectVariable) String() string {
@@ -131,6 +132,7 @@ type CreateProjectVariableOptions struct {
131132
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
132133
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
133134
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
135+
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
134136
}
135137

136138
// CreateVariable creates a new project variable.
@@ -170,6 +172,7 @@ type UpdateProjectVariableOptions struct {
170172
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
171173
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
172174
Filter *VariableFilter `url:"filter,omitempty" json:"filter,omitempty"`
175+
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
173176
}
174177

175178
// UpdateVariable updates a project's variable.

0 commit comments

Comments
 (0)