Skip to content

Conversation

@taufek
Copy link
Contributor

@taufek taufek commented Oct 13, 2019

Context

This will allow user to skip any Hook based on branch patterns.

For example, if the user wish to skip a particular Hook (i.e. Rubocop) for staging branch,
the user could specify below

PreCommit:
  Rubocop:
   exclude_branch_patterns: ['staging']

or using glob partial pattern

PreCommit:
  Rubocop:
   exclude_branch_patterns: ['stag*']

By default exclude_branch_patterns is empty (includes all branches).

Context
=
This will allow user to skip any Hook based on branch patterns.

For example, if the user wish to skip a particular Hook (i.e. Rubocop) for `staging` branch,
the user could specify below

```
PreCommit:
  Rubocop:
   exclude_branch_patterns: ['staging']
```
or using glob partial pattern

```
PreCommit:
  Rubocop:
   exclude_branch_patterns: ['stag*']
```

By default `exclude_branch_patterns` is empty (includes all branches).
@sds
Copy link
Owner

sds commented Oct 14, 2019

Rebased and merged as 8e0191a due to the conflict introduced by merging #682. Thanks!

@sds sds closed this Oct 14, 2019
taufek added a commit to taufek/overcommit that referenced this pull request Oct 14, 2019
Context
-
Update readme on above config that was added in below PR.

sds#681
sds pushed a commit that referenced this pull request Oct 16, 2019
Context
-
Update readme on above config that was added in below PR.

#681
SecretDev804 added a commit to SecretDev804/overcommit that referenced this pull request Aug 3, 2024
Context
-
Update readme on above config that was added in below PR.

sds/overcommit#681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants