Automatic PR Creation in `sequant run`
Quick Start: sequant run now automatically creates GitHub PRs after successful QA, completing the full issue-to-PR pipeline without manual intervention.
Access
Section titled “Access”- Command:
npx sequant run <issues...> - Requires:
ghCLI authenticated, git push access to remote - Added in: v1.15.4 (fixes v1.15.3 regression)
Default Behavior
Section titled “Default Behavior”PRs are created automatically after all phases pass:
npx sequant run 42# spec → exec → qa → rebase → PR created# ✓ #42: spec → exec → qa → PR #99 (45.2s)The PR includes:
- Title with conventional commit prefix (
feat(#42): ...orfix(#42): ...) - Body with issue summary and
Fixes #42for auto-close - Branch set to the feature worktree branch
Skipping PR Creation
Section titled “Skipping PR Creation”Use --no-pr to skip automatic PR creation:
npx sequant run 42 --no-pr# spec → exec → qa → rebase → done (no PR)Useful when:
- You want to review changes before creating the PR manually
- You’re running a dry-run or exploratory workflow
- Your team uses a different PR creation process
Multiple Issues
Section titled “Multiple Issues”PR creation works across all execution modes:
# Sequential — one PR per issuenpx sequant run 42 43 44 --sequential
# Parallel — PRs created after each issue completesnpx sequant run 42 43 44
# Batch — PRs created per batchnpx sequant run --batch "42 43" --batch "44"Options & Settings
Section titled “Options & Settings”| Option | Description | Default |
|---|---|---|
--no-pr | Skip PR creation after successful QA | PR created |
--no-rebase | Skip rebase before PR (also affects PR) | Rebase enabled |
How It Works
Section titled “How It Works”- All phases (spec, exec, qa) complete successfully
- Branch is rebased onto
origin/main(unless--no-rebase) - Branch is pushed to remote (
git push -u origin <branch>) - Existing PR is detected (reuses if found)
- New PR is created via
gh pr create - PR info is recorded in run logs and workflow state
PR Title Convention
Section titled “PR Title Convention”The PR title prefix is derived from issue labels:
| Issue Label | PR Title Prefix |
|---|---|
bug | fix(#N): <title> |
| Any other | feat(#N): <title> |
Run Log Output
Section titled “Run Log Output”PR info appears in the summary and structured run logs:
Results: 1 passed, 0 failed ✓ #42: spec → exec → qa → PR #99 (45.2s)Run logs include prNumber and prUrl fields for programmatic access.
Troubleshooting
Section titled “Troubleshooting”PR not created after successful run
Section titled “PR not created after successful run”Symptoms: Run completes with all phases passing but no PR link in output.
Solution: Check that gh CLI is authenticated (gh auth status) and you have push access to the remote. Also verify --no-pr was not passed.
”git push failed” warning
Section titled “”git push failed” warning”Symptoms: ⚠️ git push failed: permission denied in output.
Solution: Verify your git credentials and remote URL (git remote -v). The run still succeeds — only PR creation is skipped.
PR already exists
Section titled “PR already exists”Symptoms: Run detects an existing PR and reuses it instead of creating a new one.
Solution: This is expected behavior. If a PR already exists for the branch, sequant run returns its info rather than creating a duplicate.
Generated for Issue #322 on 2026-02-21