Skip to content

PreCommitMsg: write output to msg #22

@ddymko

Description

@ddymko

The prepare-commit-msg Git hook is invoked after Git generates the default commit message but before the user is presented with an editor (if one is used). This makes it useful for modifying or augmenting the commit message before it’s finalized or shown to the user.

For our use case, we want to support this hook by executing the commands defined under the corresponding step in railcar.json, capturing their output, and writing that output back into the commit message file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions