Skip to content

Commit

Permalink
Add ConfigurationVesrion relation to the Workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
vmotso committed Dec 16, 2023
1 parent b047faa commit cb4186a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ type Workspace struct {
VarFiles []string `jsonapi:"attr,var-files"`

// Relations
CurrentRun *Run `jsonapi:"relation,current-run"`
Environment *Environment `jsonapi:"relation,environment"`
CreatedBy *User `jsonapi:"relation,created-by"`
VcsProvider *VcsProvider `jsonapi:"relation,vcs-provider"`
AgentPool *AgentPool `jsonapi:"relation,agent-pool"`
ModuleVersion *ModuleVersion `jsonapi:"relation,module-version,omitempty"`
Tags []*Tag `jsonapi:"relation,tags"`
CurrentRun *Run `jsonapi:"relation,current-run"`
Environment *Environment `jsonapi:"relation,environment"`
CreatedBy *User `jsonapi:"relation,created-by"`
VcsProvider *VcsProvider `jsonapi:"relation,vcs-provider"`
AgentPool *AgentPool `jsonapi:"relation,agent-pool"`
ModuleVersion *ModuleVersion `jsonapi:"relation,module-version,omitempty"`
Tags []*Tag `jsonapi:"relation,tags"`
ConfigurationVesrion *ConfigurationVersion `jsonapi:"relation,configuration-version"`
}

// Hooks contains the custom hooks field.
Expand Down

0 comments on commit cb4186a

Please sign in to comment.