Skip to content

Commit

Permalink
docs: add skip option merge-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Oct 18, 2024
1 parent 6e207c8 commit f6593b7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,18 @@ pre-commit:
run: yarn lint
```

Skipping when your are on a merge commit:

```yml
# lefthook.yml
pre-push:
commands:
lint:
skip: merge-commit
run: yarn lint
```

Skipping the whole hook on `main` branch:

```yml
Expand Down

0 comments on commit f6593b7

Please sign in to comment.