首页/ AI 技能 / @skilllib/skill-2117939930272412844
Skill站外收录 @skilllib/skill-2117939930272412844

update-pr-body

支持在 GitHub 上动态更新拉取请求的描述内容,可自动获取当前分支关联的 PR 编号、读取原始描述,并通过 API 替换或追加新文本,适用于持续同步开发进展、补充测试信息或修正说明文档等协作场景。

0.0 (0) 35 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# Update GitHub PR Body ## Instructions When updating a GitHub PR body: 1. Get the current PR number (if not provided): ```bash gh pr list --head "$(git branch --show-current)" --json number --jq '.[0].number' ``` 2. Get the current PR body to review existing content: ```bash gh pr view <pr-number> --json body -q '.body' ``` 3. Update the PR body using the REST API: ```bash gh api -X PATCH /repos/{owner}/{repo}/pulls/<pr-number> -f body="New PR body content here." ``` ## Examples Get current PR number from branch: ```bash gh pr list --head "$(git branch --show-current)" --json number,url --jq '.[0]' ``` View current PR body: ```bash gh pr view 1372 --json body -q '.body' ``` Update PR body with new content: ```bash 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): ```bash # 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." ```

评论 0

还没有评论,来抢沙发。