From f6593b77f1d3c215b6d3deb05fb352e3cc978e44 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 18 Oct 2024 15:05:57 +0300 Subject: [PATCH] docs: add skip option merge-commit --- docs/configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index a3fceca8..3575ada1 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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