Skip to content

Commit

Permalink
Adding new Directories key
Browse files Browse the repository at this point in the history
  • Loading branch information
honeyankit committed Oct 25, 2023
1 parent fe5628e commit 4e17763
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/model/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ type Source struct {
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" yaml:"directories,omitempty"`
Branch *string `json:"branch" yaml:"branch,omitempty"`
Commit string `json:"commit,omitempty" yaml:"commit,omitempty"`

Expand Down
3 changes: 3 additions & 0 deletions internal/model/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ job:
provider: github
repo: dependabot/dependabot-core
directory: "/npm_and_yarn/helpers"
directores:
- "/foo/npm_and_yarn/helpers"
- "bar/npm_and_yarn/helpers"
branch:
api-endpoint: https://api.github.com/
hostname: github.com
Expand Down

0 comments on commit 4e17763

Please sign in to comment.