<commit_before># Git branch name

The Git branch name task ensures that the current branch name matches the specified patterns.
For this task to succeed, **any** whitelist patterns and **none** of the blacklist patterns have to
match the commit message. For example: if you are working with JIRA, it is possible to add a
pattern for the JIRA issue number.
 
```yaml
# grumphp.yml
grumphp:
    tasks:
        git_branch_name:
            whitelist:
                - "/JIRA-\d+/"
            blacklist:
                - "develop"
                - "master"
            additional_modifiers: ''
            allow_detached_head: true
```


**whitelist**

*Default: []*

Use this parameter to specify one or multiple patterns. The value can be in regex or glob style.
Here are some example matchers:

- /JIRA-([0-9]*)/
- pre-fix*
- *suffix

**blacklist**

*Default: []*<commit_msg>"commit message" > "branch name"<commit_after># Git branch name

The Git branch name task ensures that the current branch name matches the specified patterns.
For this task to succeed, **any** whitelist patterns and **none** of the blacklist patterns have to
match the branch name. For example: if you are working with JIRA, it is possible to add a
pattern for the JIRA issue number.
 
```yaml
# grumphp.yml
grumphp:
    tasks:
        git_branch_name:
            whitelist:
                - "/JIRA-\d+/"
            blacklist:
                - "develop"
                - "master"
            additional_modifiers: ''
            allow_detached_head: true
```


**whitelist**

*Default: []*

Use this parameter to specify one or multiple patterns. The value can be in regex or glob style.
Here are some example matchers:

- /JIRA-([0-9]*)/
- pre-fix*
- *suffix

**blacklist**

*Default: []*
{'fraction_non_alphanumeric': 0.09875846501128668, 'fraction_numerical': 0.002257336343115124, 'mean_word_length': 2.497041420118343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6691123', 'n_tokens_mistral': 532, 'n_tokens_neox': 509, 'n_words': 207}