Create a new pull request. Use when the user wants to open a PR, submit code for review, create a draft PR, or push changes for merge.
Create a new pull request from the current branch.
Run:
aide pr create --title "Title" [options]
Supports both GitHub CLI and Azure CLI style flags:
| Flag (gh-style) | Short | Aliases (az-style) | Description |
|---|---|---|---|
--title |
-t |
- | PR title (required) |
--body |
-b |
--description |
PR description/body |
--head |
-H |
--source, -s, --source-branch |
Source/head branch (defaults to current branch) |
--base |
-B |
--target, --target-branch |
Target/base branch (defaults to main) |
--draft |
-d |
- | Create as draft PR |
--tag |
- | - | Add tag(s) to the PR (repeatable) |
# Basic PR creation
aide pr create --title "Add user authentication"
# With description
aide pr create --title "PROJ-123: Add OAuth" --body "Implements OAuth 2.0 with PKCE flow"
# Draft PR for early feedback
aide pr create --title "WIP: Refactor auth module" --draft
# Targeting specific branch
aide pr create --title "Hotfix: Login bug" --base release/v2.0
# With tags
aide pr create --title "PROJ-123: Fix performance" --tag bug --tag performance
--draft for work-in-progress--publish when readyAfter creating a PR: