Format et intégrité du commitCommit format and integrity
Garantir que chaque commit respecte le format Conventional Commits, ne contient ni secrets ni chemins locaux, et n'a pas contourné les hooks de validation.Ensure every commit follows Conventional Commits format, contains no secrets or local paths, and hasn't bypassed validation hooks.
Flux du pipelinePipeline flow
01 · Déclencheur01 · Trigger
Systématique — tout commitSystematic — every commit
Dernier pipeline dans la séquence quality-gate. Exécuté sans exception.Last pipeline in the quality-gate sequence. Run without exception.
02 · Vérification02 · Verification
6 contrôles pré-commit6 pre-commit checks
Format message · Périmètre cohérent · Fichiers interdits · Chemins locaux · --no-verify interdit · Push immédiatMessage format · Coherent scope · Forbidden files · Local paths · --no-verify forbidden · Immediate push
03 · Résultat03 · Outcome
Commit + push validésCommit + push validated
Un seul commit cohérent par session. Push immédiat après le commit. Origin/main à jour.One coherent commit per session. Immediate push after commit. Origin/main up to date.
Valeur métierBusiness value
Chaque commit est une entrée dans l'histoire du projet. Ce gate garantit qu'elle est lisible, cohérente et sans contamination — messages clairs, pas de secrets, pas de contournement des hooks.Every commit is an entry in the project's history. This gate ensures it is readable, consistent and uncontaminated — clear messages, no secrets, no hook bypass.
Matrice de déclenchementTrigger matrix
| Fichier modifiéChanged file | ActionAction |
|---|---|
Tout commit | Systématique — dernier pipelineSystematic — last pipeline |
Message de commit | Format Conventional Commits requis (ADR-014)Conventional Commits format required (ADR-014) |
Fichiers staged | Vérification chemins locaux /Users/ + scan anti-secrets (.env, credentials)Check for /Users/ local paths + anti-secrets scan (.env, credentials) |
ContrôlesChecks
- Format : type(scope): description courte en minuscules (ADR-014)Format: type(scope): short description in lowercase (ADR-014)
- Types valides : feat · fix · token · docs · a11y · style · refactor · test · chore · ciValid types: feat · fix · token · docs · a11y · style · refactor · test · chore · ci
- Messages interdits : "update", "fix", "wip", "changes", "misc"Forbidden messages: "update", "fix", "wip", "changes", "misc"
- Un seul commit cohérent par session — pas de commit partielOne coherent commit per session — no partial commit
- Aucun fichier .env ou secret dans les fichiers stagedNo .env or secret files in staged files
- Aucun chemin /Users/[nom]/ dans les fichiers stagedNo /Users/[name]/ path in staged files
- --no-verify interdit — diagnostiquer et corriger les hooks qui échouent--no-verify forbidden — diagnose and fix failing hooks
- Push immédiat après le commit — origin/main à jourImmediate push after commit — origin/main up to date
CommandeCommand
git add [fichiers spécifiques]
git diff --staged
git commit -m "$(cat <<'EOF'
type(scope): description
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"
git push