跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Create PR

技能 已验证 活跃
属于:Git

Create pull requests using GitHub CLI with proper templates and formatting

目的

To streamline the process of creating well-formatted and properly templated pull requests on GitHub, ensuring consistency and adherence to project standards.

功能

  • Create pull requests using GitHub CLI
  • Utilize PR templates for consistent descriptions
  • Format PR titles using conventional commits
  • Perform pre-flight checks for uncommitted changes
  • Guide users through GitHub CLI installation and authentication

使用场景

  • When needing to create a new pull request for a feature branch.
  • When wanting to ensure PR titles and descriptions follow project conventions.
  • When automating the PR creation process with proper formatting and templates.
  • When a developer needs a clear guide on setting up GitHub authentication for the CLI.

非目标

  • Managing git repositories beyond creating a pull request.
  • Directly interacting with GitHub's API outside of the GitHub CLI.
  • Handling merge conflicts or complex review workflows.
  • Automating code review itself.

工作流

  1. Check for uncommitted changes using `git status`.
  2. If changes exist, use the `commit` skill to commit them.
  3. Prepare PR description using the template (`.github/pull_request_template.md`).
  4. Create a draft pull request using `gh pr create --draft --title "..." --body-file .github/pull_request_template.md --base main`.

实践

  • Conventional Commits
  • Pull Request Templating
  • Developer Workflow Automation

先决条件

  • Install GitHub CLI (`gh`)
  • Authenticate with GitHub CLI (`gh auth login`)
  • Ensure local Git repository is clean (no uncommitted changes)

Versioning

  • info:Release ManagementThe `pushedAt` timestamp indicates recent activity, but there is no explicit versioning information (e.g., in frontmatter or changelog) for the skill itself, only for the broader kit.

安装

请先添加 Marketplace

/plugin marketplace add NeoLabHQ/context-engineering-kit
/plugin install git@context-engineering-kit

质量评分

已验证
97 /100
1 day ago 分析

信任信号

最近提交9 days ago
星标993
许可证GPL-3.0
状态
查看源代码