Skip to content

Commit ef7a7f0

Browse files
feat(config): add commit_source and use_release fields to VersionDataSource (#2404)
Signed-off-by: Vishal Choudhary <vishal.choudhary@chainguard.dev>
1 parent 85169a4 commit ef7a7f0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/config/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,10 @@ type VersionDataSource struct {
10721072
Stream string `json:"stream" yaml:"stream"`
10731073
// A list of regex patterns to ignore when matching upstream versions
10741074
Ignore []string `json:"ignore,omitempty" yaml:"ignore,omitempty"`
1075+
// The source whose commits to use when multiple sources are configured
1076+
CommitSource string `json:"commit_source,omitempty" yaml:"commit_source,omitempty"`
1077+
// Whether to use GitHub releases as the tag source instead of git tags
1078+
UseRelease bool `json:"use_release,omitempty" yaml:"use_release,omitempty"`
10751079
}
10761080

10771081
// GetStripPrefix returns the prefix that should be stripped from the GitMonitor version.

0 commit comments

Comments
 (0)