Using the Merge UI
The web app offers detailed information about pull requests, the state of the merge queue, and more.
The web app can be found at app.trunk.io.
Queue Overview
The queue tab provides an overview of the work done by Merge. Merged, testing, and pending PRs should all appear here. Clicking on a row will show the history of that item: click "view more history" to get a better understanding of the item.
![](https://docs.trunk.io/~gitbook/image?url=https%3A%2F%2F577236045-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F61Ep9MrYBkJa0Yq3zS1s%252Fuploads%252FnJbnA6lfsOCasLYFGPP9%252Fimage.png%3Falt%3Dmedia%26token%3Dcfc71c35-5817-4410-ae72-068da9848060&width=768&dpr=4&quality=100&sign=a66c5ef9&sv=1)
Pull Request Details
The PR details shows information about a PR, including a link to the PR in GitHub, the history of the PR within Trunk Merge Queue, and what must be done before a PR can be admitted to the queue for PRs that have not entered the queue yet.
When a PR has not been admitted to the queue yet, Trunk Merge Queue waits for:
Impacted targets to be uploaded for the PRs current SHA (
Parallel
mode only)The PR to be mergeable according to GitHub. If the PR is not mergeable yet, this most likely means that the PR is not meeting all branch protection rules you have set (for example, not all required status checks have passed yet) or has a merge conflict with the target branch
The target branch of the pull request to match the branch that merge queue merges into
![](https://docs.trunk.io/~gitbook/image?url=https%3A%2F%2F577236045-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F61Ep9MrYBkJa0Yq3zS1s%252Fuploads%252FW9ZvWPt32csGPctP6BTg%252Fimage.png%3Falt%3Dmedia%26token%3D42077524-20e9-4eb2-8f67-62caec4a6b2f&width=768&dpr=4&quality=100&sign=b7d3ffb5&sv=1)
In the screenshot above the PR's base branch matches the Merge branch, but the impacted targets are not yet uploaded, but it is not mergable on GitHub yet.
The PR Details panel has a dropdown menu (labeled "...") with actions. From this menu you can:
Remove a PR from the queue. If the PR is "Not Ready", then it will cancel it, preventing it from going into the queue until it is re-queued. If the PR is currently in the queue, it will be removed from the queue, which will restart all PRs that depended on it
Re-queue a PR if it is currently not in the queue
Download any impacted targets that have been uploaded for the PR (uploading impacted targets is only required for Parallel mode, but this option will still show regardless of mode if impacted targets have been uploaded for the PR)
![](https://docs.trunk.io/~gitbook/image?url=https%3A%2F%2F577236045-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F61Ep9MrYBkJa0Yq3zS1s%252Fuploads%252FOgbgOUiFMB9xdForkfYT%252Fimage.png%3Falt%3Dmedia%26token%3Dfa1727a2-c209-478a-a021-d6a404e448e7&width=768&dpr=4&quality=100&sign=f0e1e41e&sv=1)
The "Remove from queue" action will remove the PR from the merge queue. If the PR is "Not Ready", then it will cancel it, preventing it from going into the queue until it is re-queued. If the PR is currently in the queue, it will be removed from the queue, which will restart all PRs that depended on it:
PR Details
A PR details page will display a complete history of a PR - state transitions, associated test runs, a visual of what's currently in the Merge Queue, etc. The same dropdown menu described above (labeled "...") is on this page as well.
![](https://docs.trunk.io/~gitbook/image?url=https%3A%2F%2F577236045-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F61Ep9MrYBkJa0Yq3zS1s%252Fuploads%252FNDqevRCFNyTfGLaQpf6w%252Fimage.png%3Falt%3Dmedia%26token%3Db44b821a-06e6-4613-9cb0-46579ac177fd&width=768&dpr=4&quality=100&sign=a1155247&sv=1)
Failures
A tabulated view of all the items that have failed in the Merge Queue, e.g. due to testing.
![](https://docs.trunk.io/~gitbook/image?url=https%3A%2F%2F577236045-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F61Ep9MrYBkJa0Yq3zS1s%252Fuploads%252FfQB1nfbyNylgfa038E5M%252Fimage.png%3Falt%3Dmedia%26token%3D897aa360-a789-468e-949a-adfe1ff13ed9&width=768&dpr=4&quality=100&sign=53e222ab&sv=1)
Manually Restarting Failed PRs
Trunk Merge Queue will automatically restart failed PRs when in can under certain conditions (see PR states). Since the restart is usually from a failed PR being removed form the queue, other PRs behind it will also be restarted. If you want to manually restart a PR, you can restart it in place using the Restart tests option of the PR dropdown (labeled "...")
![](https://docs.trunk.io/~gitbook/image?url=https%3A%2F%2F577236045-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F61Ep9MrYBkJa0Yq3zS1s%252Fuploads%252FzRob0488aQHZ0r4uSePq%252Fpr-restart-menu.png%3Falt%3Dmedia%26token%3D6179b013-88cf-4a1d-80c7-e1d47d127876&width=768&dpr=4&quality=100&sign=fbe83d8a&sv=1)
There are a couple of reasons you might want to manually restart a PR. First, if a PR ends up in the PENDING_FAILURE state because of something transient like a CI runner disconnecting or flakey tests, you can restart the PR right away instead of waiting for an PRs in front of it to pass or fail.
Another reason to restart a PR is if the proper tests don't get kicked off due to a failure in the CI system. For example, if GitHub has an outage and is not triggering workflows or actions properly.
Queue Visualization
The view of all current PRs being tested by Trunk Merge Queue and their respective queues. Each node shown is a pull request, and each edge indicates that the pull request is testing with the item above and depends on it. All edges point towards the target branch; as items merge, the affected queues restructure. If running in Single
mode, the this will be a single line showing the testing and merging process.
![](https://docs.trunk.io/~gitbook/image?url=https%3A%2F%2F577236045-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F61Ep9MrYBkJa0Yq3zS1s%252Fuploads%252FOoKah5Ecn70I6qY6kg1O%252Fimage.png%3Falt%3Dmedia%26token%3Dc1cf9090-950b-44a9-a787-21320d17b028&width=768&dpr=4&quality=100&sign=615f3b89&sv=1)
You can click on any shown PR to navigate to the details page for that PR.
Last updated