Token导航 LogoToken导航TokenDH.com
待分类权限需确认github未标认证来源可访问许可证需确认审计未展示

release-please-pr-workflow请发布公关工作流程

Agent Skill

release-please-pr-workflow 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

194

周安装

8

GitHub Stars

28

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:release-please-pr-workflow(请发布公关工作流程)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/release-please-pr-workflow
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill release-please-pr-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill release-please-pr-workflow

简介

release-please-pr-workflow 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 它可自动化生成和管理 release-please 触发的 Pull Request,包括标题、描述和评审提醒。
  • 通过 npx skills add 命令从指定仓库安装,具体用法请结合原始 README 进一步确认。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

created
2026-01-09
modified
2026-04-25
reviewed
2026-04-25
name
release-please-pr-workflow
description
|
user-invocable
false
allowed-tools
Bash, Read, TodoWrite

Release-Please PR Workflow

When to Use This Skill

Use this skill when...Use the alternative when...
Iteratively merging multiple release-please PRs in a monorepoUse release-please-configuration to fix the upstream config that produced them
Resolving conflicts between sibling release PRs by closure/recreationUse git-resolve-conflicts for ordinary feature-PR merge conflicts
Coordinating sequential merges when separate-pull-requests: trueUse git-fix-pr if individual release PRs have failing CI checks
Reducing the open release PR queue after a burst of releasable commitsUse release-please-protection to detect manual edits to changelog/version files

Expert knowledge for managing release-please PRs in monorepos, including batch merging, conflict handling, and iterative processing.

Core Workflow

Release-please creates separate PRs per component in monorepos (when separate-pull-requests: true). These PRs often need sequential merging due to shared manifest file updates.

Iterative Merge Process

  1. List pending PRs with status
  2. Merge clean PRs (MERGEABLE status)
  3. Handle conflicting PRs (close for recreation)
  4. Wait for recreation and repeat
  5. Verify completion when no PRs remain

Essential Commands

List Release PRs

# List all pending release PRs
gh pr list --label "autorelease: pending"

# With merge status details
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus

# Check specific PR status
gh pr view <number> --json title,mergeable,mergeStateStatus

Check PR Mergeability

StatusMeaningAction
CLEAN / MERGEABLEReady to mergeMerge immediately
UNKNOWNGitHub computingWait 5-10 seconds, retry
DIRTY / CONFLICTINGHas conflictsClose and wait for recreation

Merge PRs

# Merge single PR (squash recommended for clean history)
gh pr merge <number> --squash

# Merge multiple clean PRs sequentially
gh pr merge 55 --squash && gh pr merge 56 --squash

# Check result
gh pr list --label "autorelease: pending"

Handle Conflicts

# Close conflicting PRs with explanation
gh pr close <number> --comment "Closing due to conflicts from merged PRs. Release-please will recreate."

# Trigger workflow (if workflow_dispatch enabled)
gh workflow run release-please.yml

# Otherwise, wait for push trigger or new commit

Conflict Resolution Strategy

Why Conflicts Occur

Release-please PRs modify .release-please-manifest.json which tracks all component versions. When one PR merges:

  • The manifest changes
  • Other PRs become out of date
  • GitHub marks them as conflicting

Resolution Flow

1. Identify conflicting PRs
   ↓
2. Close conflicting PRs with comment
   ↓
3. Wait for release-please to recreate PRs
   (triggered by next push or workflow run)
   ↓
4. New PRs appear with updated base
   ↓
5. Merge clean PRs, repeat if needed

Typical Iteration Pattern

# Round 1: Initial merge
gh pr list --label "autorelease: pending" --json number,mergeable,mergeStateStatus
# Merge CLEAN ones, note CONFLICTING ones

# Round 2: Close conflicts
gh pr close 45 --comment "Closing for recreation"
gh pr close 46 --comment "Closing for recreation"

# Wait for recreation (5-10 seconds typically)
sleep 5

# Round 3: Check new PRs
gh pr list --label "autorelease: pending" --json number,mergeable,mergeStateStatus
# New PR numbers will appear, merge them

# Repeat until no pending PRs

Complete Merge Workflow

Full Automation Script Pattern

# 1. Initial status check
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus

# 2. Wait for GitHub to compute status if UNKNOWN
sleep 5
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus

# 3. Merge clean PRs
for pr in $(gh pr list --label "autorelease: pending" --json number,mergeStateStatus \
  -q '.[] | select(.mergeStateStatus=="CLEAN") | .number'); do
  gh pr merge $pr --squash
done

# 4. Close conflicting PRs
for pr in $(gh pr list --label "autorelease: pending" --json number,mergeStateStatus \
  -q '.[] | select(.mergeStateStatus=="DIRTY") | .number'); do
  gh pr close $pr --comment "Closing for recreation after conflicts"
done

# 5. Wait and repeat until done
sleep 10
gh pr list --label "autorelease: pending"

Interactive Workflow

For complex situations, work iteratively:

# Check current state
gh pr list --label "autorelease: pending" --json number,title,mergeable,mergeStateStatus

# Merge one by one, checking status between
gh pr merge <number> --squash
gh pr list --label "autorelease: pending" --json number,mergeable,mergeStateStatus

# Handle UNKNOWN status by waiting
sleep 5
gh pr view <number> --json mergeable,mergeStateStatus

Status Interpretation

mergeStateStatus Values

ValueDescriptionAction
CLEANAll checks pass, no conflictsMerge immediately
UNKNOWNStatus being computedWait 5-10 seconds
DIRTYHas conflictsClose PR
BLOCKEDBranch protection blockingCheck required checks
BEHINDBranch is behind baseUpdate branch or close

mergeable Values

ValueDescription
MERGEABLECan be merged
CONFLICTINGHas merge conflicts
UNKNOWNBeing calculated

Post-Merge Verification

# Verify all PRs merged
gh pr list --label "autorelease: pending"
# Should return empty

# Check new releases/tags
git fetch --tags
git tag --list --sort=-creatordate | head -10

# Pull latest changes
git pull origin main

Common Issues

PRs Keep Recreating

Cause: Unreleased changes still exist for component Check: git log --oneline HEAD ^<component>-v<last-version> -- <component>/ Solution: Merge the PR or revert the changes

Auto-merge Not Working

Cause: Repository doesn't have branch protection enabled Error: Pull request Protected branch rules not configured for this branch Solution: Use gh pr merge --squash without --auto

Workflow Not Triggering

Cause: release-please.yml doesn't have workflow_dispatch Solution: Wait for next push to main, or make a commit to trigger

"Already Merged" Message

Cause: PR was merged but GitHub CLI cache is stale Action: This is normal, continue with next PR

Agentic Optimizations

ContextCommand
Quick statusgh pr list --label "autorelease: pending" --json number,mergeStateStatus
Batch mergegh pr merge N --squash && gh pr merge M --squash
Close with reasongh pr close N --comment "Conflicts"
Wait and checksleep 5 && gh pr list --label "autorelease: pending"

Quick Reference

Command Cheat Sheet

TaskCommand
List pending PRsgh pr list --label "autorelease: pending"
Check PR statusgh pr view N --json mergeable,mergeStateStatus
Merge PRgh pr merge N --squash
Close PRgh pr close N --comment "reason"
View recent tags`git tag --sort=-creatordate \head -10`
Check workflow runsgh run list --workflow=release-please.yml -L 5

Workflow Labels

LabelMeaning
autorelease: pendingPR waiting to be merged
autorelease: taggedPR merged and release tagged

Integration with Other Skills

  • release-please-configuration - Setting up monorepo config
  • release-please-protection - Preventing manual edits to managed files
  • git-commit-workflow - Creating conventional commits that trigger releases

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.34%
按下载量换算25

Claude

31.74%
按下载量换算20

Cursor

17.03%
按下载量换算11

Gemini CLI

8.73%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills