gh-create-pr
仓库创建 2024年5月24日最近提交 3 小时前SkillHot 收录 20 天前
▸ 精选理由
保证 PR 符合模板与仓库流程,适合需要一致化提交流程的团队。
▸ 风险提示
会推送分支并修改远程 PR,需要认证权限且可能影响 CI/发布流程。
这个 Skill 做什么
读取仓库 PR 模板并据此创建或更新合规的 GitHub Pull Request。
按仓库要求创建或更新 Pull Request:先读取 .github/pull_request_template.md,把每个模板段落逐项填满(缺失项标 N/A),并保留原始 Markdown 结构。用于打开或更新 PR 时,自动收集分支信息、关联 Issue、测试状态等上下文,必要时会先推送分支。好处是避免漏写模板字段,确保 PR 一致且合规,便于审查。
▸ 展开 SKILL.md 英文原文
Create or update GitHub pull requests using the repository-required workflow and template compliance. Use when asked to create/open/update a PR so the assistant reads `.github/pull_request_template.md`, fills every template section, preserves markdown structure exactly, and marks missing data as N/A or None instead of skipping sections.
4.9w
Stars
4.7k
Forks
15
仓库内 Skill
+801
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/CherryHQ/cherry-studio/main/.agents/skills/gh-create-pr/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/CherryHQ/cherry-studio/main/.agents/skills/gh-create-pr/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# GitHub PR Creation ## Workflow 1. Read `.github/pull_request_template.md` before drafting the PR body. 2. Collect PR context from the current branch (base/head, scope, linked issues, testing status, breaking changes, release note content). 3. Check if the current branch has been pushed to remote. If not, push it first: - Default remote is `origin`, but ask the user if they want to use a different remote. ```bash git push -u <remote> <head-branch> ``` 4. Determine the base branch: - For official repo(CherryHQ/cherry-studio) as `origin`: default base is `main` from `origin`, but allow the user to explicitly indicate a base branch. - `main` is the active v2 development lin
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有