Fix failing CI checks and GitHub Actions on a Pull Request.
Fix failing CI checks and GitHub Actions on a Pull Request.
$ARGUMENTS: Optional PR number or URL. If not provided, uses the current branch's PR.You MUST use the TaskCreate and TaskUpdate tools to track your progress. At the start, create tasks for each step below. Mark each task as in_progress when you start it and completed when you finish. This ensures you complete ALL steps.
Determine the PR to work on:
$ARGUMENTS contains a PR number or URL, use thatgh pr view --json number,url,title,body --jq '.'Check for failing CI checks:
gh pr checks <PR_NUMBER>
Identify which checks are failing:
For failing lint/formatting checks:
npm run lint:fix to auto-fix lint issuesnpm run fmt to fix formattingFor failing type checks:
npm run ts to identify type errorsFor failing unit tests:
npm run test -- <test-file-pattern>
For failing Playwright/E2E tests:
/dyad:e2e-rebase skill to fix themnpm run build
E2E tests run against the built binary. If you make any changes to application code (anything outside of e2e-tests/), you MUST re-run npm run build before running E2E tests again.DEBUG=pw:browser PLAYWRIGHT_HTML_OPEN=never npm run e2e -- <test-file>
For failing build checks:
npm run build
After making all fixes, verify:
npm run lintnpm run tsCommit and push the changes:
If any changes were made:
git add -A
git commit -m "Fix failing CI checks
- <summary of fix 1>
- <summary of fix 2>
...
Then run /dyad:pr-push to push the changes.
Provide a summary to the user: