Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions merge-queue/administration/advanced-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,35 @@ For detailed guidance on using this setting effectively, see [Bisection Testing

***

## Required status checks

Configure which CI status checks must pass before a PR can merge through the queue. You can set required statuses directly in the Trunk UI using the CI job selector, giving you more control than relying solely on GitHub branch protection rules.

### How to configure

1. Navigate to **Settings** > **Repositories** > your repository > **Merge Queue**
2. Scroll to the **Required Status Checks** section
3. Use the CI job selector to pick which status checks must pass
4. The selector shows CI jobs that have been seen on recent PRs

### How required statuses are resolved

Trunk determines required status checks from one of three sources, in this priority order:

| Source | When used |
| --- | --- |
| **Trunk UI** (this setting) | When you explicitly select status checks in the Merge Queue settings |
| **`.trunk/trunk.yaml`** | When using [push-triggered mode](../getting-started/configure-ci-status-checks.md#if-using-push-triggered-mode) with `required_statuses` defined |
| **GitHub branch protection** | Default — uses the required status checks from your branch protection rules or rulesets |

When required statuses are configured in the Trunk UI, they override both `.trunk/trunk.yaml` and GitHub branch protection for the merge queue. This is useful when your branch protection rules include checks that shouldn't gate the merge queue, or when you want the merge queue to require different checks than direct merges.

{% hint style="info" %}
Required status checks are per-queue. If you have [multiple queues per repository](#multiple-queues-per-repository), each queue can have its own set of required statuses.
{% endhint %}

***

## Delete Merge Integration

{% hint style="danger" %}
Expand Down
2 changes: 1 addition & 1 deletion merge-queue/getting-started/configure-ci-status-checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Your existing pull request-triggered CI workflows will automatically run when Trunk creates draft pull requests to test changes. **No additional configuration is required.**

Trunk will wait for the same required status checks configured in your branch protection rules (either via Classic rules or Rulesets) before merging.
Trunk will wait for the same required status checks configured in your branch protection rules (either via Classic rules or Rulesets) before merging. You can also override this by configuring required statuses directly in the [Trunk Merge Queue settings](../administration/advanced-settings.md#required-status-checks).

See GitHub's documentation for configuring required status checks:

Expand Down
Loading