Skip to content

fix: from to feature does not detect violations properly #3924

@holomekc

Description

@holomekc

Expected Behavior

When using commitlint with --from and --to it should detect violations if one commit message is not formatted properly

Current Behavior

When using:
commitlint --from 67fc95423dd3ec1f073dab2df304bf4f8a3c4063~2 --to 67fc95423dd3ec1f073dab2df304bf4f8a3c4063 --verbose --color

Everything is happy:
image

When using:
commitlint -e
It is not ok:
image

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

No response

Steps to Reproduce

1. Two commits one ok the second violates the rules 2. Run with from to.

Context

No response

commitlint --version

18.6.1

git --version

2.39.3

node --version

v20.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions