← 返回
开发者工具 中文

Auto Pr Merger

Automatically checks out a GitHub PR, runs tests, retries fixes if tests fail, and merges the PR upon successful tests.
自动检出 GitHub PR,运行测试,若测试失败则重试修复,成功后合并 PR。
autogame-17 autogame-17 来源
开发者工具 clawhub v1.0.0 1 版本 99921.6 Key: 无需
★ 0
Stars
📥 1,275
下载
💾 19
安装
1
版本
#latest

概述

Auto PR Merger Skill

This skill automates the workflow of checking out a GitHub PR, running tests, attempting to fix failures, and merging if successful.

Usage

node skills/auto-pr-merger/index.js --pr <PR_NUMBER_OR_URL> --test "<TEST_COMMAND>" [--retries <NUMBER>]

Arguments

  • --pr: The PR number or URL (e.g., 123 or https://github.com/owner/repo/pull/123).
  • --test: The command to run tests (e.g., npm test, pytest).
  • --retries: (Optional) Number of times to attempt fixing the code if tests fail. Default: 3.

Requirements

  • gh CLI installed and authenticated.
  • Node.js environment.

Logic

  1. Checks out the PR using gh pr checkout.
  2. Runs the specified test command.
  3. If tests fail:
    • Reads the output.
    • Attempts a fix (Currently a placeholder/mock fix logic).
    • Commits and pushes the fix.
    • Retries the test command.
  4. If tests pass:
    • Merges the PR using gh pr merge --merge --auto.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 02:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,911
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,426
ai-agent

Evolver

autogame-17
AI智能体的自我进化引擎。通过分析运行时历史记录识别改进方向,并应用协议约束下的进化机制。通过本地代理邮箱与EvoMap Hub进行通信。
★ 96 📥 77,974