/prepend-jira-ticket-link

Pre-Commit hook that prepends JIRA ticket number and URL in the commit message.

Primary LanguageShellMIT LicenseMIT

Prepend-JIRA-Ticket-Link

Pre-Commit hook that prepends JIRA ticket number and URL in the commit message.

Adding to your .pre-commit-config.yaml

-   repo: https://github.com/mmphego/prepend-jira-ticket-link
    rev: master
    hooks:
    -   id: prepend-jira-link
    # ...

Provided hooks

  • prepend-jira-link - Adds JIRA ticket number and link to commit message.
    • If JIRA ticket ID is not present in commit message, it will check the branch name, if it contains a ticket id.
    • If found will append it to the commit message.

Example

JIRA: [MT-740](skaafrica.atlassian.net/browse/MT-740)