From f91e7056166027f3f05256ca79de5c962ab58814 Mon Sep 17 00:00:00 2001 From: ajayk Date: Tue, 7 Nov 2023 16:24:44 -0800 Subject: [PATCH 1/3] GithubReleaseMonitor: add tagprefix and tagcontains to be used in github tags filtering Signed-off-by: ajayk --- pkg/config/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index 4276a6c57..b96a1da30 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -413,7 +413,12 @@ type GitHubMonitor struct { // If the version in GitHub contains a suffix which should be ignored StripSuffix string `json:"strip-suffix,omitempty" yaml:"strip-suffix,omitempty"` // Filter to apply when searching tags on a GitHub repository + // Deprecated: Use TagFilterPrefix instead TagFilter string `json:"tag-filter,omitempty" yaml:"tag-filter,omitempty"` + // Filter to apply when searching tags on a GitHub repository + TagFilterPrefix string `json:"tag-filter-prefix,omitempty" yaml:"tag-filter-prefix,omitempty"` + // Filter to search tags on the Github tag results + TagFilterContains string `json:"tag-filter-contains,omitempty" yaml:"tag-filter-contains,omitempty"` // Override the default of using a GitHub release to identify related tag to // fetch. Not all projects use GitHub releases but just use tags UseTags bool `json:"use-tag,omitempty" yaml:"use-tag,omitempty"` From eab6cc0e25521e1b3fd54afbecb9efa236171805 Mon Sep 17 00:00:00 2001 From: Ajay Kemparaj Date: Wed, 8 Nov 2023 15:10:46 -0800 Subject: [PATCH 2/3] Update pkg/config/config.go Co-authored-by: Jon Johnson --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index b96a1da30..b189cfa36 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -415,7 +415,7 @@ type GitHubMonitor struct { // Filter to apply when searching tags on a GitHub repository // Deprecated: Use TagFilterPrefix instead TagFilter string `json:"tag-filter,omitempty" yaml:"tag-filter,omitempty"` - // Filter to apply when searching tags on a GitHub repository + // Prefix filter to apply when searching tags on a GitHub repository TagFilterPrefix string `json:"tag-filter-prefix,omitempty" yaml:"tag-filter-prefix,omitempty"` // Filter to search tags on the Github tag results TagFilterContains string `json:"tag-filter-contains,omitempty" yaml:"tag-filter-contains,omitempty"` From 751522b5c16801952c4465cc41374e06003b7c01 Mon Sep 17 00:00:00 2001 From: Ajay Kemparaj Date: Wed, 8 Nov 2023 15:10:57 -0800 Subject: [PATCH 3/3] Update pkg/config/config.go Co-authored-by: Jon Johnson --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index b189cfa36..dd05cf049 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -417,7 +417,7 @@ type GitHubMonitor struct { TagFilter string `json:"tag-filter,omitempty" yaml:"tag-filter,omitempty"` // Prefix filter to apply when searching tags on a GitHub repository TagFilterPrefix string `json:"tag-filter-prefix,omitempty" yaml:"tag-filter-prefix,omitempty"` - // Filter to search tags on the Github tag results + // Filter to apply when searching tags on a GitHub repository TagFilterContains string `json:"tag-filter-contains,omitempty" yaml:"tag-filter-contains,omitempty"` // Override the default of using a GitHub release to identify related tag to // fetch. Not all projects use GitHub releases but just use tags