首页/ AI 技能 / @skilllib/skill-2117939930272410586
Skill站外收录 @skilllib/skill-2117939930272410586

create-pr

自动化生成结构化的拉取请求,基于提交历史提取功能变更或问题修复的上下文,生成符合规范的标题与详细描述,集成代码审查的最佳实践,提升协作效率并确保每次提交都具备可追溯的验证说明。

0.0 (0) 16 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Create PR This skill streamlines the Pull Request process, ensuring consistent and high-quality PR descriptions. ## Prerequisites - `gh` (GitHub CLI) must be installed and authenticated. - The current branch must have commits that are not yet on the remote (or a corresponding remote branch). ## Workflow 1. **Analyze Context**: Checks the git log to understand the changes (`feat`, `fix`, `chore`). 2. **Generate Metadata**: - **Title**: Uses the conventional commit format (e.g., `feat: Implement user login`). - **Body**: Summarizes the changes, links to issues, and provides verification steps. 3. **Execute**: Runs `gh pr create`. ## Usage ```bash # Standard usage (interactive) gh pr create # Fully automated with flags gh pr create --title "feat: Add user profile" --body "Implements user profile page..." ``` ## Best Practices for PRs - **Small & Focused**: Keep PRs limited to a single logical change. - **Linked Issues**: Always link to the task/issue (e.g., `Closes #123`). - **Self-Review**: Review your own diff before creating the PR. - **Verification**: Explicitly state how you verified the change (screenshots, test output).

评论 0

还没有评论,来抢沙发。