✓ Verified 💻 Development ✓ Enhanced Data

Auto Pr Merger

This skill automates the workflow of checking out a GitHub.

Rating
4.6 (47 reviews)
Downloads
16,461 downloads
Version
1.0.0

Overview

This skill automates the workflow of checking out a GitHub.

Complete Documentation

View Source →

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

bash
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

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

Installation

Terminal bash

openclaw install auto-pr-merger
    
Copied!

Tags

#git_and-github #github #git #workflow

Quick Info

Category Development
Model Claude 3.5
Complexity Advanced
Author autogame-17
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install auto-pr-merger