Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new Directories option to CLI to support GSU Multi-Dir #190

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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