Add draft to EditPullRequestOption #3

Merged
stephen merged 1 commit from feat/edit-pr-option-draft into main 2026-07-13 00:16:32 +00:00
Owner

Forgejo's PATCH /repos/{owner}/{repo}/pulls/{index} accepts draft in the edit body. Sending draft: false marks a WIP pull request ready for review: the server strips the configured WIP: title prefix and clears the draft flag.

The vendored contract's EditPullRequestOption was missing the field, so a client could only un-draft by manipulating the title. Add the boolean (matching upstream Forgejo), unblocking a native "Mark as ready for review" action in fjord-ios.

Additive and optional; no existing generated type changes shape.

Forgejo's `PATCH /repos/{owner}/{repo}/pulls/{index}` accepts `draft` in the edit body. Sending `draft: false` marks a WIP pull request ready for review: the server strips the configured `WIP:` title prefix and clears the draft flag. The vendored contract's `EditPullRequestOption` was missing the field, so a client could only un-draft by manipulating the title. Add the boolean (matching upstream Forgejo), unblocking a native "Mark as ready for review" action in fjord-ios. Additive and optional; no existing generated type changes shape.
Add draft to EditPullRequestOption
Some checks failed
CI / Contract drift (pull_request) Has been cancelled
57819b67e7
Forgejo's PATCH /repos/{owner}/{repo}/pulls/{index} accepts draft in the edit
body: sending draft:false marks a WIP pull request ready for review (the server
strips the configured WIP: title prefix and clears the draft flag). The vendored
contract's EditPullRequestOption was missing it, so clients could only un-draft
by manipulating the title. Add the boolean, matching upstream Forgejo.
stephen force-pushed feat/edit-pr-option-draft from 57819b67e7
Some checks failed
CI / Contract drift (pull_request) Has been cancelled
to f908d261c3
All checks were successful
CI / Contract drift (pull_request) Successful in 8s
2026-07-13 00:08:58 +00:00
Compare
stephen deleted branch feat/edit-pr-option-draft 2026-07-13 00:16:32 +00:00
Sign in to join this conversation.
No reviewers
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
rasterstate/forgejo-api-contract!3
No description provided.