Skip to content

paulgrow-octane/add-msg-issue-prefix-hook

 
 

Repository files navigation

add-msg-issue-prefix-hook

A prepare-commit-msg hook for pre-commit.

See also: https://github.com/pre-commit/pre-commit

Using with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/avilaton/add-msg-issue-prefix-hook
    rev: v0.0.5  # Use the ref you want to point at
    hooks:
    -   id: add-msg-issue-prefix

and install prepare-commit-msg hooks using

pre-commit install --hook-type prepare-commit-msg

Optional template argument

Change how the issue is rendered to the commit message using the --template argument.

-   repo: https://github.com/avilaton/add-msg-issue-prefix-hook
    rev: v0.0.5  # Use the ref you want to point at
    hooks:
    -   id: add-msg-issue-prefix
        args:
            - --template=[{}]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%