qwen-code/.qwen/commands/qc/create-pr.md
tanzhenxin 8ea472db8d chore(qc): add GH_TOKEN instruction to create-pr skill
- Update create-pr.md to explicitly use GH_TOKEN when provided
- Ensures PR creation works with user-provided tokens via environment variable

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-03 16:20:50 +08:00

1.3 KiB

description
Create a pull request based on staged code changes

Create PR

Overview

Create a well-structured pull request with proper description and title.

Steps

  1. Review staged changes

    • Review all staged changes to understand what has been done
    • Do not touch unstaged changes
  2. Prepare branch

    • Create a new branch with proper name if current branch is main
    • Ensure all changes are committed
    • Push branch to remote
  3. Write PR description

    • Use PR Template below
    • Summarize changes clearly
    • Include context and motivation
    • List any breaking changes
    • Link related issues if provided, or use "No linked issues"
    • Leave the "Screenshots / Video Demo" section empty for the author to fill in manually
    • Add this line at the end of PR body: "🤖 Generated with Qwen Code", with a line separator
  4. Set up PR

    • Create PR title and body
    • Submit PR with gh command
    • If a GitHub token is provided in the user's message, use it by setting the GH_TOKEN environment variable:
      GH_TOKEN=<provided_token> gh pr create --title "..." --body "..."
      
    • If no token is provided, use the default gh authentication

PR Template

@{.github/pull_request_template.md}