Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Allow aborting a commit message without committing "Co-authors" tag #8

@ryanjwessel

Description

@ryanjwessel

Current Behavior

Currently, we use prepare-commit-msg to include "Co-authors: {...coauthors}` in the commit body. However, if the author exits the commit editor, because there is a non-empty string included in the body, it counts as an actual commit message in your history.

Desired Behavior

If we included a commit-msg hook that checked if the body contains only empty lines and the Co-authors: tag, then we know the commit is incomplete.

Credit to @andersonvom for discovering this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions