Back to Qwen Code

Create PR

.qwen/commands/qc/create-pr.md

0.15.61.2 KB
Original Source

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
  1. Prepare branch
  • Create a new branch with proper name if current branch is main
  • Ensure all changes are committed
  • Push branch to remote
  1. 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
  1. 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:
    bash
    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}