I'm having trouble getting this hook to run only when 'manually' committing, and not during rebase/amend etc.
It looks like functionality to support this was introduced in d46dbf0, but it's not clear what the supported options are.
The following examples are given in default.yaml, are there others?
PrepareCommitMsg:
ReplaceBranch:
enabled: false
description: 'Prepends the commit message with text based on the branch name'
branch_pattern: '\A.*\w+[-_](\d+).*\z'
replacement_text: '[#\1]'
skipped_commit_types: ['message', 'template', 'merge', 'squash']
on_fail: warn