Skip to content

Commit

Permalink
Add Inverse Exclusion option
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Jul 14, 2019
1 parent 86aab80 commit d9ac2a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ var (
// Exclusion holds information about a regular expression used
// to filter release versions.
type Exclusion struct {
Value string `json:"value"`
Value string `json:"value"`
Inverse bool `json:"inverse"`
}

type projectsResponse struct {
Expand Down
4 changes: 2 additions & 2 deletions projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ var (
HangoutsChatWebhookIDs: []string{"hangouts123"},
MSTeamsWebhookIDs: []string{"teams123"},
WebhookIDs: []string{"webhook123", "webhook124"},
Exclusions: []newreleases.Exclusion{{Value: "^1.9"}},
Exclusions: []newreleases.Exclusion{{Value: "^1.9", Inverse: true}},
ExcludePrereleases: true,
ExcludeUpdated: false,
}
Expand All @@ -419,7 +419,7 @@ var (
HangoutsChatWebhookIDs: []string{"hangouts123"},
MSTeamsWebhookIDs: []string{"teams123"},
WebhookIDs: []string{"webhook123", "webhook124"},
Exclusions: []newreleases.Exclusion{{Value: "^1.9"}},
Exclusions: []newreleases.Exclusion{{Value: "^1.9", Inverse: true}},
ExcludePrereleases: newreleases.Bool(true),
ExcludeUpdated: newreleases.Bool(false),
}
Expand Down

0 comments on commit d9ac2a5

Please sign in to comment.