Skip to content

What are valid commit types for PrepareCommitMsg.ReplaceBranch.skipped_commit_types? #724

@34875634567

Description

@34875634567

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions