# If updating this file, please also review `docs/release-process.md` and
# `.github/workflows/pr_title.yml` and update the summary of these rules
# in those files accordingly.

rules:
  # Body may be empty
  body-empty:
    level: ignore

  # Description must not be empty
  description-empty:
    level: error

  # Description should be <70 chars
  description-max-length:
    level: warning
    length: 70

  # Scope must be one of the following
  scope:
    level: error
    optional: true
    options:
      - c2patool
      - export_schema
      - make_test_images
      - c2pa_c_ffi
      - sdk
      # Use for any change confined to an experimental (`unstable_`) feature.
      # Routes the commit into the "Experimental" changelog section and keeps
      # it from driving a minor/breaking bump. See docs/experimental-features.md.
      - experimental

  # Subject line should exist
  subject-empty:
    level: error

  # Type must be one of these options
  type:
    level: error
    options:
      - build
      - chore
      - ci
      - docs
      - feat
      - fix
      - perf
      - refactor
      - revert
      - style
      - test
      - update
