Skip to content

Commit

Permalink
Merge pull request #500 from rawlingsj/rm_updates
Browse files Browse the repository at this point in the history
add strip prefix and suffix update config for release monitor
  • Loading branch information
kaniini authored Jun 12, 2023
2 parents 677461b + f7bf4dc commit ebc098d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/UPDATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ update:
shared: false # indicate that an update to this package requires an epoch bump of downstream dependencies, e.g. golang, java
release-monitor:
identifier: 38 # Mandatory, ID number for release monitor
strip-prefix: v # Optional, if the version obtained from the update service contains a prefix which should be ignored
strip-suffix: ignore_me # Optional, if the version obtained from the update service contains a suffix which should be ignored
```
## GitHub
Expand Down
4 changes: 4 additions & 0 deletions pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ type Update struct {
type ReleaseMonitor struct {
// Required: ID number for release monitor
Identifier int `yaml:"identifier"`
// If the version in release monitor contains a prefix which should be ignored
StripPrefix string `yaml:"strip-prefix,omitempty"`
// If the version in release monitor contains a suffix which should be ignored
StripSuffix string `yaml:"strip-suffix,omitempty"`
}

// GitHubMonitor indicates using the GitHub API
Expand Down

0 comments on commit ebc098d

Please sign in to comment.