491491 ```
492492 </instructions >
493493 </step >
494+
495+ <step number =" 11" >
496+ <name >Monitor PR Checks</name >
497+ <instructions >
498+ After the PR is created, monitor the CI/CD checks to ensure they pass:
499+
500+ <execute_command >
501+ <command >gh pr checks --watch</command >
502+ </execute_command >
503+
504+ This command will:
505+ 1. Display all CI/CD checks configured for the repository
506+ 2. Show the status of each check in real-time
507+ 3. Update automatically as checks complete
508+ 4. Exit when all checks have finished running
509+
510+ Monitor the output and note:
511+ - Which checks are running (e.g., tests, linting, build)
512+ - Any checks that fail and their error messages
513+ - The overall status of the PR checks
514+
515+ If any checks fail:
516+ 1. Analyze the failure logs
517+ 2. Identify what needs to be fixed
518+ 3. Ask the user if they want you to address the failures
519+
520+ <ask_followup_question >
521+ <question >The PR checks have completed. Here's the status:
522+
523+ [Show check results - passing/failing]
524+
525+ [If all pass]: All checks have passed successfully! The PR is ready for review.
526+
527+ [If any fail]: Some checks have failed:
528+ - [Failed check 1]: [Brief error description]
529+ - [Failed check 2]: [Brief error description]
530+
531+ Would you like me to fix these issues?</question >
532+ <follow_up >
533+ <suggest >Yes, please fix the failing checks</suggest >
534+ <suggest >Show me the detailed error logs</suggest >
535+ <suggest >I'll handle the failures manually</suggest >
536+ <suggest >The PR is fine as-is, these failures are expected</suggest >
537+ </follow_up >
538+ </ask_followup_question >
539+
540+ If user wants fixes:
541+ 1. Create a plan to address each failure
542+ 2. Make necessary code changes
543+ 3. Commit and push the fixes
544+ 4. Monitor checks again to ensure they pass
545+
546+ Important notes:
547+ - The --watch flag will keep the command running until all checks complete
548+ - This step helps ensure the PR meets all quality standards before review
549+ - Early detection of CI/CD failures saves reviewer time
550+ </instructions >
551+ </step >
494552</workflow >
0 commit comments