Lefthook: ensure we're adding the results file in betterer precommit (#103398)

* test to check it's committing

* undo test change

* only commit if betterer precommit succeeds
This commit is contained in:
Ashley Harrison 2025-04-04 11:29:28 +01:00 committed by GitHub
parent 5e02532073
commit 254286ecaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ pre-commit:
frontend-betterer:
glob: '*.{ts,tsx}'
run: |
yarn betterer precommit {staged_files}
yarn betterer precommit {staged_files} && git add ./.betterer.results
stage_fixed: true
frontend-lint: