Demo
Work from the upstream product repo after npm install (and npm run build if you have not built yet).
Heuristic fixtures (no Bedrock)
Section titled “Heuristic fixtures (no Bedrock)”No AWS credentials required. fixtures/demo.sh runs both paths with --local --path … --json and asserts verdicts + exit codes.
chmod +x fixtures/demo.sh./fixtures/demo.shOr run the CLI directly:
npm run pr-ready -- --local --path fixtures/demo-app/not-readynpm run pr-ready -- --local --path fixtures/demo-app/ready| Path | Verdict | Exit | Why |
|---|---|---|---|
fixtures/demo-app/not-ready | NOT READY | 1 | Fake .env secrets, TODOs, debug logs, missing tests |
fixtures/demo-app/ready | READY | 0 | Tests present, no heuristic issues |
All fixture secrets are placeholders only. Use this path for a deterministic READY / NOT READY demo.
Full local (needs Bedrock)
Section titled “Full local (needs Bedrock)”Needs working Bedrock in AWS_REGION (see AWS Deploy smoke tests):
export AWS_PROFILE=<your-profile>export AWS_REGION=ap-southeast-2aws sso login --profile "$AWS_PROFILE"npm run pr-ready --Expect Mode: full. Verdict on a real branch can be NOT READY even when heuristics are clean — Risk/Ship Coach sometimes over-flag docs (for example a README link to fixtures/demo.sh). That is useful coach output to review, not proof of a leaked secret.
Remote API (after deploy)
Section titled “Remote API (after deploy)”After AWS Deploy, call the live API the same way GitHub Actions does:
export PR_READY_API_URL="$(aws cloudformation describe-stacks \ --stack-name PrReadinessCoachStack \ --query "Stacks[0].Outputs[?OutputKey=='ApiUrl'].OutputValue" --output text)"export PR_READY_API_KEY="$(aws apigateway get-api-key --api-key "$(aws cloudformation describe-stacks \ --stack-name PrReadinessCoachStack \ --query "Stacks[0].Outputs[?OutputKey=='ApiKeyId'].OutputValue" --output text)" \ --include-value --query value --output text)"npm run pr-ready -- --api --api-url "$PR_READY_API_URL" --api-key "$PR_READY_API_KEY"