chore(lefthook): run the CI checks on pre-push #88
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-docs!88
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "chore/lefthook-pre-push"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Runs both CI gates (prettier, markdownlint) on pre-push, so a failure costs seconds locally instead of a CI round trip.
Every job carries
skip_empty: false, which is load-bearing. Lefthook decides which files a push touches by diffing against the branch's remote counterpart. A brand-new branch has none, so the file list is empty and every job is skipped with "no matching push files" — exactly the state a feature branch is in the first time it is pushed.Measured in bitborg-infra: without it, a push carrying a deliberate lint violation was accepted with all jobs reported as skipped. A hook that reports success without running anything is worse than no hook.
Verified: pushing this branch ran both jobs and passed.