Add draft to EditPullRequestOption #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/edit-pr-option-draft"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forgejo's
PATCH /repos/{owner}/{repo}/pulls/{index}acceptsdraftin the edit body. Sendingdraft: falsemarks a WIP pull request ready for review: the server strips the configuredWIP:title prefix and clears the draft flag.The vendored contract's
EditPullRequestOptionwas 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 it, so clients could only un-draft by manipulating the title. Add the boolean, matching upstream Forgejo.57819b67e7f908d261c3