| 37 | } |
| 38 | |
| 39 | function usage() { |
| 40 | return [ |
| 41 | 'Usage:', |
| 42 | ' node scripts/pr-ready.js --pr <pull-request-url> --run-verification', |
| 43 | ' node scripts/pr-ready.js --pr <pull-request-url> --verification "npm run test"', |
| 44 | ' node scripts/pr-ready.js --pr <pull-request-url> --branch <branch-name> --run-verification', |
| 45 | '', |
| 46 | 'Writes .planning/pr-readiness/<branch>.md and exits 0 only when local readiness gates pass.', |
| 47 | 'When --verification is omitted, Citadel selects a verification profile from changed paths.', |
| 48 | ].join('\n'); |
| 49 | } |
| 50 | |
| 51 | function normalizePath(value) { |
| 52 | return String(value || '').replace(/\\/g, '/'); |