Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit b3aeb3b

Browse files
authored
✨ Group-level CI/CD variables API: add description
1 parent def3c90 commit b3aeb3b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

group_variables.go

+9-6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type GroupVariable struct {
4343
Masked bool `json:"masked"`
4444
Raw bool `json:"raw"`
4545
EnvironmentScope string `json:"environment_scope"`
46+
Description string `json:"description"`
4647
}
4748

4849
func (v GroupVariable) String() string {
@@ -114,11 +115,12 @@ func (s *GroupVariablesService) GetVariable(gid interface{}, key string, options
114115
type CreateGroupVariableOptions struct {
115116
Key *string `url:"key,omitempty" json:"key,omitempty"`
116117
Value *string `url:"value,omitempty" json:"value,omitempty"`
117-
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
118-
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
118+
Description *string `url:"description,omitempty" json:"description,omitempty"`
119+
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
119120
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
121+
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
120122
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
121-
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
123+
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
122124
}
123125

124126
// CreateVariable creates a new group variable.
@@ -153,11 +155,12 @@ func (s *GroupVariablesService) CreateVariable(gid interface{}, opt *CreateGroup
153155
// https://docs.gitlab.com/ee/api/group_level_variables.html#update-variable
154156
type UpdateGroupVariableOptions struct {
155157
Value *string `url:"value,omitempty" json:"value,omitempty"`
156-
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
157-
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
158+
Description *string `url:"description,omitempty" json:"description,omitempty"`
159+
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
158160
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
161+
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
159162
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
160-
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
163+
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
161164
}
162165

163166
// UpdateVariable updates the position of an existing

0 commit comments

Comments
 (0)