Skip to content

fix(vigutils): validate-commit-range title check treats all types as Refs-optional #1074

Closed

Description

@gerchowl

Found during review of release PR #1068.

validate_title passes refs_optional_types=approved_types, making every commit type Refs-optional for titles. As a result a string like docs: update readme passes as a title but the same string fails as a full commit message (docs is not in DEFAULT_REFS_OPTIONAL_TYPES).

Since a --no-ff merge commit's subject is that title, we should confirm the merge-commit path is exempt from validate-commit-msg downstream — otherwise a merge could pass title validation but fail commit validation on dev.

Action: confirm/document the merge-commit exemption, or align the two Refs-optional sets.

File: packages/vig-utils/src/vig_utils/validate_commit_range.py:117

Activity

  1. added
    bug
    priority:medium
    area:workflow
    effort:small
    on Jul 14, 2026
  2. c-vigo commented on Jul 14, 2026

    @c-vigo
    Contributor

    Shipped in 1.2.0 via PR #1086.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowbugeffort:smallpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions