PR helper skills: review and resolve PR comments, and draft structured PR descriptions.
96
95%
Does it follow best practices?
Impact
97%
1.34xAverage score across 12 eval scenarios
Advisory
Suggest reviewing before use
Your team just found that GitHub's shorter review-comment reply endpoint can return 404 for a valid top-level PR review comment:
gh api repos/acme/api/pulls/comments/3419335254/repliesThe same reply succeeds when the PR number is included:
gh api repos/acme/api/pulls/4794/comments/3419335254/repliesBuild a small artifact that documents and demonstrates the correct endpoint selection for line review comment replies. The goal is to prevent future agents from posting top-level issue comments or using the non-PR-scoped endpoint as the primary call.
Produce exactly three files:
reply_endpoint_contract.sh — a bash script that defines a function for replying to a line review comment. The script must:
owner, repo, pr_number, comment_id, and bodyrepos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/repliesrepos/{owner}/{repo}/pulls/comments/{comment_id}/replies as a legacy retry after the PR-scoped endpoint failsrepos/{owner}/{repo}/issues/{pr_number}/comments as the final fallback after both inline reply attempts failexpected_calls.txt — the expected ordered API calls for owner=acme, repo=api, pr_number=4794, comment_id=3419335254.
endpoint_notes.md — a concise explanation of why the PR-scoped endpoint is primary, what IDs to verify on failure, and when a top-level issue comment fallback is acceptable.