Skip to content

When the commit-msg hook fail (found problems in the message), how to get this message to retry the commit and fixing the error in the editor #3651

Open
@MiniSuperDev

Description

@MiniSuperDev

commit-msg

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm exec commitlint --edit $1

For example, when I commit and it fails, I don't want to rewrite all, there is a way to retry and open this message in the editor to fix the errors?

I currently using @commitlint/cz-commitlint

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