Skip to content

feat: support wildcard conventional-title to accept any commit type #1013

@myakove

Description

@myakove

Description

Currently conventional-title requires an explicit comma-separated list of allowed types (e.g., "feat,fix,chore"). There's no way to say "enforce the Conventional Commits format but accept any type".

Setting an empty string disables the check entirely (empty string is falsy in Python, so the check run never executes).

Proposed Solution

Support a wildcard value "*" that means "enforce Conventional Commits format (<type>[scope]: description) but accept any type name".

Config example

# Accept any type, just enforce the format
conventional-title: "*"

# Accept only specific types (current behavior)
conventional-title: "feat,fix,build,chore,ci,docs,style,refactor,perf,test,revert"

Implementation Notes

In runner_handler.py line ~458, when conventional_title == "*":

  • Skip the type-specific regex matching
  • Only validate the general format: <word>[optional scope]: <description> (i.e., ^[\w-]+(\([^)]+\))?!?: .+)

Deliverables

  • Support "*" wildcard in run_conventional_title_check()
  • Update schema description to document wildcard support
  • Update example configs
  • Add tests for wildcard behavior
  • Update README

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions