install
source · Clone the upstream repo
git clone https://github.com/GeorgeDoors888/GB-Power-Market-JJ
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.claude/skills && cp -r "$T/openclaw-skills/skills/autogame-17/auto-pr-merger" ~/.claude/skills/georgedoors888-gb-power-market-jj-auto-pr-merger && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/openclaw-skills/skills/autogame-17/auto-pr-merger" ~/.openclaw/skills/georgedoors888-gb-power-market-jj-auto-pr-merger && rm -rf "$T"
manifest:
openclaw-skills/skills/autogame-17/auto-pr-merger/SKILL.mdsource content
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
: The PR number or URL (e.g.,--pr
or123
).https://github.com/owner/repo/pull/123
: The command to run tests (e.g.,--test
,npm test
).pytest
: (Optional) Number of times to attempt fixing the code if tests fail. Default: 3.--retries
Requirements
CLI installed and authenticated.gh- 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
- Merges the PR using