gh-address-comments
작성자: openai
GitHub PR의 리뷰 댓글을 찾아 gh CLI와 사용자 안내 워크플로우를 통해 처리합니다. 현재 브랜치의 열린 PR에서 모든 댓글과 리뷰 스레드를 가져와 필요한 수정 사항 요약과 함께 표시합니다. gh CLI 인증이 필요하며 상승된 권한(워크플로우/리포지토리 범위)이 요구됩니다. 실행 중 속도 제한이나 인증 오류가 발생하면 재인증을 요청합니다. 사용자에게 번호가 매겨진 댓글 목록을 표시하여 선택한 후, 선택된 댓글에 대한 수정 사항을 적용합니다. 샌드박싱 제약 조건을 처리합니다...
npx skills add https://github.com/openai/skills --skill gh-address-commentsPR Comment Handler
Guide to find the open PR for the current branch and address its comments with gh CLI. Run all gh commands with elevated network access.
Prereq: ensure gh is authenticated (for example, run gh auth login once), then run gh auth status with escalated permissions (include workflow/repo scopes) so gh commands succeed. If sandboxing blocks gh auth status, rerun it with sandbox_permissions=require_escalated.
1) Inspect comments needing attention
- Run scripts/fetch_comments.py which will print out all the comments and review threads on the PR
2) Ask the user for clarification
- Number all the review threads and comments and provide a short summary of what would be required to apply a fix for it
- Ask the user which numbered comments should be addressed
3) If user chooses comments
- Apply fixes for the selected comments
Notes:
- If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with
gh auth login, then retry.