From: Anil Belur Date: Wed, 10 Mar 2021 07:20:54 +0000 (+1000) Subject: Update prettier pre-commit to ignore stage error X-Git-Tag: v0.63.0~3^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F67025%2F1;p=releng%2Fglobal-jjb.git Update prettier pre-commit to ignore stage error Set stages to 'commit' to overide the default_stages. This fixes the issue seen while using git-commmit: [error] No matching files. Patterns: .git/COMMIT_EDITMSG Change-Id: I959744b89e6cb22e84fca9119a1405e354734cbb Signed-off-by: Anil Belur --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7141eeda..89484cc9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: rev: v2.1.2 hooks: - id: prettier + stages: [commit] - repo: https://github.com/jorisroovers/gitlint rev: v0.13.1