Merge Queue
Public Trunk Merge Queue API. All requests should be authenticated.
Last updated
Public Trunk Merge Queue API. All requests should be authenticated.
Last updated
The Trunk Merge Queue API provides access to submit PRs for testing and merging, canceling PRs, and providing extra information to optimize the queue. The API is an HTTP REST API, returns JSON from all requests, and uses standard HTTP response codes.
All requests must be authenticated by providing the x-api-token
header.
/submitPullRequest
{"host":"github.com","owner":"trunk-io","name":"trunk"}
{"number":1}
The branch the merge queue will be merging PRs into
main
No body
/getSubmittedPullRequest
{"host":"github.com","owner":"trunk-io","name":"trunk"}
{"number":1}
The branch the merge queue will be merging PRs into
main
/restartTestsOnPullRequest
{"host":"github.com","owner":"trunk-io","name":"trunk"}
{"number":1}
The branch the merge queue will be merging PRs into
main
No body
/cancelPullRequest
{"host":"github.com","owner":"trunk-io","name":"trunk"}
{"number":1}
The branch the merge queue will be merging PRs into
main
No body
/getQueue
{"host":"github.com","owner":"trunk-io","name":"trunk"}
The branch the merge queue will be merging PRs into
main
Upload impacted targets for the PR and its current SHA. Used specifically when running the queue in Parallel mode
/setImpactedTargets
{"host":"github.com","owner":"trunk-io","name":"trunk"}
{"number":1,"sha":"1234567890abcdef"}
The branch the merge queue will be merging PRs into
main
No body