Skip to content

Commit 9534c2a

Browse files
committed
lefthook: only run if branch = main
1 parent 2ddf10c commit 9534c2a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lefthook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ pre-commit:
33
jobs:
44
- name: Type Check
55
run: bun run --filter=* check
6+
only:
7+
- ref: main
68
- name: Run codegen before commit
79
run: bun run sync
810
stage_fixed: true
911
- name: Prettier
1012
run: bun run fix:format
1113
stage_fixed: true
14+
only:
15+
- ref: main
1216
- name: Biome Lint
1317
run: bun run check:lint
18+
only:
19+
- ref: main

0 commit comments

Comments
 (0)