komrad

set_forge_pull_request_approval

Approve a pull request as komrad's credential, or withdraw that approval.

writesidempotentdestructiveCLI onlyForge

On GitHub, withdrawing dismisses the credential's approving review.

Calling it#

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

Request#

SetForgePullRequestApprovalRequest#

FieldTypeDescription
urlstring*

at most 2048 characters

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

head_shastring

at most 64 characters

The head commit the caller saw. The approval is for that commit. Empty approves whatever the head is.

approvedbool

Whether komrad's credential approves the pull request. False withdraws its approval.

Response#

Empty#

No fields.