Skip to content

CLI option to check and fix incorrect commit messages #833

Open
@Rizhiy

Description

@Rizhiy

Description

Add extra options to check commit message style and also to fix incorrect messages.

Use cases

I have versioning enabled on main branch, but it breaks if any of the commits don't follow the style.
I would like to add an action to CI to check that all commits since last version are in correct style, so I can check that MR won't break versioning.

Also, I would like to be able to fix incorrect commits locally, probably by using rebase+reword functionality.

Possible implementation

  1. List all commit messages since last commit version
  2. Check that each message follows style
  3. Call rebase and mark wrong messages for reword

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedPrevent from becoming stalefeatureA new feature or a feature requesthelp-wantedExtra attention is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions