# Trunk Platform > Trunk is building the outer loop platform for engineers and coding agents. Make software delivery cheaper, faster, and more reliable with Merge Queue, Flaky Tests, CI Intelligence, and Dynamic CI. Cut compute costs, eliminate wasted work, and keep pull requests moving as code volume grows. - [Trunk Platform](https://docs.trunk.io/index.md): Ship Software as Fast as AI Writes It - [Overview](https://docs.trunk.io/merge-queue/merge-queue.md): Trunk Merge Queue runs unrelated PRs in independent test lanes instead of one serial line, keeps merging when a flaky test would stall the queue, and batches changes to cut CI runs. - [Getting Started](https://docs.trunk.io/merge-queue/getting-started.md): Set up Trunk Merge Queue for your repository by installing the GitHub App, creating a queue, and configuring branch protection. - [Install and create your queue](https://docs.trunk.io/merge-queue/getting-started/install-and-create-your-queue.md): Install the Trunk GitHub App, connect your repository, and create your first merge queue. - [Configure branch protection](https://docs.trunk.io/merge-queue/getting-started/configure-branch-protection.md): Set up GitHub branch protection so Trunk Merge Queue can admit, test, and merge pull requests through your protected branch. - [Configure CI status checks](https://docs.trunk.io/merge-queue/getting-started/configure-ci-status-checks.md): Make sure your CI runs whenever Trunk Merge Queue tests a pull request. - [Test your setup](https://docs.trunk.io/merge-queue/getting-started/test-your-setup.md): Verify your Trunk Merge Queue installation by submitting a test PR and confirming it merges automatically. - [GitLab](https://docs.trunk.io/merge-queue/getting-started/gitlab.md): Set up Trunk Merge Queue for a GitLab project by connecting a GitLab group, creating a queue, and configuring protected branches and CI pipelines. - [Migrate from GitHub Merge Queue](https://docs.trunk.io/merge-queue/migrating-from-github-merge-queue.md): Switch from GitHub's native merge queue to Trunk Merge Queue with minimal disruption to your workflow. - [Optimizations](https://docs.trunk.io/merge-queue/optimizations.md): Advanced features that increase merge throughput, handle flaky tests, and prioritize critical PRs in Trunk Merge Queue. - [Predictive testing](https://docs.trunk.io/merge-queue/optimizations/predictive-testing.md): Test PRs against the projected future state of your main branch to catch conflicts before they reach production. - [Anti-flake protection](https://docs.trunk.io/merge-queue/optimizations/anti-flake-protection.md): Combine optimistic merging and pending failure depth to prevent flaky test failures from blocking the merge queue. - [Parallel queues](https://docs.trunk.io/merge-queue/optimizations/parallel-queues.md): Create dynamic parallel queues to reduce queue time - [Bazel](https://docs.trunk.io/merge-queue/optimizations/parallel-queues/bazel.md): Instructions for enabling dynamic parallel queues powered by your bazel graph - [Nx](https://docs.trunk.io/merge-queue/optimizations/parallel-queues/nx.md): Instructions for enabling dynamic parallel queues powered by your Nx graph - [API](https://docs.trunk.io/merge-queue/optimizations/parallel-queues/api.md): Upload impacted targets, read testing details, and handle the common gotchas - [Upload impacted targets from GitHub Actions](https://docs.trunk.io/merge-queue/optimizations/parallel-queues/github-actions.md): Authenticate a GitHub Actions job to the v2 API with no Trunk secret, including fork pull requests in public repositories. - [Batching](https://docs.trunk.io/merge-queue/optimizations/batching.md): Test multiple PRs together as a single unit to increase merge throughput and reduce CI costs. - [Priority merging](https://docs.trunk.io/merge-queue/optimizations/priority-merging.md): Fast-track critical PRs like hotfixes and security patches to the front of the merge queue. - [Optimistic merging](https://docs.trunk.io/merge-queue/optimizations/optimistic-merging.md): Merge PRs faster by using passing test results from later PRs in the queue to validate earlier ones. - [Pending failure depth](https://docs.trunk.io/merge-queue/optimizations/pending-failure-depth.md): Keep failed PRs in the queue while successor PRs test, giving transient failures a chance to pass. - [Direct merge to main](https://docs.trunk.io/merge-queue/optimizations/direct-merge-to-main.md): Skip redundant retesting and merge PRs directly when they are already tested against the current tip of main. - [Using the Queue](https://docs.trunk.io/merge-queue/using-the-queue/index.md): Daily operations for working with Trunk Merge Queue. - [Submit and cancel pull requests](https://docs.trunk.io/merge-queue/using-the-queue/reference.md): Covers the journey of a PR from submission through various states to completion - [Stacked pull requests](https://docs.trunk.io/merge-queue/using-the-queue/stacked-pull-requests.md): Merge a chain of dependent pull requests as a single unit - [Monitor queue status](https://docs.trunk.io/merge-queue/using-the-queue/monitor-queue-status.md): View real-time queue activity, PR status, and test results in the Trunk Merge Queue dashboard. - [Handle failed pull requests](https://docs.trunk.io/merge-queue/using-the-queue/handle-failed-pull-requests.md): Understand why PRs fail in the merge queue and how to fix and resubmit them. - [Emergency pull requests](https://docs.trunk.io/merge-queue/using-the-queue/emergency-pull-requests.md): Bypass the merge queue entirely for true emergencies. Use with caution as this can invalidate in-progress queue tests. - [Automate the queue with the API](https://docs.trunk.io/merge-queue/using-the-queue/api.md): Submit pull requests, wait for merges, and read queue order with the API. - [Overview](https://docs.trunk.io/merge-queue/using-the-queue/direct-to-queue.md): Admins can send a pull request directly to Merge Queue even when GitHub branch protection rules aren't satisfied. The PR is still tested; only the final merge bypasses protection. - [Configuration](https://docs.trunk.io/setup-and-administration/trunk-sudo-app.md): Instrucions to setup and configure the Direct-to-Queue capability of the Merge Queue. - [Integration for Slack](https://docs.trunk.io/merge-queue/integration-for-slack.md): Send merge queue updates to multiple Slack channels and receive personal DM notifications — all powered by the Trunk Slack app. - [Browser Extensions](https://docs.trunk.io/merge-queue/browser-extensions.md): Submit, cancel, and track Trunk Merge Queue pull requests directly from GitHub with the Trunk browser extension for Chrome and Firefox. Optionally shows Flaky Tests results inline on the PR page. - [CLI reference](https://docs.trunk.io/merge-queue/reference/merge-queue-cli-reference.md): Trunk CLI commands for submitting, canceling, pausing, and resuming the merge queue. - [Webhooks](https://docs.trunk.io/merge-queue/webhooks.md): Reference for Trunk Merge Queue webhook events, lifecycle, and payload behavior. - [API reference](https://docs.trunk.io/links/merge-queue-api.md) - [Administration](https://docs.trunk.io/merge-queue/administration/index.md): Configuration, integrations, and analytics for queue administrators. - [Settings and configurations](https://docs.trunk.io/merge-queue/administration/advanced-settings.md): Explanation of settings for states, timeouts, concurrency, and branch protection. - [Terraform Provider](https://docs.trunk.io/merge-queue/administration/terraform.md): Manage Trunk Merge Queue configuration as code using the trunk-io/trunk Terraform provider. - [Migrate to Terraform provider 2.0](https://docs.trunk.io/merge-queue/administration/terraform-migrate-to-2.md): Upgrade the trunk-io/trunk Terraform provider from 1.x to 2.0, and optionally move from the organization API token to an API key. - [Metrics and monitoring](https://docs.trunk.io/merge-queue/administration/metrics.md): Monitor Trunk Merge Queue throughput, wait times, and health with built-in metrics. - [Reference](https://docs.trunk.io/merge-queue/reference/index.md): Technical documentation and troubleshooting resources. - [FAQ](https://docs.trunk.io/merge-queue/reference/common-problems.md): Answers to common questions about Trunk Merge Queue behavior and the PR lifecycle. - [Troubleshooting](https://docs.trunk.io/merge-queue/reference/troubleshooting.md): Common Trunk Merge Queue issues and how to fix them, including permission errors, stuck PRs, and missing status checks. - [GitHub API failures](https://docs.trunk.io/merge-queue/reference/github-api-failures.md): What to do when a PR fails to merge because of GitHub server errors, rate limits, or rejected merge calls. - [Changelog](https://docs.trunk.io/merge-queue/changelog.md): Recent updates to Trunk Merge Queue. - [Overview](https://docs.trunk.io/flaky-tests/overview.md): Detect, quarantine, and eliminate flaky tests from your codebase - [Test Collections](https://docs.trunk.io/flaky-tests/test-collections.md): Group tests into named collections, each with its own flake detection, quarantining, and ticketing settings. - [Dashboard](https://docs.trunk.io/flaky-tests/dashboard.md): Learn to find flaky tests and understand their impact using the Flaky Tests dashboard - [Getting Started](https://docs.trunk.io/flaky-tests/get-started/index.md): Set up Trunk Flaky Tests by creating a test collection, configuring test result output, uploading from CI, and enabling flake detection monitors. - [Test frameworks](https://docs.trunk.io/flaky-tests/get-started/frameworks.md): Guides for generating Trunk-compatible test results from various test frameworks - [Android](https://docs.trunk.io/flaky-tests/get-started/frameworks/android.md): A guide for generating Trunk-compatible test reports for Android projects - [Bazel](https://docs.trunk.io/flaky-tests/get-started/frameworks/bazel.md): A guide for generating Trunk-compatible test reports with Bazel - [Behave](https://docs.trunk.io/flaky-tests/get-started/frameworks/behave.md): A guide for generating Trunk-compatible test reports for Behave - [cargo-nextest](https://docs.trunk.io/flaky-tests/get-started/frameworks/rust.md): A guide for generating Trunk-compatible test reports for Rust - [Cypress](https://docs.trunk.io/flaky-tests/get-started/frameworks/cypress.md): A guide for generating Trunk-compatible test reports for Cypress tests - [Dart Test](https://docs.trunk.io/flaky-tests/get-started/frameworks/dart-test.md): A guide for generating Trunk-compatible test reports for Dart tests - [Go](https://docs.trunk.io/flaky-tests/get-started/frameworks/gotestsum.md): A guide for generating Trunk-compatible test reports for Go tests - [GoogleTest](https://docs.trunk.io/flaky-tests/get-started/frameworks/googletest.md): A guide for generating Trunk-compatible test reports for GoogleTest - [Gradle](https://docs.trunk.io/flaky-tests/get-started/frameworks/gradle.md): A guide for generating Trunk-compatible test reports for Gradle - [Jasmine](https://docs.trunk.io/flaky-tests/get-started/frameworks/jasmine.md): A guide for generating Trunk-compatible test reports for Jasmine tests - [Jest](https://docs.trunk.io/flaky-tests/get-started/frameworks/jest.md): A guide for generating Trunk-compatible test reports for Jest tests - [Karma](https://docs.trunk.io/flaky-tests/get-started/frameworks/karma.md): A guide for generating Trunk-compatible test reports for Karma tests - [Kotest](https://docs.trunk.io/flaky-tests/get-started/frameworks/kotest.md): A guide for generating Trunk-compatible test reports for Kotest - [Maven](https://docs.trunk.io/flaky-tests/get-started/frameworks/maven.md): A guide for generating Trunk-compatible test reports for Maven - [minitest](https://docs.trunk.io/flaky-tests/get-started/frameworks/minitest.md): A guide for generating Trunk-compatible test reports for minitest - [Mocha](https://docs.trunk.io/flaky-tests/get-started/frameworks/mocha.md): A guide for generating Trunk-compatible test reports for Mocha - [Nightwatch](https://docs.trunk.io/flaky-tests/get-started/frameworks/nightwatch.md): A guide for generating Trunk-compatible test reports for Nightwatch - [NUnit](https://docs.trunk.io/flaky-tests/get-started/frameworks/nunit.md): A guide for generating Trunk-compatible test reports for NUnit - [Pest](https://docs.trunk.io/flaky-tests/get-started/frameworks/pest.md): A guide for generating Trunk-compatible test reports for Pest - [PHPUnit](https://docs.trunk.io/flaky-tests/get-started/frameworks/phpunit.md): A guide for generating Trunk-compatible test reports for PHPUnit - [Playwright](https://docs.trunk.io/flaky-tests/get-started/frameworks/playwright.md): A guide for generating Trunk-compatible test reports for Playwright - [Pytest](https://docs.trunk.io/flaky-tests/get-started/frameworks/pytest.md): A guide for generating Trunk-compatible test reports for Pytest - [Robot Framework](https://docs.trunk.io/flaky-tests/get-started/frameworks/robot-framework.md): A guide for generating Trunk-compatible test reports for Robot Framework - [RSpec](https://docs.trunk.io/flaky-tests/get-started/frameworks/rspec/index.md): A guide for generating Trunk-compatible test reports for RSpec using Trunk's RSpec plugin - [RSpec (Manual Uploads)](https://docs.trunk.io/flaky-tests/get-started/frameworks/rspec/manual-uploads.md): A guide for generating Trunk-compatible test reports for RSpec without using Trunk's RSpec plugin - [Swift Testing](https://docs.trunk.io/flaky-tests/get-started/frameworks/swift-testing.md): A guide for generating Trunk-compatible test reports with Swift Testing - [Testplan](https://docs.trunk.io/flaky-tests/get-started/frameworks/testplan.md): A guide for generating Trunk-compatible test reports for Testplan - [Vitest](https://docs.trunk.io/flaky-tests/get-started/frameworks/vitest.md): A guide for generating Trunk-compatible test reports with Vitest - [XCTest](https://docs.trunk.io/flaky-tests/get-started/frameworks/xctest.md): A guide for generating Trunk-compatible test reports for XCode and xcodebuild - [Other Test Frameworks](https://docs.trunk.io/flaky-tests/get-started/frameworks/other-test-frameworks.md): A guide for generating Trunk-compatible test reports with other test frameworks - [CI Providers](https://docs.trunk.io/flaky-tests/get-started/ci-providers.md): You can easily integrate Flaky Tests from any CI Provider - [Atlassian Bamboo](https://docs.trunk.io/flaky-tests/get-started/ci-providers/atlassian-bamboo.md): Configure Atlassian Bamboo to upload test results to Trunk Flaky Tests - [Azure DevOps Pipelines](https://docs.trunk.io/flaky-tests/get-started/ci-providers/azure-devops-pipelines.md): Upload test results from Azure DevOps Pipelines to Trunk for flaky test detection. - [BitBucket Pipelines](https://docs.trunk.io/flaky-tests/get-started/ci-providers/bitbucket-pipelines.md): Upload test results from Bitbucket Pipelines to Trunk for flaky test detection. - [Buildkite](https://docs.trunk.io/flaky-tests/get-started/ci-providers/buildkite.md): Configure Buildkite jobs to upload test results to Trunk Flaky Tests - [CircleCI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/circleci.md): Configure CircleCI jobs to upload test results to Trunk Flaky Tests - [Depot CI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/depot-ci.md): Configure Depot CI to upload test results to Trunk Flaky Tests - [Drone CI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/droneci.md): Configure Flaky Tests using Drone CI - [Evergreen](https://docs.trunk.io/flaky-tests/get-started/ci-providers/evergreen.md): Configure Evergreen to upload test results to Trunk Flaky Tests - [GitHub Actions](https://docs.trunk.io/flaky-tests/get-started/ci-providers/github-actions.md): Configure Flaky Tests detection using a GitHub Action - [GitLab](https://docs.trunk.io/flaky-tests/get-started/ci-providers/gitlab.md): Configure Flaky Tests using GitLab CI - [Google Cloud Build](https://docs.trunk.io/flaky-tests/get-started/ci-providers/google-cloud-build.md): Configure Google Cloud Build to upload test results to Trunk Flaky Tests - [Jenkins](https://docs.trunk.io/flaky-tests/get-started/ci-providers/jenkins.md): Configure Flaky Tests using Jenkins - [Semaphore CI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/semaphoreci.md): Configure Flaky Tests using Semaphore CI - [Travis CI](https://docs.trunk.io/flaky-tests/get-started/ci-providers/travisci.md): Configure Flaky Tests using Travis CI - [Other CI Providers](https://docs.trunk.io/flaky-tests/get-started/ci-providers/otherci.md): Configure Flaky Tests using any CI Provider - [Multiple Repositories and Forks](https://docs.trunk.io/flaky-tests/get-started/multiple-repositories.md): Learn how Trunk identifies repositories, track tests across forks and multiple repositories, and enable test uploads from fork PR workflows. - [Uploads from Forked Pull Requests](https://docs.trunk.io/flaky-tests/get-started/fork-pr-uploads.md): Upload test results and apply quarantining on pull requests from forks, which can't read your repository secrets or your Trunk API token. - [Flake Detection](https://docs.trunk.io/flaky-tests/detection/index.md): Learn how Trunk detects and labels flaky and broken tests - [Pass-on-Retry Monitor](https://docs.trunk.io/flaky-tests/detection/pass-on-retry-monitor.md): Detect tests that fail then pass on retry within the same commit - [Failure Rate Monitor](https://docs.trunk.io/flaky-tests/detection/failure-rate-monitor.md): Detect flaky or broken tests based on failure rate over a configurable time window - [Failure Count Monitor](https://docs.trunk.io/flaky-tests/detection/failure-count-monitor.md): Detect flaky or broken tests as soon as they accumulate a configured number of failures - [New Test Monitor](https://docs.trunk.io/flaky-tests/detection/new-test-monitor.md): Track recently added tests and apply labels until they have an established history. - [Skipped Test Monitor](https://docs.trunk.io/flaky-tests/detection/skipped-test-monitor.md): Detect tests that are consistently being skipped and apply labels to surface them for review. - [Slow Test Monitor](https://docs.trunk.io/flaky-tests/detection/slow-test-monitor.md): Flag tests whose duration percentile exceeds a configured threshold. - [Timeout Inflation Monitor](https://docs.trunk.io/flaky-tests/detection/timeout-inflation-monitor.md): Flag tests whose failure times sit far above their passing times, exposing timeouts that have ratcheted up beyond what the test actually needs. - [Flag as Flaky](https://docs.trunk.io/flaky-tests/detection/flag-as-flaky.md): Manually mark a test as flaky from the test detail page - [The Importance of PR Test Results](https://docs.trunk.io/flaky-tests/detection/the-importance-of-pr-test-results.md): Why uploading test results from pull requests is required for accurate flaky test detection, quarantining, and impact measurement. - [Infrastructure Failure Protection](https://docs.trunk.io/flaky-tests/detection/infrastructure-failure-protection.md): Prevent false Trunk Flaky Tests detections during CI outages and infrastructure failures. - [Flaky test management](https://docs.trunk.io/flaky-tests/management/index.md): Organize, triage, and coordinate follow-up for detected flaky tests. - [Managing detected flaky tests](https://docs.trunk.io/flaky-tests/management/managing-detected-flaky-tests.md): A step-by-step guide for building an automated process to manage detected flaky tests. - [Test Labels](https://docs.trunk.io/flaky-tests/management/test-labels.md): Organize and categorize test cases with organization-scoped labels. - [Pull request comments](https://docs.trunk.io/flaky-tests/management/github-pull-request-comments.md): Flaky Tests provides summary analytics about tests running on Pull Requests - [Ticketing](https://docs.trunk.io/flaky-tests/management/ticketing.md): Triage your flaky tests faster by creating automatically assigned and labeled tickets in your ticketing system - [Automatic ticketing](https://docs.trunk.io/flaky-tests/management/ticketing/automatic-ticketing.md): Automatically create, reopen, and close tickets as your tests change status — no webhooks or custom automation required - [Asana integration](https://docs.trunk.io/flaky-tests/management/ticketing/asana-integration.md): Triage your flaky tests faster by creating automatically assigned and labeled tasks with the Asana integration - [Jira integration](https://docs.trunk.io/flaky-tests/management/ticketing/jira-integration.md): Triage your flaky tests faster by creating automatically assigned and labeled tickets with the Jira integration - [Jira Data Center integration](https://docs.trunk.io/flaky-tests/management/ticketing/jira-data-center-integration.md): Create, link, and automate tickets for flaky tests in your self-managed Jira Data Center instance - [Linear integration](https://docs.trunk.io/flaky-tests/management/ticketing/linear-integration.md): Triage your flaky tests faster by creating automatically assigned and labeled tickets with the Linear integration - [Other ticketing platforms](https://docs.trunk.io/flaky-tests/management/ticketing/other-ticketing-platforms.md): Triage your flaky tests faster by manually creating tickets from generated markdown - [Quarantining](https://docs.trunk.io/flaky-tests/quarantining/index.md): Mitigate impact of known flaky tests by isolating them at run time - [Quarantine Service Availability](https://docs.trunk.io/flaky-tests/quarantining/quarantine-service-availability.md): How Trunk Analytics CLI handles quarantine service outages without compromising your CI pipeline. - [Webhooks](https://docs.trunk.io/flaky-tests/webhooks/index.md): Use webhooks to automate custom flaky test workflows - [Integration for Slack](https://docs.trunk.io/flaky-tests/webhooks/slack-integration.md): Learn how to use flaky test webhooks to power Slack notifications - [Microsoft Teams integration](https://docs.trunk.io/flaky-tests/webhooks/microsoft-teams-integration.md): Send flaky test alerts to Microsoft Teams using Trunk Flaky Tests webhooks. - [GitHub Issues integration](https://docs.trunk.io/flaky-tests/webhooks/github-issues-integration.md): Learn how to automatically create GitHub Issues with Flaky Tests webhooks - [Linear integration](https://docs.trunk.io/flaky-tests/webhooks/linear-integration.md): Learn how to automatically create Linear issues with Flaky Tests webhooks - [Jira integration](https://docs.trunk.io/flaky-tests/webhooks/jira-integration.md): Learn how to automatically create Jira issues with Flaky Test webhooks - [Alert When a Test Escalates](https://docs.trunk.io/flaky-tests/recipes/alert-on-test-escalation.md): Send Slack alerts when a test gets worse, not just the first time it's flagged - [Agents](https://docs.trunk.io/flaky-tests/agents/index.md): Use agents and AI workflows to investigate and fix flaky tests and CI failures. - [Fix Flaky Tests with an Agent](https://docs.trunk.io/flaky-tests/agents/autofix-flaky-tests.md): Give a coding agent the context it needs to fix a flaky test, from Trunk's API. - [Autofix CI Failures](https://docs.trunk.io/flaky-tests/agents/autofix-ci-failures.md): Automatically investigate and fix CI failures with Trunk's autofix agent. - [MCP reference](https://docs.trunk.io/links/mcp-reference.md) - [Reference](https://docs.trunk.io/flaky-tests/reference/index.md): Reference documentation for Flaky Tests APIs, CLI commands, and MCP tools. - [CLI Reference](https://docs.trunk.io/flaky-tests/reference/cli-reference.md): CLI tool for uploading test results to Trunk from CI, enabling flaky test detection and quarantining. - [API reference](https://docs.trunk.io/links/flaky-tests-api.md) - [Use MCP Server](https://docs.trunk.io/flaky-tests/reference/mcp-reference.md): Use the Trunk MCP server from your IDE or AI application to access flaky test insights and configure test uploads - [Configuration](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/index.md): Configure your AI application to connect to the Trunk MCP server for flaky test insights and setup assistance. - [Cursor (IDE)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/cursor-ide.md): Add Trunk's MCP Server to Cursor - [GitHub Copilot (IDE)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/github-copilot-ide.md): Add Trunk's MCP Server to GitHub Copilot - [Claude Code (CLI)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/claude-code-cli.md): Add Trunk's MCP Server to Claude Code - [Claude Code Plugin](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/claude-code-plugin.md): Install the Trunk plugin for Claude Code - [Gemini (CLI)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/gemini-cli.md): Add Trunk's MCP Server to Gemini - [Bearer Authentication](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/bearer-auth.md): Add Trunk's MCP Server via Bearer Authentication - [Search Test](https://docs.trunk.io/flaky-tests/reference/mcp-reference/search-test.md): MCP tool reference: search-test - [List Test Collections](https://docs.trunk.io/flaky-tests/reference/mcp-reference/list-test-collections.md): MCP tool reference: list-test-collections - [Set up test uploads](https://docs.trunk.io/flaky-tests/reference/mcp-reference/set-up-test-uploads.md): MCP tool reference: setup-trunk-uploads - [Investigate CI Failure](https://docs.trunk.io/flaky-tests/reference/mcp-reference/investigate-ci-failure.md): MCP tool reference: investigate-ci-failure - [Changelog](https://docs.trunk.io/flaky-tests/changelog.md): Recent updates to Trunk Flaky Tests. - [Trunk Dynamic CI](https://docs.trunk.io/ci/dynamic-ci.md): Run only the CI jobs a pull request needs, decided from your own CI history. - [Getting started](https://docs.trunk.io/ci/dynamic-ci/getting-started/index.md): Set up Trunk, add Dynamic CI to your CI provider, then turn on enforcement. - [Merge queues](https://docs.trunk.io/ci/dynamic-ci/merge-queue.md): How Dynamic CI behaves when your merge queue tests a pull request. - [Force Dynamic CI jobs to run from GitHub, Trunk, or the API](https://docs.trunk.io/ci/dynamic-ci/force-run.md): Use the Trunk browser extension for Chrome and Firefox, the Trunk web app, or the API to mark a Dynamic CI job as Force Run on a pull request. - [GitHub Actions](https://docs.trunk.io/ci/dynamic-ci/getting-started/github-actions.md): Adding Dynamic CI to your existing GitHub Actions workflows - [BuildKite](https://docs.trunk.io/ci/dynamic-ci/getting-started/buildkite.md): Add the Dynamic CI plugin to a Buildkite pipeline. - [Configure how Dynamic CI schedules each CI job](https://docs.trunk.io/ci/dynamic-ci/configuration/jobs.md): Find a job in the Trunk app and set its schedule for pull requests and the merge queue. - [Skip single variations of a matrix job](https://docs.trunk.io/ci/dynamic-ci/configuration/matrices.md): Opt a matrix job in to being decided variation by variation, and choose the keys that group it. - [Signals Dynamic CI uses to decide](https://docs.trunk.io/ci/dynamic-ci/configuration/signals.md): The kinds of evidence Dynamic CI combines into a run or skip verdict for each job. - [Path filters](https://docs.trunk.io/ci/dynamic-ci/configuration/path-filters.md): Tell Dynamic CI which changed files are relevant to each job. - [Roll out Dynamic CI with Learning and Enforced modes](https://docs.trunk.io/ci/dynamic-ci/configuration/mode.md): Choose Learning or Enforced mode for each repository, and use the Learning mode allow list to enforce Dynamic CI for selected engineers or GitHub labels. - [Dynamic CI Action Reference](https://docs.trunk.io/ci/dynamic-ci/dynamic-ci-action-reference.md): Inputs, outputs, and fail-open behavior of the trunk-io/dynamic-ci GitHub Action. - [FAQ](https://docs.trunk.io/ci/dynamic-ci/faq.md): Reliability, forks, and other common questions about Dynamic CI. - [Trunk Runners](https://docs.trunk.io/runners.md): Fast, reliable, affordable runners for GitHub Actions. - [Get started](https://docs.trunk.io/runners/getting-started.md): Turn on Trunk Runners, choose your machine size, and run your first job. - [Pricing](https://docs.trunk.io/runners/pricing.md): Usage-based pricing for compute, memory, and storage. - [The runs-on label](https://docs.trunk.io/runners/actions/runs-on.md): One label selects a Trunk runner and sets its options. - [Machine sizes](https://docs.trunk.io/runners/actions/sizes.md): Choose CPUs with size and memory per CPU with memory. - [Templates](https://docs.trunk.io/runners/actions/templates.md): Prebake your setup steps into a Trunk Runner template so GitHub Actions jobs start ready and run faster. - [Caching](https://docs.trunk.io/runners/cache/index.md): The shared cache lets jobs reuse build results, so they finish faster. - [Cache settings](https://docs.trunk.io/runners/cache/settings.md): Configure the Trunk Runners shared cache for your organization or per repository, including which branches a job can read cache from. - [Quota and runner priority](https://docs.trunk.io/runners/settings/limits-and-priority.md): How the Trunk Runners CPU quota works and how to mark branches as priority so their jobs start first. - [runs-on label reference](https://docs.trunk.io/runners/reference/runs-on-grammar.md): The full Trunk Runners runs-on label format in one table, with examples. - [Account Setup](https://docs.trunk.io/setup-and-administration/connecting-to-trunk.md): Create your Trunk account and connect your GitHub organization to get started. - [Managing your Organization](https://docs.trunk.io/setup-and-administration/managing-your-organization.md): Manage members, roles, and settings for your Trunk organization. - [Support](https://docs.trunk.io/setup-and-administration/support.md): How to reach Trunk for help, including enterprise support SLAs and response-time commitments. - [Billing and plans](https://docs.trunk.io/setup-and-administration/billing.md): Trunk's Free, Team, and Enterprise plan pricing and how usage is calculated. - [Security](https://docs.trunk.io/setup-and-administration/security.md): The security and privacy of your Trunk Platform usage - [Personal Notifications](https://docs.trunk.io/setup/integrations/slack/personal-notifications.md): Connect your GitHub and Slack accounts to Trunk so it can notify you about your own pull requests. - [GitHub](https://docs.trunk.io/setup/integrations/github.md): Trunk integrates with GitHub through three apps: Trunk, Trunk Sudo, and Trunk CI. See which ones you need and the permissions each requests. - [Trunk App](https://docs.trunk.io/setup/integrations/github/trunk-app.md): GitHub permissions the core Trunk App requests and what Trunk uses each one for. Required for all Trunk products. - [Trunk Sudo](https://docs.trunk.io/setup/integrations/github/trunk-sudo.md): GitHub permissions the Trunk Sudo app requests to power Merge Queue Direct-to-Queue, and what Trunk uses each one for. - [Trunk CI](https://docs.trunk.io/setup/integrations/github/trunk-ci.md): Powers Trunk's CI Intelligence features. Enables trunk to track the progress of the commits to your pull requests as they are made and track general execution of GitHub action workflows and jobs. - [BuildKite](https://docs.trunk.io/setup/integrations/buildkite.md): Export Buildkite's OpenTelemetry traces to Trunk to collect CI data from your builds. - [Evergreen](https://docs.trunk.io/setup/integrations/evergreen.md): Send Evergreen CI webhooks to Trunk to collect CI data from your versions and tasks. - [Overview](https://docs.trunk.io/code-quality/overview.md) - [Initialize Trunk](https://docs.trunk.io/code-quality/overview/initialize-trunk.md) - [Local linting](https://docs.trunk.io/code-quality/overview/deal-with-existing-issues.md) - [Linting in CI](https://docs.trunk.io/code-quality/overview/prevent-new-issues.md) - [IDE integrations](https://docs.trunk.io/code-quality/overview/ide-integration/index.md) - [VSCode](https://docs.trunk.io/code-quality/overview/ide-integration/vscode.md) - [OpenAI Codex Support](https://docs.trunk.io/code-quality/overview/ide-integration/openai-codex-support.md): Trunk Code Quality for OpenAI Codex - [Neovim](https://docs.trunk.io/code-quality/overview/ide-integration/neovim.md) - [GitHub Codespaces](https://docs.trunk.io/code-quality/overview/ide-integration/github-codespaces.md) - [Code Quality CLI](https://docs.trunk.io/code-quality/overview/getting-started/index.md) - [Code Quality](https://docs.trunk.io/code-quality/overview/getting-started/code-quality.md): CLI Metalinter and VSCode extension for over 100 code checking tools. - [Install](https://docs.trunk.io/code-quality/overview/getting-started/install.md) - [Tools](https://docs.trunk.io/code-quality/overview/getting-started/tools.md) - [Actions](https://docs.trunk.io/code-quality/overview/getting-started/actions/index.md) - [Git Hooks](https://docs.trunk.io/code-quality/overview/getting-started/actions/git-hooks.md): Trunk supports triggering actions on all githooks - [Announce](https://docs.trunk.io/code-quality/overview/getting-started/announce.md) - [Compatibility](https://docs.trunk.io/code-quality/overview/getting-started/compatibility.md) - [Caching](https://docs.trunk.io/code-quality/overview/getting-started/caching.md) - [Commands reference](https://docs.trunk.io/code-quality/overview/getting-started/commands-reference/index.md) - [Code Quality](https://docs.trunk.io/code-quality/overview/getting-started/commands-reference/code-quality.md) - [Actions](https://docs.trunk.io/code-quality/overview/getting-started/commands-reference/actions.md) - [Configuration](https://docs.trunk.io/code-quality/overview/getting-started/configuration/index.md) - [Plugins](https://docs.trunk.io/code-quality/overview/getting-started/configuration/plugins/index.md) - [Share config between codebases](https://docs.trunk.io/code-quality/overview/getting-started/configuration/plugins/external-repositories.md): Sharing configuration between codebases using public config repos - [Exporting linter configs](https://docs.trunk.io/code-quality/overview/getting-started/configuration/plugins/exported-configs.md): Reusing linter configs across projects. - [Runtimes](https://docs.trunk.io/code-quality/overview/getting-started/configuration/runtimes.md) - [Tools](https://docs.trunk.io/code-quality/overview/getting-started/configuration/tools.md) - [Lint](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/index.md) - [Definitions](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/definitions.md) - [Commands](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/commands.md) - [Output](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/output.md) - [Output Parsing](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/output-parsing.md) - [Files and Caching](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/files-and-caching.md) - [Dependencies](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/dependencies.md) - [Auto-Enable](https://docs.trunk.io/code-quality/overview/getting-started/configuration/lint/auto-enable.md) - [Actions](https://docs.trunk.io/code-quality/overview/getting-started/configuration/actions/index.md) - [Notifications](https://docs.trunk.io/code-quality/overview/getting-started/configuration/actions/notifications.md): Trunk Actions can also produce notifications to display in your terminal or in the VSCode extension! - [Logging and Troubleshooting](https://docs.trunk.io/code-quality/overview/getting-started/configuration/actions/logging-and-troubleshooting.md): Diagnosing problems with actions - [Merge](https://docs.trunk.io/code-quality/overview/getting-started/configuration/merge.md) - [Telemetry](https://docs.trunk.io/code-quality/overview/getting-started/configuration/telemetry.md) - [Per User Overrides](https://docs.trunk.io/code-quality/overview/getting-started/configuration/per-user-overrides.md) - [Linters](https://docs.trunk.io/code-quality/overview/linters.md) - [Supported Linters](https://docs.trunk.io/code-quality/overview/linters/supported.md): Trunk Code Quality supports over 100 linters and formatters - [Actionlint](https://docs.trunk.io/code-quality/overview/linters/supported/actionlint.md): Explore our guide on Actionlint, the linter for GitHub Actions. Learn about its features, installation, and configuration. - [Ansible-lint](https://docs.trunk.io/code-quality/overview/linters/supported/ansible-lint.md): Checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you - [Autopep8](https://docs.trunk.io/code-quality/overview/linters/supported/autopep8.md): Autopep8 automatically formats Python code to meet PEP 8 standards, using pycodestyle to identify and correct formatting issues for cleaner code. - [Bandit](https://docs.trunk.io/code-quality/overview/linters/supported/bandit.md): Bandit is a security linter for Python codebases. Bandit flags problems like hard-coded passwords, injection vulnerabilities, and the use of insecure libraries. - [Biome](https://docs.trunk.io/code-quality/overview/linters/supported/biome.md): Biome is a linter for JavaScript and TypeScript, improving code quality by automatically fixing issues, enforcing standards, and ensuring consistency. - [Black](https://docs.trunk.io/code-quality/overview/linters/supported/black.md): Discover Black, the Python code formatter. Learn how to integrate it with Trunk Check for seamless coding style enforcement. - [Brakeman](https://docs.trunk.io/code-quality/overview/linters/supported/brakeman.md): Brakeman is a static analysis tool designed for Ruby on Rails applications. It statically analyzes Rails application code to find security issues. - [buf](https://docs.trunk.io/code-quality/overview/linters/supported/buf.md): buf is a linter for Protobuf - [Buildifier](https://docs.trunk.io/code-quality/overview/linters/supported/buildifier.md): Learn how to install, configure, and use buildifier effectively for Bazel build scripts. - [cfnlint](https://docs.trunk.io/code-quality/overview/linters/supported/cfnlint.md): cfnlint is a linter for CloudFormation - [Checkov](https://docs.trunk.io/code-quality/overview/linters/supported/checkov.md): Checkov is a static code analysis tool for scanning infrastructure as code. It identifies misconfigurations in IaC files that could lead to security breaches. - [circleci](https://docs.trunk.io/code-quality/overview/linters/supported/circleci.md): circleci is a linter for CircleCI Config - [ClangFormat](https://docs.trunk.io/code-quality/overview/linters/supported/clang-format.md): Clang Format is a set of tools to format code that is processed by the Clang compiler suite. - [clang-tidy](https://docs.trunk.io/code-quality/overview/linters/supported/clang-tidy.md): A clang-based C++ linter tool to provide an extensible framework for diagnosing and fixing programming errors that can be deduced via static analysis. - [Clippy](https://docs.trunk.io/code-quality/overview/linters/supported/clippy.md): A collection of lints to catch common mistakes and improve your Rust code. - [cmake-format](https://docs.trunk.io/code-quality/overview/linters/supported/cmake-format.md): Learn how to install, configure, and run CMake-Format with Trunk Check to ensure consistent formatting and best practices for your CMake scripts. - [codespell](https://docs.trunk.io/code-quality/overview/linters/supported/codespell.md): Codespell fixes common misspellings in text files. It's designed primarily to check misspelled words in source code. - [cspell](https://docs.trunk.io/code-quality/overview/linters/supported/cspell.md): CSpell is a linter for identifying and fixing spelling errors in source code, documentation, and configuration files, enhancing overall project quality. - [cue-fmt](https://docs.trunk.io/code-quality/overview/linters/supported/cue-fmt.md): cue-fmt is a formatter for CUE files that improves consistency and readability. Learn how to install, configure, and run cue-fmt. - [dart](https://docs.trunk.io/code-quality/overview/linters/supported/dart.md): dart is a linter for Dart - [deno](https://docs.trunk.io/code-quality/overview/linters/supported/deno.md): deno is a linter for JavaScript, JSON, TypeScript and Markdown - [Detekt](https://docs.trunk.io/code-quality/overview/linters/supported/detekt.md): Static code analysis for Kotlin - [djlint](https://docs.trunk.io/code-quality/overview/linters/supported/djlint.md): djlint is a linter for HTML Templates - [dotenv-linter](https://docs.trunk.io/code-quality/overview/linters/supported/dotenv-linter.md): dotenv-linter is a linter for Dotenv - [dotnet-format](https://docs.trunk.io/code-quality/overview/linters/supported/dotnet-format.md): dotnet-format is a linter for C# - [dustilock](https://docs.trunk.io/code-quality/overview/linters/supported/dustilock.md): dustilock is a linter for Security - [ESLint](https://docs.trunk.io/code-quality/overview/linters/supported/eslint.md): ESLint statically analyzes your code to quickly find problems. - [Flake8](https://docs.trunk.io/code-quality/overview/linters/supported/flake8.md): Uncover Flake8, a versatile Python linter for code style and error checking. Flake 8 checks against PEP 8 and more, with plugin support for broader analysis. - [git-diff-check](https://docs.trunk.io/code-quality/overview/linters/supported/git-diff-check.md): git-diff-check is a linter for All - [Gitleaks](https://docs.trunk.io/code-quality/overview/linters/supported/gitleaks.md): Explore Gitleaks, an open-source tool for identifying secrets in codebases. Learn about its file type support and integration with Trunk. - [Gofmt](https://docs.trunk.io/code-quality/overview/linters/supported/gofmt.md): Gofmt simplifies Go coding by automatically formatting code to match Go's style guidelines, enhancing readability and teamwork without the manual hassle. - [gofumpt](https://docs.trunk.io/code-quality/overview/linters/supported/gofumpt.md): gofumpt is a linter for Go - [goimports](https://docs.trunk.io/code-quality/overview/linters/supported/goimports.md): goimports is a linter for Go - [gokart](https://docs.trunk.io/code-quality/overview/linters/supported/gokart.md): gokart is a linter for Go - [golangci-lint](https://docs.trunk.io/code-quality/overview/linters/supported/golangci-lint.md): Golangci-lint is a fast Go linters runner. Learn how to install, configure, and use golangci-lint effectively for Go projects. - [golines](https://docs.trunk.io/code-quality/overview/linters/supported/golines.md): golines is a linter for Go - [google-java-format](https://docs.trunk.io/code-quality/overview/linters/supported/google-java-format.md): google-java-format is a linter for Java - [graphql-schema-linter](https://docs.trunk.io/code-quality/overview/linters/supported/graphql-schema-linter.md): graphql-schema-linter is a linter for GraphQL - [hadolint](https://docs.trunk.io/code-quality/overview/linters/supported/hadolint.md): hadolint is a linter for Docker - [haml-lint](https://docs.trunk.io/code-quality/overview/linters/supported/haml-lint.md): haml-lint is a linter for HAML - [isort](https://docs.trunk.io/code-quality/overview/linters/supported/isort.md): isort is a Python utility for sorting imports alphabetically and automatically separating them into sections and by type. - [iwyu](https://docs.trunk.io/code-quality/overview/linters/supported/iwyu.md): iwyu is a linter for C, C++ - [ktlint](https://docs.trunk.io/code-quality/overview/linters/supported/ktlint.md): ktlint is a linter for Kotlin - [kube-linter](https://docs.trunk.io/code-quality/overview/linters/supported/kube-linter.md): kube-linter is a linter for Kubernetes - [markdown-link-check](https://docs.trunk.io/code-quality/overview/linters/supported/markdown-link-check.md): markdown-link-check is a linter for Markdown - [markdown-table-prettify](https://docs.trunk.io/code-quality/overview/linters/supported/markdown-table-prettify.md): markdown-table-prettify is a linter for Markdown - [Markdownlint](https://docs.trunk.io/code-quality/overview/linters/supported/markdownlint.md): Markdownlint is a tool designed to enforce consistency for Markdown files. It can include checks for headings, lists, line length, and syntax preferences. - [markdownlint-cli2](https://docs.trunk.io/code-quality/overview/linters/supported/markdownlint-cli2.md): markdownlint-cli2 is a linter for Markdown - [mypy](https://docs.trunk.io/code-quality/overview/linters/supported/mypy.md): mypy is a linter for Python - [nancy](https://docs.trunk.io/code-quality/overview/linters/supported/nancy.md): nancy is a linter for Security - [nixpkgs-fmt](https://docs.trunk.io/code-quality/overview/linters/supported/nixpkgs-fmt.md): nixpkgs-fmt is a linter for Nix - [opa](https://docs.trunk.io/code-quality/overview/linters/supported/opa.md): opa is a linter for Rego - [OSV-Scanner](https://docs.trunk.io/code-quality/overview/linters/supported/osv-scanner.md): OSV-Scanner is an open-source tool created by Google to detect vulnerabilities in projects by scanning dependencies against the OSV database. - [Oxipng](https://docs.trunk.io/code-quality/overview/linters/supported/oxipng.md): Oxipng is an open-source, CLI utility designed for optimizing PNG files. It applies lossless compression techniques to reduce file size. - [perlcritic](https://docs.trunk.io/code-quality/overview/linters/supported/perlcritic.md): perlcritic is a linter for Perl - [perltidy](https://docs.trunk.io/code-quality/overview/linters/supported/perltidy.md): perltidy is a linter for Perl - [php-cs-fixer](https://docs.trunk.io/code-quality/overview/linters/supported/php-cs-fixer.md): php-cs-fixer is a linter for PHP - [phpstan](https://docs.trunk.io/code-quality/overview/linters/supported/phpstan.md): phpstan is a linter for PHP - [pmd](https://docs.trunk.io/code-quality/overview/linters/supported/pmd.md): pmd is a linter for Apex and Java - [pragma-once](https://docs.trunk.io/code-quality/overview/linters/supported/pragma-once.md): pragma-once is a linter for C, C++ - [pre-commit-hooks](https://docs.trunk.io/code-quality/overview/linters/supported/pre-commit-hooks.md): pre-commit-hooks is a linter for All - [Prettier](https://docs.trunk.io/code-quality/overview/linters/supported/prettier.md): Explore Prettier, the powerful code formatter. Learn how to install, configure, and effectively use Prettier to enhance your coding workflow. - [prisma](https://docs.trunk.io/code-quality/overview/linters/supported/prisma.md): prisma is a linter for Prisma - [psscriptanalyzer](https://docs.trunk.io/code-quality/overview/linters/supported/psscriptanalyzer.md): psscriptanalyzer is a linter for PowerShell - [Pylint](https://docs.trunk.io/code-quality/overview/linters/supported/pylint.md): Learn about Pylint, the versatile Python linter for error detection, code smell elimination, and PEP 8 enforcement. - [pyright](https://docs.trunk.io/code-quality/overview/linters/supported/pyright.md): pyright is a linter for Python - [regal](https://docs.trunk.io/code-quality/overview/linters/supported/regal.md): regal is a linter for Rego - [remark-lint](https://docs.trunk.io/code-quality/overview/linters/supported/remark-lint.md): remark-lint is a linter for Markdown - [renovate](https://docs.trunk.io/code-quality/overview/linters/supported/renovate.md): renovate is a linter for Renovate - [rome](https://docs.trunk.io/code-quality/overview/linters/supported/rome.md): rome is a linter for JavaScript and TypeScript - [rubocop](https://docs.trunk.io/code-quality/overview/linters/supported/rubocop.md): rubocop is a linter for Ruby - [Ruff](https://docs.trunk.io/code-quality/overview/linters/supported/ruff.md): Discover Ruff, a speedy Python linter for large codebases. Integrates with CI/IDEs and supports .py, .pyi, and Jupyter Notebooks. - [rufo](https://docs.trunk.io/code-quality/overview/linters/supported/rufo.md): rufo is a linter for Ruby - [rustfmt](https://docs.trunk.io/code-quality/overview/linters/supported/rustfmt.md): Rustfmt is a code formatting tool for Rust that helps ensure your code adheres to the community-driven coding standards and style guidelines. - [scalafmt](https://docs.trunk.io/code-quality/overview/linters/supported/scalafmt.md): scalafmt is a linter for Scala - [semgrep](https://docs.trunk.io/code-quality/overview/linters/supported/semgrep.md): semgrep is a linter for Go, Java, JavaScript, JSON, Python, Ruby, TypeScript and YAML - [ShellCheck](https://docs.trunk.io/code-quality/overview/linters/supported/shellcheck.md): ShellCheck is a static analysis tool designed to identify and report syntax errors and potential issues in shell scripts - [shfmt](https://docs.trunk.io/code-quality/overview/linters/supported/shfmt.md): shfmt is a linter for Bash - [sort-package-json](https://docs.trunk.io/code-quality/overview/linters/supported/sort-package-json.md): sort-package-json is a linter for package.json - [sourcery](https://docs.trunk.io/code-quality/overview/linters/supported/sourcery.md): sourcery is a linter for Python - [sql-formatter](https://docs.trunk.io/code-quality/overview/linters/supported/sql-formatter.md): sql-formatter is a linter for SQL - [SQLFluff](https://docs.trunk.io/code-quality/overview/linters/supported/sqlfluff.md): SQLFluff is a dialect-flexible and configurable SQL linter. - [sqlfmt](https://docs.trunk.io/code-quality/overview/linters/supported/sqlfmt.md): sqlfmt is a linter for SQL - [Squawk](https://docs.trunk.io/code-quality/overview/linters/supported/squawk.md): squawk is a linter for SQL - [standardrb](https://docs.trunk.io/code-quality/overview/linters/supported/standardrb.md): standardrb is a linter for Ruby - [stringslint](https://docs.trunk.io/code-quality/overview/linters/supported/stringslint.md): stringslint is a linter for Swift - [stylelint](https://docs.trunk.io/code-quality/overview/linters/supported/stylelint.md): stylelint is a linter for CSS, SCSS - [stylua](https://docs.trunk.io/code-quality/overview/linters/supported/stylua.md): stylua is a linter for Lua - [SVGO](https://docs.trunk.io/code-quality/overview/linters/supported/svgo.md): SVGO, or Scalable Vector Graphics Optimizer, is a tool designed to optimize SVG files, making them smaller and more efficient without compromising on quality. - [swiftformat](https://docs.trunk.io/code-quality/overview/linters/supported/swiftformat.md): swiftformat is a linter for Swift - [swiftlint](https://docs.trunk.io/code-quality/overview/linters/supported/swiftlint.md): swiftlint is a linter for Swift - [taplo](https://docs.trunk.io/code-quality/overview/linters/supported/taplo.md): taplo is a linter for TOML - [Terraform](https://docs.trunk.io/code-quality/overview/linters/supported/terraform.md): The command line interface to Terraform is the terraform command, which accepts a variety of subcommands such as terraform validate or terraform fmt - [terragrunt](https://docs.trunk.io/code-quality/overview/linters/supported/terragrunt.md): terragrunt is a linter for Terragrunt - [terrascan](https://docs.trunk.io/code-quality/overview/linters/supported/terrascan.md): terrascan is a linter for Terrascan, Security and Terraform - [TFLint](https://docs.trunk.io/code-quality/overview/linters/supported/tflint.md): TFLint is an essential linter designed for Terraform. It helps improve code quality, maintainability, and security in infrastructure as code (IaC) projects. - [tfsec](https://docs.trunk.io/code-quality/overview/linters/supported/tfsec.md): tfsec is a linter for Security and Terraform - [tofu](https://docs.trunk.io/code-quality/overview/linters/supported/tofu.md): tofu is a linter for Terraform - [Trivy](https://docs.trunk.io/code-quality/overview/linters/supported/trivy.md): Explore our guide on Trivy, the comprehensive vulnerability scanner. Learn about its features, installation, and configuration. - [Trufflehog](https://docs.trunk.io/code-quality/overview/linters/supported/trufflehog.md): Discover Trufflehog with our detailed guide. Learn installation, configuration, usage, and how to integrate it with other linters for optimal code security. - [txtpbfmt](https://docs.trunk.io/code-quality/overview/linters/supported/txtpbfmt.md): txtpbfmt is a linter for Textproto - [vale](https://docs.trunk.io/code-quality/overview/linters/supported/vale.md): vale is a linter for prose - [Yamllint](https://docs.trunk.io/code-quality/overview/linters/supported/yamllint.md): Yamllint is a linter that checks for formatting discrepancies, key-value pair issues, and syntax errors, ensuring your YAML files are syntactically correct. - [yapf](https://docs.trunk.io/code-quality/overview/linters/supported/yapf.md): yapf is a linter for Python - [Run Linters](https://docs.trunk.io/code-quality/overview/linters/run-linters.md) - [Manage linters](https://docs.trunk.io/code-quality/overview/linters/manage-linters.md) - [Configure linters](https://docs.trunk.io/code-quality/overview/linters/configure-linters.md) - [Ignoring issues and files](https://docs.trunk.io/code-quality/overview/linters/ignoring-issues-and-files.md) - [Custom linters](https://docs.trunk.io/code-quality/overview/linters/custom-linters.md) - [Shared configs](https://docs.trunk.io/code-quality/overview/linters/shared-configs.md) - [Upgrades](https://docs.trunk.io/code-quality/overview/linters/upgrades.md) - [Debugging](https://docs.trunk.io/code-quality/overview/debugging.md) - [Licensing](https://docs.trunk.io/code-quality/overview/licensing.md) - [Introduction](https://docs.trunk.io/api.md) - [Authentication](https://docs.trunk.io/api/authentication.md) - [Legacy API](https://docs.trunk.io/api/authentication/legacy.md) - [Status codes and errors](https://docs.trunk.io/api/errors.md): The HTTP status codes the Trunk API returns, the error envelope, every error code, and when to retry. - [Pagination](https://docs.trunk.io/api/pagination.md): Page through list endpoints with opaque, forward-only cursors. - [Rate limits](https://docs.trunk.io/api/rate-limits.md) - [Resolve a repository by its provider URL](https://docs.trunk.io/api/repositories/resolve-a-repository-by-its-provider-url.md): Looks up the repositories a provider URL names, scoped to your organization. A `.git` suffix and trailing slashes are normalized away, so every spelling of the same repository resolves alike and shares a cursor. - [Get a repository](https://docs.trunk.io/api/repositories/get-a-repository.md): Returns one repository. This is how a caller resolves the `repositoryId` that merge queues and pull requests carry. A repository in another organization is reported as `404`, not `403`. - [List merge queues](https://docs.trunk.io/api/mergequeues/list-merge-queues.md): Lists the merge queues in your organization. `targetBranch` narrows within a single repository rather than searching branch names globally, so it must be sent together with `repositoryId`. - [Create a merge queue](https://docs.trunk.io/api/mergequeues/create-a-merge-queue.md): Requires the **Update Merge Queue settings** permission. Creates a merge queue for a repository and target branch. At most one queue exists per pair, so a second create returns `QUEUE_ALREADY_EXISTS`. - [Get a merge queue](https://docs.trunk.io/api/mergequeues/get-a-merge-queue.md): Returns one merge queue, including its full configuration object. - [Update a merge queue's configuration](https://docs.trunk.io/api/mergequeues/update-a-merge-queues-configuration.md): Requires the **Update Merge Queue settings** permission. Applies a JSON Merge Patch to the queue's configuration: an absent key leaves that setting unchanged, and an unknown key is rejected rather than silently dropped. Send `requiredStatuses: []` or `batchingRules: []` to clear those lists. - [Switch a merge queue's mode](https://docs.trunk.io/api/mergequeues/switch-a-merge-queues-mode.md): Requires the **Update Merge Queue settings** permission. Starts a conversion between `queue` and `graph` mode. Switching to the mode the queue is already in is an idempotent no-op. A queue already mid-conversion is refused with `MODE_CHANGE_IN_PROGRESS`. The response carries the state the merge engi… - [Pause a merge queue](https://docs.trunk.io/api/mergequeues/pause-a-merge-queue.md): Requires the **Update Merge Queue settings** permission. **Disruptive — affects every entry in the queue.** Stops the queue testing or merging anything further; entries already in it stay enqueued and resume when the queue is resumed. `Idempotency-Key` is not honored; if the outcome is unknown, read… - [Resume a merge queue](https://docs.trunk.io/api/mergequeues/resume-a-merge-queue.md): Requires the **Update Merge Queue settings** permission. Returns a paused or draining queue to `running`. `Idempotency-Key` is not honored; if the outcome is unknown, read the queue's state before retrying. The request body is ignored. - [Drain a merge queue](https://docs.trunk.io/api/mergequeues/drain-a-merge-queue.md): Requires the **Update Merge Queue settings** permission. **Disruptive — affects every entry in the queue.** Finishes the entries already in the queue but accepts no new submissions. `Idempotency-Key` is not honored; if the outcome is unknown, read the queue's state before retrying. The request body… - [Delete a merge queue](https://docs.trunk.io/api/mergequeues/delete-a-merge-queue.md): Requires the **Update Merge Queue settings** permission. **Destructive and not reversible.** Deletes a merge queue. The queue must be empty — drain or dequeue its pull requests first, or the call returns `QUEUE_HAS_ACTIVE_ENTRIES`. Historical queue entries and verification runs stay readable by id a… - [Get a merge queue's dispatch order](https://docs.trunk.io/api/mergequeues/get-a-merge-queues-dispatch-order.md): Returns the queue's batches with a verification run, what is admitted and waiting in the order the engine will consider it, and what has not been admitted yet. - [Get a merge queue's dependency graph](https://docs.trunk.io/api/mergequeues/get-a-merge-queues-dependency-graph.md): Returns the queue's dependency graph: which pull requests the engine considers related, and why. - [Submit a pull request to a merge queue](https://docs.trunk.io/api/mergequeues/submit-a-pull-request-to-a-merge-queue.md): Requires the **Merge and cancel PRs** permission, plus **Set priority on PRs** to send `priorityValue` or `priorityName`, **Skip batching** to send `allowBatching: false`, and **Merge PRs with direct to queue** to send `direct: true`. Choosing a `mergeMethod` needs no extra permission. Lower `priori… - [List a merge queue's pull requests](https://docs.trunk.io/api/mergequeues/list-a-merge-queues-pull-requests.md): Lists the pull requests in a queue, **most recently enqueued first**. - [Resolve pull requests by repository coordinates](https://docs.trunk.io/api/pullrequests/resolve-pull-requests-by-repository-coordinates.md): Looks pull requests up by their provider coordinates within one repository. Send exactly one of `number` or `branch`. - [Get a pull request](https://docs.trunk.io/api/pullrequests/get-a-pull-request.md): Returns one pull request: its queue entry and readiness if it has ever been submitted to a queue, and `ci`, the head commit's CI jobs counted with the URLs of the lists. `ci.pollAfterSeconds` says when to read the head commit's CI again; it is `null` once nothing on that commit will change, even whi… - [Reprioritize a queued pull request](https://docs.trunk.io/api/pullrequests/reprioritize-a-queued-pull-request.md): Requires the **Set priority on PRs** permission. Lower `priorityValue` numbers go first, from 0 to 255. The named priorities are `urgent` (0), `high` (10), `medium` (100, the default), and `low` (200). Raising an entry that is already queued doesn't restart anything: the new priority applies the nex… - [Update a queued pull request's entry](https://docs.trunk.io/api/pullrequests/update-a-queued-pull-requests-entry.md): Requires **Set priority on PRs** to send `priorityValue` or `priorityName`, **Skip batching** to send `allowBatching`, **Merge PRs with direct to queue** to send `direct`, and **Merge and cancel PRs** to send `mergeMethod`. Lower `priorityValue` numbers go first, from 0 to 255. The named priorities… - [Restart a queued pull request's tests](https://docs.trunk.io/api/pullrequests/restart-a-queued-pull-requests-tests.md): Requires the **Merge and cancel PRs** permission. **Disruptive.** Abandons the entry's in-flight verification and starts a new one, discarding CI progress. Only possible while the entry is testing or in pending-failure; other live states are refused with `PR_TESTS_NOT_RESTARTABLE`. - [Dequeue a pull request](https://docs.trunk.io/api/pullrequests/dequeue-a-pull-request.md): Requires the **Merge and cancel PRs** permission. **Disruptive.** Removes a pull request from its merge queue, abandoning any in-flight verification. The entry must be non-terminal, or the call returns `PR_NOT_IN_ACTIVE_STATE`. `Idempotency-Key` is not honored; if a request times out, read the pull… - [List a pull request's queue-entry state history](https://docs.trunk.io/api/pullrequests/list-a-pull-requests-queue-entry-state-history.md): Returns the state transitions of this pull request's queue entry. Defaults to **oldest first** — the one list in this API that does, because it is an append-only log a reader replays forward — so finding the CURRENT transition means paging to the end, and `hasMore: false` is how you know you are the… - [List queue-entry state history for several pull requests](https://docs.trunk.io/api/pullrequests/list-queue-entry-state-history-for-several-pull-requests.md): Returns up to 50 pull requests' complete queue-entry timelines in one response — the batch form of `GET /v2/pull-requests/{id}/queue-entry-history`, and the equivalent of v1's `getSubmittedPullRequests` with `includeTimeline`. - [Estimate when a queued pull request will merge](https://docs.trunk.io/api/pullrequests/estimate-when-a-queued-pull-request-will-merge.md): Returns a live estimate for this pull request's queue entry: when it is expected to merge, when it starts and finishes testing, and how many pull requests it is waiting behind. An entry in `pendingFailure` instead reports when that failure is expected to resolve (`kind: pendingFailureResolution`) an… - [List a merge queue's verification runs](https://docs.trunk.io/api/mergequeues/list-a-merge-queues-verification-runs.md): Lists the queue's verification runs, newest first. `sort` and `direction` are not configurable yet: sending either with a non-default value is rejected with `400` rather than ignored, so a client cannot silently receive an ordering it did not ask for. - [List a pull request's verification runs](https://docs.trunk.io/api/pullrequests/list-a-pull-requests-verification-runs.md): Lists every verification run that tested this pull request, newest first — including a run it shared with others, which is reported here for each pull request in the batch. `sort` and `direction` are not configurable yet: each accepts only the value this list already uses (`createdAt`, `desc`) and r… - [Get a verification run](https://docs.trunk.io/api/mergequeueverificationruns/get-a-verification-run.md): Returns one merge-queue verification run, including its normalized CI checks, the pull requests it tested, and the impacted targets uploaded for its commits. - [List a merge queue's completed testing](https://docs.trunk.io/api/mergequeues/list-a-merge-queues-completed-testing.md): Lists the stretches of testing the queue finished between `since` and `until`, newest first. One entry per pull request per attempt: a pull request appears several times if its testing restarted, and a batched run appears once per pull request it tested. Testing still in progress is not included. Pa… - [Upload a pull request's impacted targets](https://docs.trunk.io/api/impactedtargets/upload-a-pull-requests-impacted-targets.md): Requires the **Merge and cancel PRs** permission, or a GitHub Actions login for the run's own repository. Records which build targets a pull request's head sha impacts, for queues that gate on impacted targets. Address the pull request by exactly one of `number` or `branch`, and declare impact with… - [Get Prometheus metrics for every merge queue](https://docs.trunk.io/api/mergequeues/get-prometheus-metrics-for-every-merge-queue.md): Returns Prometheus metrics for every merge queue in your organization, in the text exposition format, for a Prometheus scrape job. `repositoryId` narrows them to one repository's queues, across all its target branches, and is a 404 when your organization has no such repository. The metrics match v1'… - [Get Prometheus metrics for a merge queue](https://docs.trunk.io/api/mergequeues/get-prometheus-metrics-for-a-merge-queue.md): Returns Prometheus metrics for one merge queue, in the text exposition format, for a Prometheus scrape job. The series and labels are those of `GET /v2/merge-queues/metrics`, restricted to this queue. - [List test collections](https://docs.trunk.io/api/testcollections/list-test-collections.md): Lists the test collections in your organization, newest first. Every other flaky-tests endpoint takes a collection's `id` from here, either as a filter or in a request body. - [Create a test collection](https://docs.trunk.io/api/testcollections/create-a-test-collection.md): Creates a test collection and returns it. Its `id` is server-assigned; `testCount` is 0 until the collection's first upload is ingested. - [Get a test collection](https://docs.trunk.io/api/testcollections/get-a-test-collection.md): Returns one test collection. `quarantineEnabled` and `autoQuarantineEnabled` are read on every call, so a CI run can check them before it uploads; `testCount` may lag by up to a minute. A collection in another organization is reported as `404`, not `403`. - [Get a test-results upload](https://docs.trunk.io/api/testuploads/get-a-test-results-upload.md): Returns where an upload is (waiting for its bundle, received, ingested or skipped) and the problems ingestion found in it. Requires read access to the upload's test collection. - [List and search tests](https://docs.trunk.io/api/tests/list-and-search-tests.md): Lists tests, by default across every test collection in your organization — pass `testCollectionId` to narrow to one. Each row carries the `id` to pass to the per-test endpoints. - [Get a test](https://docs.trunk.io/api/tests/get-a-test.md): Returns one test by its globally unique id, with the labels, quarantine override and active monitors currently applied to it. Ids come from list responses; they are opaque and not derivable client-side. - [List a test's status transitions](https://docs.trunk.io/api/tests/list-a-tests-status-transitions.md): Returns the test's status transitions, newest first. A row is recorded only when the composite status changes, so `fromStatus` is the status it moved away from and the series has no repeats. - [List a test's runs](https://docs.trunk.io/api/tests/list-a-tests-runs.md): Returns the individual runs recorded for a test, newest first, each with the branch, commit and CI job it came from. - [Link a ticket to a test](https://docs.trunk.io/api/tests/link-a-ticket-to-a-test.md): Links an existing ticket from one of your organization's ticketing connections to a test, and returns the ticket as Trunk now holds it. The ticket is fetched from its provider first, so a key or URL the provider does not recognize is refused. - [Create a ticket for a test](https://docs.trunk.io/api/tests/create-a-ticket-for-a-test.md): Files a new ticket in the test collection's default ticketing connection and links it to a test, returning the ticket as Trunk now holds it. A collection with no default connection is refused with `TICKETING_NOT_CONFIGURED`. - [List a repository's paths filters](https://docs.trunk.io/api/dynamicci/list-a-repositorys-paths-filters.md): Every paths filter in the repository, each with the jobs it gates. A paths filter decides which changed files make a job run, on pull requests and in the merge queue alike. An item with jobs can be sent back as one `filters` entry of `dynamicCi.setPathsFilters`, with its `name`, `rules` and `jobs`.… - [Set or clear paths filters on jobs](https://docs.trunk.io/api/dynamicci/set-or-clear-paths-filters-on-jobs.md): Requires the **Update Dynamic CI settings** permission. - [Webhooks Reference](https://docs.trunk.io/api/webhooks.md): Documentation on the various webhooks that are provided by Trunk - [Legacy API](https://docs.trunk.io/api/v1.md): The legacy API, authenticated with the organization API token. New integrations should use the API. - [Migrate Merge Queue from the legacy API](https://docs.trunk.io/api/v1/migrate-merge-queue.md): Move Merge Queue automation and dashboards from the v1 API to v2, endpoint by endpoint. - [Cancel a pull request in a merge queue.](https://docs.trunk.io/api/v1/cancel-a-pull-request-in-a-merge-queue.md) - [Get a submitted pull request from a merge queue.](https://docs.trunk.io/api/v1/get-a-submitted-pull-request-from-a-merge-queue.md) - [Get several submitted pull requests from a merge queue.](https://docs.trunk.io/api/v1/get-several-submitted-pull-requests-from-a-merge-queue.md): The batch form of `getSubmittedPullRequest`, for building a view over many pull requests at once. Every pull request must be in the same repository and queue. Pull requests that were never submitted to the queue are reported in `notFound` rather than failing the request. - [List pull requests in a merge queue.](https://docs.trunk.io/api/v1/list-pull-requests-in-a-merge-queue.md): Returns a paginated list of pull requests in the merge queue. Optionally filter by state and/or by a time range for concluded pull requests. - [Restart tests on a pull request in a merge queue.](https://docs.trunk.io/api/v1/restart-tests-on-a-pull-request-in-a-merge-queue.md) - [Set impacted targets for a pull request.](https://docs.trunk.io/api/v1/set-impacted-targets-for-a-pull-request.md) - [Submit a pull request to a merge queue.](https://docs.trunk.io/api/v1/submit-a-pull-request-to-a-merge-queue.md) - [Get details about testing that Merge Queue is performing](https://docs.trunk.io/api/v1/get-details-about-testing-that-merge-queue-is-performing.md) - [List completed merge queue testing for a time range](https://docs.trunk.io/api/v1/list-completed-merge-queue-testing-for-a-time-range.md): Returns the stretches of testing a merge queue completed in the given range, newest first. One entry per pull request per attempt: a pull request appears several times if its testing restarted, and a batched test run appears once per pull request it tested. Testing still in progress is not included.… - [Create a new merge queue.](https://docs.trunk.io/api/v1/create-a-new-merge-queue.md) - [Delete the specified merge queue. The queue must be empty in order to be deleted.](https://docs.trunk.io/api/v1/delete-the-specified-merge-queue-the-queue-must-be-empty-in-order-to-be-deleted.md) - [Get the merge queue.](https://docs.trunk.io/api/v1/get-the-merge-queue.md) - [Update the merge queue.](https://docs.trunk.io/api/v1/update-the-merge-queue.md) - [Get Prometheus-format metrics for a merge queue](https://docs.trunk.io/api/v1/get-prometheus-format-metrics-for-a-merge-queue.md) ## OpenAPI Specs - [openapi-v2](/openapi-v2.json) - [openapi](/openapi.json)