API reference
Public Trunk Merge Queue API. All requests should be authenticated.
Pull Request Endpoints
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
Queue Endpoints
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
The branch that the merge queue is targeting.
The desired state of the merge queue. Valid values: RUNNING, PAUSED, DRAINING.
The number of PRs or batches of PRs the queue can test at once.
The number of tests the merge queue can run when bisecting a batch to figure out what PR in the batch failed.
The maximum number of minutes the merge queue will wait for tests to complete before timing out.
When enabled, PRs that fail tests will wait for the specified number of PRs below them to finish testing before getting kicked from the queue. This works best with optimistic merging enabled.
When enabled, a PR that passes tests will also cause any PR ahead of it in the queue to also get marked as passing, since tests have passed with those commits.
Enable or disable batching. When enabled, the merge queue will group PRs into batches for testing.
The maximum number of minutes the merge queue will wait to collect PRs into a batch before starting tests.
The minimum number of PRs required to form a batch.
The queue mode. 'single' processes PRs one at a time. 'parallel' processes multiple PRs concurrently.
Whether or not Merge Queue will post GitHub comments on PRs.
Whether or not users are allowed to submit PRs to the merge queue by commenting /trunk merge.
Whether or not the merge queue will create PRs for its testing branches, allowing CI to run on them.
Allow PRs to merge directly into the target branch if they're up to date with the target branch when submitting them to the queue instead of running tests on them in the merge queue.
The optimization strategy for the merge queue. 'OFF' disables optimizations. 'BISECTION_SKIP_REDUNDANT_TESTS' uses bisection and skips redundant tests.
The Git merge method used when merging PRs into the target branch. Valid values: MERGE_COMMIT, SQUASH, REBASE.
Post a GitHub status check on PRs with the status of the PR in the merge queue.
Allows setting the statuses that must pass when the merge queue performs tests in order for a PR to merge. Setting the statuses here will override GitHub branch protection settings or your .trunk/trunk.yaml.
Removes a manually specified set of required statuses. After this, the statuses that must pass when the merge queue performs testing will be pulled from either GitHub branch protection settings or your .trunk/trunk.yaml.
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
Last updated

