← 返回 Skills 市场
lanxevo3

PR Auto-Merge Agent

作者 lanxevo3 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
132
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pr-auto-merger
功能描述
Autonomous PR merge agent. Scans repos for approved + CI-passing PRs and merges them automatically. Supports dry-run mode, squash/merge options, and min-appr...
安全使用建议
This skill appears to do exactly what it says: it needs a system-installed, authenticated GitHub CLI (gh) with repo permissions and will call gh to list and merge PRs. Before enabling it: 1) Test thoroughly in dry-run mode (default) and on a non-critical repo. 2) Verify how you install the GitHub CLI — the GH Actions example recommending `pip install gh` is misleading; prefer the official gh installers or package managers. 3) Confirm the token used by gh has only the permissions you intend (repo scope is required to merge). 4) Review and adjust min-approvals and squash/merge options, and consider scheduling only for repos you trust the automation on. 5) If you plan to let an autonomous agent run this regularly, restrict which repos it can target and audit runs/logs to avoid unintended merges.
功能分析
Type: OpenClaw Skill Name: pr-auto-merger Version: 1.0.0 The skill is a legitimate automation tool for managing GitHub pull requests using the 'gh' CLI. The Python script (scripts/auto_merge.py) implements logic to filter and merge PRs based on CI status and approvals, defaulting to a safe dry-run mode. While there is a minor logic bug in the merge_pr function that would cause the 'gh' command to be invoked incorrectly (as 'gh gh'), there is no evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
The skill only uses the GitHub CLI (gh) via subprocess calls to list and merge PRs and includes a small Python script that implements the described filtering and merge behavior. No unrelated credentials, binaries, or services are requested — this aligns with the stated purpose.
Instruction Scope
Instructions are narrowly scoped to calling gh pr list and gh pr merge; the script does not read arbitrary files or environment variables. Minor issues: the GH Actions example suggests `pip install gh` (the GitHub CLI is usually installed via package managers or GitHub releases, not pip); SKILL.md and function defaults have small inconsistencies (min-approvals default documented as 1 but get_prs_to_merge has a default of 2 in its signature, though main() passes the CLI value). The script enforces only APPROVED reviewDecision, which matches the description.
Install Mechanism
No install spec is provided and the skill is instruction-only with a single, readable script. Nothing is downloaded or executed from external URLs, and included code isn't obfuscated.
Credentials
No environment variables or secrets are requested by the skill itself; it relies on the system-installed gh CLI and the user's authenticated gh session (which must have a token with repo scope). That requirement is proportionate to the task of merging PRs.
Persistence & Privilege
always is false and the skill does not request permanent or elevated platform privileges. It can be invoked by the agent (the normal default), which is expected for an automation skill that may be scheduled or called by an agent.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pr-auto-merger
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pr-auto-merger 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of pr-auto-merger. - Scans GitHub repositories for PRs that are approved, CI-passing, and mergeable, then merges them automatically. - Supports dry-run mode, configurable minimum approval counts, and options for squash or merge. - Requires only Python stdlib and the GitHub CLI (`gh`); no external dependencies. - Includes guides for quick start, GitHub Actions integration, and cron task setup.
元数据
Slug pr-auto-merger
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

PR Auto-Merge Agent 是什么?

Autonomous PR merge agent. Scans repos for approved + CI-passing PRs and merges them automatically. Supports dry-run mode, squash/merge options, and min-appr... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。

如何安装 PR Auto-Merge Agent?

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

PR Auto-Merge Agent 是免费的吗?

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

PR Auto-Merge Agent 支持哪些平台?

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

谁开发了 PR Auto-Merge Agent?

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

💬 留言讨论