fix(pr): keep a typed WIP: prefix when creating a pull request #17

Merged
qwolff merged 1 commit from fix/keep-wip-title into main 2026-10-14 04:28:36 +00:00
Owner

pr create (CLI and MCP) stripped a typed WIP: / [WIP] title prefix unless --draft was given, because new titles went through DraftTitle(title, false). Pull requests meant to stay drafts opened as ready and could be auto-landed.

New pull requests now keep the title as typed; --draft still adds WIP: . Editing with --draft=false / pr ready still removes the prefix. Verified against qwolff/fgj-sandbox: before, --title "WIP: x" produced a ready PR titled x; after, a draft titled WIP: x.

🤖 Generated with Claude Code

`pr create` (CLI and MCP) stripped a typed `WIP:` / `[WIP]` title prefix unless `--draft` was given, because new titles went through `DraftTitle(title, false)`. Pull requests meant to stay drafts opened as ready and could be auto-landed. New pull requests now keep the title as typed; `--draft` still adds `WIP: `. Editing with `--draft=false` / `pr ready` still removes the prefix. Verified against qwolff/fgj-sandbox: before, `--title "WIP: x"` produced a ready PR titled `x`; after, a draft titled `WIP: x`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(pr): keep a typed WIP: prefix when creating a pull request
All checks were successful
CI / lint (pull_request) Successful in 1m58s
CI / build (pull_request) Successful in 1m58s
CI / test (pull_request) Successful in 2m28s
af102d0192
`pr create` passed every title through DraftTitle(title, draft), which strips
work-in-progress prefixes when draft is false. A title typed as "WIP: ..."
without --draft therefore opened a ready pull request, and auto-landing merged
work that was meant to wait for review. New pull requests now keep the title as
typed; --draft still adds the prefix. The same applies to the MCP create tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
qwolff merged commit f9e5f4eb0b into main 2026-10-14 04:28:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
qwolff/fgj!17
No description provided.