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

Commit

Permalink
fix: VariableType type in pipelines.go
Browse files Browse the repository at this point in the history
  • Loading branch information
perrze committed Jul 9, 2024
1 parent 9f9ece4 commit 81904ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type PipelinesService struct {
//
// GitLab API docs: https://docs.gitlab.com/ee/api/pipelines.html
type PipelineVariable struct {
Key string `json:"key"`
Value string `json:"value"`
VariableType string `json:"variable_type"`
Key string `json:"key"`
Value string `json:"value"`
VariableType VariableTypeValue `json:"variable_type"`
}

// Pipeline represents a GitLab pipeline.
Expand Down Expand Up @@ -309,9 +309,9 @@ type CreatePipelineOptions struct {
//
// GitLab API docs: https://docs.gitlab.com/ee/api/pipelines.html#create-a-new-pipeline
type PipelineVariableOptions struct {
Key *string `url:"key,omitempty" json:"key,omitempty"`
Value *string `url:"value,omitempty" json:"value,omitempty"`
VariableType *string `url:"variable_type,omitempty" json:"variable_type,omitempty"`
Key *string `url:"key,omitempty" json:"key,omitempty"`
Value *string `url:"value,omitempty" json:"value,omitempty"`
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
}

// CreatePipeline creates a new project pipeline.
Expand Down

0 comments on commit 81904ba

Please sign in to comment.