Skip to content

feat: add version constaints to announcements #9022

Description

@owenrumney

Annoucements can be constrained by date such that if the current date falls between the constraints then the announcement will be displayed. While this is appropriate for time sensitive annoucements, some announcements might only be applicable to certain versions.

Before printing notices, the current semver version should be evaluated against any constraints. When date and version constraints are provided, both should be evaluated.

Example announcement

{
  "from_version": "0.62.0",
  "to_version": "0.64.0",
  "announcement": "Only show this announcement when current version >= 0.62.0 and < 0.64.0"
}

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions