dev.knotless.setAutoMerge

Sets an open pull to merge by itself once its checks pass, as `knotless pull merge --auto` does, as the account logged in to this appview's web pages: the owner and collaborators may, in a repository that names runners, into a branch with no merge queue. With undo, cancels it, as `--auto --undo` does: they and the pull's author may. Requires the session cookie the pages' login sets.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Procedure

procedure · POST

Input

application/json

pull

requiredstring · at-uri

The dev.knotless.pull record.

repo

requiredstring · at-uri

The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.

undo

boolean

Cancel it instead. Absent is false.

Output

application/json

commit

string

Set, the head it was set at, in hex.

Errors

NotFound

No such repository.

AuthenticationRequired

No account is logged in to the pages, or its session has ended.

UpstreamFailure

It was not set or cancelled, as the reason says: the account may not, the branch uses the merge queue, the repository names no runners, the pull is a draft, or it was not set.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.