Skip to content

Commit Scope

Defines how the scope of the commit should be used, allowing you to control whether it is optional, required, or restricted to a list of predefined values.

The scope typically represents the project area affected by the change, such as specific modules, components, or features.

yaml
scope:
  description: "Specify the scope of the change"
  required: false
  type: list
  values:
    - core
    - cli
    - api
FieldRequiredTypeDefaultDescription
descriptionNoString-Text displayed as auxiliary instruction in the interactive wizard (wizard), guiding the user on what to report as scope.
requiredNoBooleanfalseDefines whether the user must obligatorily report a scope when creating the commit.
typeYesStringtextSets the format of the scope field. Can be text (free entry) or list (selection from predefined values).
valuesConditionalList-List of allowed scopes. This field is required when type is set to list.

⚠️ Warning:

When required: true and type: list, the user must select one of the defined scopes to continue creating the commit.

Released under the Apache License.