Skip to content

fix(run): add PR creation after successful QA in sequant run - #323

Merged
admarble merged 3 commits into
mainfrom
feature/322-bug-run-sequant-run-no-longer-creates-prs-afte
Feb 21, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/322-bug-run-sequant-run-no-longer-creates-prs-afte

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds createPR() function to run.ts that creates GitHub PRs after successful QA + rebase
  • Wires PR creation into all 3 execution modes (sequential, parallel, batch)
  • Adds --no-pr flag to skip PR creation for manual workflows
  • Records PR info in run logs and workflow state
  • Adds Bash(git push:*) to exec skill's allowed-tools

AC Coverage

AC Description Status
AC-1 createPR() function ✅ MET
AC-2 Wire into runIssueWithLogging() ✅ MET
AC-3 --no-pr CLI flag ✅ MET
AC-4 PR info in IssueResult/LogWriter/Schema ✅ MET
AC-5 Bash(git push:*) in exec skill ✅ MET
AC-6 Tests for createPR() ✅ MET

Test plan

  • 5 unit tests for createPR() (existing PR, fresh create, push fail, create fail, race condition)
  • All 93 run.test.ts tests pass
  • Build passes (tsc)
  • Lint passes

Closes #322

Add createPR() function to run.ts that pushes the branch and creates a
PR via gh CLI after successful QA + rebase. Handles existing PRs, push
failures, and race conditions gracefully (warnings, not failures).

- Add prUrl/prNumber to IssueResult and IssueLogSchema
- Wire createPR into post-QA flow in runIssueWithLogging
- Add --no-pr CLI flag to skip PR creation
- Update run summary to display PR numbers
- Add Bash(git push:*) to exec skill allowed-tools
- Add LogWriter.setPRInfo() for structured log recording
- Add 5 unit tests for createPR covering all paths

Fixes #322
Commander.js converts --no-X to { X: false }, not { noX: true }.
This meant --no-pr, --no-rebase, --no-mcp, --no-retry, --no-log,
and --no-smart-tests were all silently ignored. Add normalization
step to map Commander's output to the RunOptions field names.
createPR() hardcoded feat() prefix. Now checks issue labels and
uses fix() when a bug label is present.
@admarble
admarble merged commit f579039 into main Feb 21, 2026
6 checks passed
@admarble
admarble deleted the feature/322-bug-run-sequant-run-no-longer-creates-prs-afte branch February 21, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(run): sequant run no longer creates PRs after successful QA (v1.15.3 regression)

1 participant