Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计通过

pr-auto-merger公关汽车合并

Agent Skill

pr-auto-merger 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,818

周安装

164

GitHub Stars

公开资料未说明

下载量

1,338
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pr-auto-merger(公关汽车合并)
来源仓库:https://github.com/lanxevo3/pr-auto-merger
安装命令:
openclaw skills install pr-auto-merger
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pr-auto-merger

简介

自动扫描仓库并合并已通过 CI 和审核的拉取请求。

  • 适合管理高频提交、减少人工干预的持续集成环境。pr-auto-merger 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 支持空运行模式与压缩合并选项,降低误操作风险。
  • 安装前需授权 GitHub API 访问权限,并确认分支保护规则。
  • 建议在测试仓库先行验证,避免影响主干代码稳定性。

SKILL.md

name
pr-auto-merger
description
Autonomous PR merge agent. Scans repos for approved + CI-passing PRs and merges them automatically. Supports dry-run mode, squash/merge options, and min-approval thresholds. Ideal for teams wanting hands-off PR cleanup.
version
1.0.0
slug
pr-auto-merger
tags
["github", "pr", "auto-merge", "ci-cd", "automation", "devops"]

PR Auto-Merge Agent

Autonomous pull request merge tool. Scans GitHub repos for PRs that are approved, CI-passing, and mergeable — then merges them automatically (or reports in dry-run mode).

What It Does

  • Finds all open PRs that are: not drafts + mergeable + CI passing + approved
  • Merges them via --squash (default) or --admin --merge
  • Supports --dry-run mode to preview what WOULD be merged without making changes
  • Configurable minimum approval count
  • Pure Python stdlib + gh — zero external dependencies

Prerequisites

  • gh CLI authenticated (gh auth status)
  • Python 3.6+
  • Token must have repo scope to merge

Quick Start

# Preview what would be merged (default — safe)
python3 scripts/auto_merge.py owner/repo

# Actually merge
python3 scripts/auto_merge.py owner/repo --no-dry-run

# Require 2 approvals minimum, squash merge
python3 scripts/auto_merge.py owner/repo --min-approvals 2 --squash

# Scan multiple repos
python3 scripts/auto_merge.py owner/repo1 && python3 scripts/auto_merge.py owner/repo2

Usage as Claude Code Skill

/pr-auto-merger owner/repo --dry-run

The agent will:

  1. Fetch all open PRs from the repo via gh pr list --json
  2. Filter to approved + CI-passing + mergeable PRs
  3. Report in dry-run mode (default), or merge with --no-dry-run

Merge Criteria

A PR is merged only when ALL of these are true:

  • Not a draft (isDraft: false)
  • Mergeable (mergeable: true)
  • All required status checks passing (statusCheckRollup conclusion: SUCCESS)
  • Review decision is APPROVED
  • Has at least --min-approvals approvals (default: 1)

Output Format

Scanning owner/repo for mergeable PRs...
[DRY-RUN] Found 3 PR(s) ready to merge:
  #123 — Fix auth middleware (https://github.com/owner/repo/pull/123)
  #456 — Add caching layer (https://github.com/owner/repo/pull/456)
  #789 — Update dependencies (https://github.com/owner/repo/pull/789)

Re-run with --no-dry-run to actually merge.

GitHub Actions Integration

Drop this into a nightly cron job:

name: Nightly PR Merge
on:
  schedule:
    - cron: '0 6 * * *'
jobs:
  merge:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: |
          pip install gh
          gh auth status
          python3 scripts/auto_merge.py owner/repo --no-dry-run --min-approvals 2

Cron Agent Configuration

For OpenClaw scheduling, configure as:

{
  "task": "python3 /path/to/scripts/auto_merge.py owner/repo --no-dry-run",
  "schedule": "0 8 * * 1-5",
  "notify_on": ["failure", "merged"]
}

Architecture

  • scripts/auto_merge.py — Pure Python 3 (stdlib only)
  • Uses gh pr list --json for data fetching
  • Uses gh pr merge for actual merging
  • No pip packages, no external APIs
  • Portable: Linux, macOS, Windows (Python + gh)

License

MIT

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.25%
按下载量换算980

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills