githooks conf:migrate¶
Migrate a v2 configuration file (Options/Tools format) to v3 format (hooks/flows/jobs).
Synopsis¶
What it does¶
- Creates an automatic backup (
.v2.bak) of the original file. - If the source is YAML, converts to PHP and removes the
.ymlfile. - Converts
scripttool tocustomjob type. - Drops
usePhpcsConfiguration(not supported in v3). - Generates a v3 file with a
qaflow containing all the original tools as jobs.
Examples¶
Note
The generated v3 file may need manual review. Check flow names, hook mappings, and job configurations after migration.
See also¶
- Migration: v2 to v3 — complete migration guide.
githooks conf:check— validate the migrated file.