Request fixes on PRs
Learn about how to request fixes on failed pull requests
When CI Autopilot identifies the root cause of a test failure, you can request an automatic fix as a stacked pull request. This creates a separate pull request with the proposed changes, keeping your base pull request clean while providing a ready-to-review solution.

Complete workflow
When using CI Autopilot to apply fixes on your pull requests, you will go through the following steps:
Request a fix as a stacked pull request
Every pull request comment from the CI Autopilot will include instructions on how to request a fix. Look for the "Autofix Options" section:

To request a fix, simply comment on the pull request you want fixed by using the slash command:
/trunk stack-fix <fix-id>
What to expect after requesting a fix
As soon as the CI Autopilot receives the fix request, it will upvote your comment and work on the fix in the background. This process can take up to a few minutes.
As soon as the fix is created, a new pull request will be created in your repository. It will reference the base pull request, making it easy to navigate between the two.
Experimental: Adding context to the fix

Sometimes, users want to provide additional context to the CI Autopilot so the fix complies with expectations, coding guidelines or team conventions. For example, users can request different variable names, methods, or implementation patterns. To accomplish that, just add your requests to the fix command:
/trunk stack-fix <fix-id> <context, eg implement using async/await pattern>
Last updated