opensource-nepal / commitlint

commitlint is a tool designed to lint your commit messages according to the Conventional Commits standard for your pre-commit hook and GitHub Actions.
GNU General Public License v3.0
15 stars 9 forks source link

Commit message starting with # is displayed as an empty commit #49

Open aj3sh opened 1 week ago

aj3sh commented 1 week ago

Describe the bug Commit message starting with # is ignored and is displayed as an empty commit.

To Reproduce Create a commit starting with '#'. Eg: "#24 fixed github issue"

commitlint "#24 fixed github issue"

Expected behavior '#' of the 1st line (commit header) should not be ignored as a comment.

Environment

Additional context Commitlint output

$ commitlint "#24 fixed github issue"
⧗ Input:

✖ Found 1 error(s).
- Commit message does not follow the Conventional Commits format.
aj3sh commented 4 days ago

Additional Findings for the Bug.

Reference video: https://github.com/opensource-nepal/commitlint/assets/35629644/25ae5390-4cfa-45b8-98cd-2ea91781fc27

cc: @sugat009

sugat009 commented 1 day ago

Let's keep this issue open for now, there might be ways to work around this in the future.