搜索

PythonReactSEOPDF
GitHub Skill

pr

Create and edit pull requests following project conventions. Use `/pr <issue-number>` to create, `/pr edit [pr-number]` to update, or `/pr release <version>` for release prep.

zeroae☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Pull Request Skill

Create, view, and edit PRs following project conventions. Supports four modes:

Mode Trigger Purpose
View /pr view [pr-number] Display PR details and CI status
Create /pr [issue-number], "create pr" Create PR for features, bugs, tasks
Edit /pr edit [pr-number], "update pr" Regenerate PR body from current commits
Release /pr release <version>, "release prep" Verify release readiness

Mode Detection

  1. If view keyword (/pr view, /pr view 218) → View mode
  2. If issue number provided (/pr 123) → Create mode (always, regardless of branch)
  3. If edit keyword (/pr edit) → Edit mode
  4. If release keyword (/pr release 0.5.0) → Release mode
  5. If on release branch AND no arguments (/pr on release/0.5.0) → Release mode
  6. Otherwise → Create mode

Pattern for release branches: ^release/v?[0-9]+\.[0-9]+\.[0-9]+$

Release Branch Workflow

Non-release PRs target the release branch matching their milestone:

  1. Get milestone from issue (e.g., v0.5.0)
  2. Check if release/0.5.0 branch exists
  3. If exists → PR targets release/0.5.0 instead of main
  4. If not exists → ask user: create branch, target main, or cancel

This ensures feature work flows into release branches, which then merge to main via release prep PRs.

feature-branch → release/0.5.0 → main
                      ↑
              (release prep PR)

Reference Files

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!