mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
- 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>
1.3 KiB
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
-
Review staged changes
- Review all staged changes to understand what has been done
- Do not touch unstaged changes
-
Prepare branch
- Create a new branch with proper name if current branch is main
- Ensure all changes are committed
- Push branch to remote
-
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
-
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_TOKENenvironment variable:GH_TOKEN=<provided_token> gh pr create --title "..." --body "..." - If no token is provided, use the default
ghauthentication
PR Template
@{.github/pull_request_template.md}