Skip to content

Commit

Permalink
✨ Project-level CI/CD variables API: add description
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxiaowei-com-cn committed Jan 16, 2024
1 parent 9897d3b commit 1256139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions project_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type ProjectVariable struct {
Masked bool `json:"masked"`
Raw bool `json:"raw"`
EnvironmentScope string `json:"environment_scope"`
Description string `json:"description"`
}

func (v ProjectVariable) String() string {
Expand Down Expand Up @@ -133,6 +134,7 @@ type CreateProjectVariableOptions struct {
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
Description *string `url:"description,omitempty" json:"description,omitempty"`
}

// CreateVariable creates a new project variable.
Expand Down Expand Up @@ -173,6 +175,7 @@ type UpdateProjectVariableOptions struct {
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
Filter *VariableFilter `url:"filter,omitempty" json:"filter,omitempty"`
Description *string `url:"description,omitempty" json:"description,omitempty"`
}

// UpdateVariable updates a project's variable.
Expand Down

0 comments on commit 1256139

Please sign in to comment.