跳到正文
TakoAPI
返回技能列表

auto-pr-merger

由 autogame-17 提供

Git & GitHub
729下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

This skill automates the workflow of checking out a GitHub.

描述

该技能的功能

Automates the cycle of checking out a GitHub PR, running a test suite, and merging when tests pass. If tests fail, it reads the output, attempts a fix, commits, pushes, and retries up to a configurable number of times.

Combines checkout, test execution, fix attempt, and merge into a single command, removing the manual loop between a failing test run and an actual merge.

何时使用

  • Merging Dependabot PRs after confirming tests pass
  • Batch-merging approved small bug fix PRs overnight
  • Auto-retrying a PR blocked by a transient test failure
  • Unblocking a merge queue without manual CI babysitting
  • Hands-free merging of config-only or flag PRs during off-hours

示例工作流

输入

User asks: merge PR #42 if tests pass, retry up to 2 times on failure

智能体
  1. 1

    Checks out PR #42 using gh pr checkout

  2. 2

    Runs the specified test command and captures output

  3. 3

    On failure, reads test output and applies a fix

  4. 4

    Commits and pushes the fix, then reruns the test command

  5. 5

    Merges the PR with gh pr merge --merge --auto once tests pass

输出

PR #42 merged after one fix attempt and a passing test run

前置要求

  • GitHub CLI (`gh`) installed and authenticated with a GitHub account

安装

clawhub install autogame-17/auto-pr-merger

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接