ComponentRole

version.ComponentRole
See theComponentRole companion object

Describes the semantic role of a version component position within a scheme.

Drives predictable keyword behaviour across schemes. For example, version: breaking in a commit message resolves to the component(s) with Breaking role, regardless of which scheme is in use.

Each scheme declares a layout: IArray[ComponentRole] mapping positions to roles. For multiple same-role positions (e.g., PVP has two Breaking), role-based keywords resolve to the last position with that role. Users who need a specific position use the component name directly.

Attributes

Companion
object
Source
ComponentRole.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Breaking extends ComponentRole

Breaking changes. Keywords: major, breaking.

Breaking changes. Keywords: major, breaking.

Attributes

Source
ComponentRole.scala
case Feature extends ComponentRole

Non-breaking additions. Keywords: minor, feature, feat.

Non-breaking additions. Keywords: minor, feature, feat.

Attributes

Source
ComponentRole.scala
case Fix extends ComponentRole

Bug fixes. Keywords: patch, fix.

Bug fixes. Keywords: patch, fix.

Attributes

Source
ComponentRole.scala

Scheme-specific component with no cross-scheme keyword mapping.

Scheme-specific component with no cross-scheme keyword mapping.

Attributes

Source
ComponentRole.scala
case Temporal extends ComponentRole

Date-based components (CalVer: year, month, day).

Date-based components (CalVer: year, month, day).

Attributes

Source
ComponentRole.scala