Skip to content

Commit

Permalink
Adding new Directories option to CLI to support GSU Multi-Dir (#190)
Browse files Browse the repository at this point in the history
* Adding new Directories key

* fix Updater mad that directories is unknown

* leave this out of the test for now since it's WIP

---------

Co-authored-by: Jake Coffman <[email protected]>
  • Loading branch information
honeyankit and jakecoffman authored Nov 2, 2023
1 parent 737934e commit 43a58a4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/model/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ type Job struct {

// Source is a reference to some source code
type Source struct {
Provider string `json:"provider" yaml:"provider,omitempty"`
Repo string `json:"repo" yaml:"repo,omitempty"`
Directory string `json:"directory" yaml:"directory,omitempty"`
Branch *string `json:"branch" yaml:"branch,omitempty"`
Commit string `json:"commit,omitempty" yaml:"commit,omitempty"`
Provider string `json:"provider" yaml:"provider,omitempty"`
Repo string `json:"repo" yaml:"repo,omitempty"`
Directory string `json:"directory" yaml:"directory,omitempty"`
Directories []string `json:"directories,omitempty" yaml:"directories,omitempty"`
Branch *string `json:"branch" yaml:"branch,omitempty"`
Commit string `json:"commit,omitempty" yaml:"commit,omitempty"`

Hostname *string `json:"hostname" yaml:"hostname,omitempty"` // Must be provided if APIEndpoint is
APIEndpoint *string `json:"api-endpoint" yaml:"api-endpoint,omitempty"` // Must be provided if Hostname is
Expand Down

0 comments on commit 43a58a4

Please sign in to comment.