Peter PR Ops
name: peter-pr-ops
by chinasilva · published 2026-03-22
$ claw add gh:chinasilva/chinasilva-peter-pr-ops---
name: peter-pr-ops
description: PR 收口自动化。单 PR 串行合并与多 PR 批量清理,减少重复人工操作。
version: 1.2.1
---
# Peter PR Ops
30 秒简介
用于“把 PR 处理完”。
默认优先复用仓库脚本:
脚本缺失时,优先补齐脚本;补齐失败再回退到 `gh` 命令流。
适用场景
执行步骤
1. 识别处理模式:
2. 优先脚本路径:
scripts/automerge <pr>
scripts/massageprs <pr1> <pr2>3. 脚本缺失时优先补齐(再重试第 2 步):
repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
if [ -x "$repo_root/scripts/ensure-workflow-docs" ]; then
"$repo_root/scripts/ensure-workflow-docs" all
elif [ -x "$HOME/ai_code/study_peter/scripts/ensure-workflow-docs" ]; then
"$HOME/ai_code/study_peter/scripts/ensure-workflow-docs" all
else
echo "ensure-workflow-docs not found"
fi4. 回退路径(补齐失败或不可用时):
gh pr view <pr> --json number,state,mergeStateStatus
gh pr checks <pr>
gh pr merge <pr> --auto --squashgh pr list --author "@me" --state open --json number --jq '.[].number'
gh pr merge <pr> --auto --merge5. 输出结果:
护栏
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...