← 返回 Skills 市场
ericlooi504

GitHub PR Manager

作者 ericlooi504 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
16
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install gh-pr-flow
功能描述
GitHub Pull Request lifecycle management — create, review, merge, changelog generation, CI checks, conflict resolution, and draft management via gh CLI. Use...
使用说明 (SKILL.md)

GitHub PR Manager

Overview

Streamline GitHub Pull Request workflows: create, review, merge, changelog generation, CI checks, and draft management via gh CLI. Use when Codex needs to manage PR lifecycle, check review status, handle merge conflicts, or generate changelogs.

Quick Start

Prerequisites

  • gh CLI installed and authenticated (gh auth status)
  • Git repository with remote on GitHub

Check your PR overview

bash scripts/gh-pr-review.sh --mine

Create a PR with auto-generated content

python3 scripts/gh-pr-create.py --draft --label review-needed

Generate changelog from merged PRs

python3 scripts/gh-pr-changelog.py --from v1.0 --to v2.0

Common Tasks

Creating & managing PRs

# Create draft PR
gh pr create --draft --title "WIP: Add login" --body "In progress"

# Create PR with labels
gh pr create --label enhancement --label needs-review

# View PR details
gh pr view \x3Cnumber>         # view in terminal
gh pr view \x3Cnumber> --web   # open in browser

# Update PR
gh pr edit \x3Cnumber> --title "New title" --add-label ready

Review workflow

# Check what needs my review
gh pr list --search "review-required:@me" --state open

# Approve
gh pr review \x3Cnumber> --approve --body "LGTM"

# Request changes
gh pr review \x3Cnumber> --request-changes --body "Please fix the tests"

# Add comment
gh pr review \x3Cnumber> --comment --body "Nice work!"

# Check review status on a PR
gh pr view \x3Cnumber> --json reviewDecision,reviews

CI & merge

# Check CI status
gh pr checks \x3Cnumber>            # detailed status
gh pr view \x3Cnumber> --json statusCheckRollup

# Merge when checks pass
gh pr merge \x3Cnumber> --squash    # squash and merge
gh pr merge \x3Cnumber> --rebase    # rebase and merge
gh pr merge \x3Cnumber> --merge     # merge commit
gh pr merge \x3Cnumber> --auto      # auto-merge after checks pass

# Check mergeability
gh pr view \x3Cnumber> --json mergeable,mergeStateStatus

Conflict resolution

# Check if PR has conflicts
gh pr view 42 --json mergeable
# → "CONFLICTING" if there are conflicts

# Fix locally
git checkout \x3Cpr-branch>
git fetch origin
git merge origin/main                # resolve conflicts
git push

# Alternative: rebase instead
git rebase origin/main               # resolve conflicts
git push --force-with-lease

Working with branches

# Checkout a PR locally for testing
gh pr checkout \x3Cnumber>

# List your branches with PR status
gh pr list --author "@me" --json headRefName,title,state,isDraft

# Compare branches
gh pr diff \x3Cnumber>              # view diff
gh pr diff \x3Cnumber> --name-only  # just filenames

Reference

  • scripts/gh-pr-create.py — PR creation with auto-generated title/body from commits
  • scripts/gh-pr-review.sh — Overview of pending reviews and CI status
  • scripts/gh-pr-changelog.py — Generate changelog from merged PRs between releases
  • See references/pr-templates.md for PR template examples
  • See references/label-conventions.md for label conventions
安全使用建议
Install this only if you want the agent to help manage GitHub PRs. Before allowing use, confirm the active `gh` account, limit permissions to the intended repositories, and require explicit approval for PR approvals, merges, auto-merge, edits, label changes, and any force-push conflict-resolution steps.
功能分析
Type: OpenClaw Skill Name: gh-pr-flow Version: 1.0.1 The gh-pr-flow skill bundle provides a legitimate set of tools for managing GitHub Pull Request workflows using the official GitHub CLI (gh). The included scripts (gh-pr-create.py, gh-pr-review.sh, and gh-pr-changelog.py) use safe subprocess execution patterns and perform actions strictly aligned with the stated purpose of PR creation, review, and changelog generation. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
The scripts and documentation match the stated PR-management purpose, including PR creation, review status, changelog generation, and CI checks; the noteworthy issue is that the purpose itself includes repository-mutating actions.
Instruction Scope
The skill documents approving, merging, auto-merging, editing PRs, and force-pushing during conflict resolution, but does not define when the agent must ask for explicit user approval or limit actions to specific repositories, branches, or PRs.
Install Mechanism
There is no install script and the included helper scripts are visible, but the registry metadata does not declare the required gh/git CLI dependency or GitHub authentication that the SKILL.md and scripts rely on.
Credentials
Using the authenticated gh CLI is proportionate for GitHub PR management, but it inherits the user's current GitHub account permissions and can affect any repository that account can access.
Persistence & Privilege
No background persistence, self-propagation, or stored memory is shown; the privilege concern is reliance on an existing authenticated GitHub CLI session.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gh-pr-flow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gh-pr-flow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fix: gh-pr-review.sh now works without eval, uses proper bash arrays
v1.0.0
Initial release: PR creation with auto-title, review overview, changelog generation, PR templates, label conventions
元数据
Slug gh-pr-flow
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

GitHub PR Manager 是什么?

GitHub Pull Request lifecycle management — create, review, merge, changelog generation, CI checks, conflict resolution, and draft management via gh CLI. Use... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 16 次。

如何安装 GitHub PR Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gh-pr-flow」即可一键安装,无需额外配置。

GitHub PR Manager 是免费的吗?

是的,GitHub PR Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GitHub PR Manager 支持哪些平台?

GitHub PR Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GitHub PR Manager?

由 ericlooi504(@ericlooi504)开发并维护,当前版本 v1.0.1。

💬 留言讨论