Prompt file imported from VisActor/VChart (
.cursor/commands/speckit.prcreate.md). Fill in{{arguments}}before use. Copyright stays with the author.
User Input
{{arguments}}
You MUST consider the user input before proceeding (if not empty).
Outline
-
Check Inputs:
- Title: The Pull Request title (Required).
- Head Branch: Source branch (defaults to current branch:
git branch --show-current). - Base Branch: Target branch (defaults to
develop). - Body File: Path to PR body content (defaults to
.trae/output/pr.body.local.md).
-
Verify Environment:
- Check if
ghCLI is installed:gh --version. - Check authentication status:
gh auth status. - Note: Explicitly ignore
GITHUB_TOKENenv var to force browser-based auth if needed.
- Check if
-
Execute PR Creation:
- Construct and run the
gh pr createcommand:gh pr create --title "<TITLE>" --body-file "<BODY_FILE>" --base "<BASE>" --head "<HEAD>" --web - Note: The
--webflag is optional but recommended if the user wants to review in browser before final submission, otherwise remove it to create directly. Based on user preference or default to direct creation if not specified.
- Construct and run the
-
Report Output:
- Capture the command output.
- Display the URL of the newly created Pull Request.
- Verify the URL is valid.
