Update PR Body
Developmentupdate-pr-bodyUpdate PR Body is an Agent Skill for development published in the allenai/open-instruct repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Update the body of a GitHub pull request. Use when the user asks to update, edit, or modify a PR description/body.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/allenai/open-instruct/blob/HEAD/.claude/skills/update-pr-body/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/update-pr-body, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Update GitHub PR Body
Important
Do NOT use gh pr edit --body - it fails with a GraphQL error about Projects (classic) deprecation. Always use the REST API approach below instead.
Instructions
When updating a GitHub PR body:
-
Get the current PR number (if not provided):
gh pr list --head "$(git branch --show-current)" --json number --jq '.[0].number' -
Get the current PR body to review existing content:
gh pr view <pr-number> --json body -q '.body' -
Update the PR body using the REST API:
gh api -X PATCH /repos/{owner}/{repo}/pulls/<pr-number> -f body="New PR body content here."
Examples
Get current PR number from branch:
gh pr list --head "$(git branch --show-current)" --json number,url --jq '.[0]'
View current PR body:
gh pr view 1372 --json body -q '.body'
Update PR body with new content:
gh api -X PATCH /repos/allenai/open-instruct/pulls/1372 -f body="## Summary
- Updated vllm to 0.13.0
- Fixed tool_grpo_fast.sh script
## Test Plan
- [x] Single GPU GRPO
- [x] Tool GRPO
- [x] Multi-node GRPO"
Add to existing body (read first, then append):
# Read the current PR body
CURRENT_BODY=$(gh pr view 1372 --json body -q '.body')
# Append new content
gh api -X PATCH /repos/allenai/open-instruct/pulls/1372 -f body="${CURRENT_BODY}
## Additional Notes
New content appended here."