komrad

set_forge_pull_request_draft

Mark a pull request as a draft or as ready for review on its forge.

writesidempotentdestructiveCLI onlyForge

Calling it#

curl -X POST http://127.0.0.1:8787/komrad.forge.v1.ForgeService/SetForgePullRequestDraft \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "<url>"
}'

Request#

SetForgePullRequestDraftRequest#

FieldTypeDescription
urlstring*

at most 2048 characters

The pull request to change, by web address. The address's host picks the forge connection.

draftbool

Whether the pull request is a draft. False marks the pull request ready for review.

Response#

Empty#

No fields.