Skip to content

Incorrect Commit Message from Previous Commit #4108

Closed
@mostafa-rio

Description

@mostafa-rio

Steps to Reproduce

1. set a type-enum rule 
2. try to commit and test the rule then you see the input is coming from the previous commit message


there is also a StackOverflow page related to this:
https://stackoverflow.com/questions/78731073/commitlint-with-husky-failing-due-to-incorrect-commit-message-from-previous-comm

Current Behavior

No response

Expected Behavior

It should use the current commit message

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

No response

Context

No response

commitlint --version

@commitlint/cli

git --version

2.45.2

node --version

20.14.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