返回 Skill 列表
extension
分类: 开发与工程无需 API Key

release-patterns

PR创建、CI/CD验证和发布协调模式。在创建拉取请求、运行预PR验证、检查CI状态或协调合并时使用。

person作者: jakexiaohubgithub

Release Patterns Skill

Purpose

Ensure consistent PR creation, CI/CD validation, and release coordination following rebase-first workflow.

When This Skill Applies

  • Creating pull requests
  • Running pre-PR validation
  • Checking CI/CD status
  • Coordinating merge timing

Pre-PR Checklist (MANDATORY)

Before creating any PR:

  • [ ] Branch name: {TICKET_PREFIX}-{number}-{description}
  • [ ] Commits follow: type(scope): description [{TICKET_PREFIX}-XXX]
  • [ ] Rebased on latest main: git fetch origin && git rebase origin/{MAIN_BRANCH}
  • [ ] CI passes locally: {CI_VALIDATE_COMMAND}

PR Creation

gh pr create \
  --title "feat(scope): description [{TICKET_PREFIX}-XXX]" \
  --body "## Summary
Implements feature as specified in {TICKET_PREFIX}-XXX.

## Changes
- Change 1
- Change 2

## Testing
- CI passes
- Manual testing completed"

Merge Strategy

ONLY use rebase merge:

# CORRECT
gh pr merge --rebase --delete-branch

# NEVER
gh pr merge --squash   # Loses history
gh pr merge --merge    # Creates merge commits

Reference

  • PR Template: .github/pull_request_template.md
  • Workflow Guide: CONTRIBUTING.md