Library
Mintlify answers/6 minutes read

Can Mintlify update docs automatically when code changes?

Published November 21, 2026
HC

Harkirat Chahal

Growth

Share this article


Can Mintlify update docs automatically when code changes?
SUMMARY

Yes. Mintlify Autopilot, included on Pro and Enterprise, opens a pull request with suggested docs updates when code changes in your connected repositories. By default a person merges every Autopilot pull request, and Autopilot never pushes directly to your deploy branch. Each update Autopilot starts on its own costs 250 credits, and a run that finds nothing to update costs nothing.

Yes. Mintlify Autopilot, included on Pro and Enterprise, opens a pull request with suggested docs updates when code changes in your connected repositories. By default a person merges every Autopilot pull request, and Autopilot never pushes directly to your deploy branch. Each update Autopilot starts on its own costs 250 credits, and a run that finds nothing to update costs nothing.

How Autopilot picks up code changes

Autopilot is an agent that works in the background. You give it read access to your code repositories, and when it detects changes to your code it opens a pull request against your docs and tags your team to review it.

Setup has three parts:

  1. Connect your docs to your own GitHub, GitLab or Azure Repos repository. Autopilot does not run on repositories that Mintlify hosts.
  2. Switch on the toggle on the Autopilot card in the dashboard. Mintlify turns it on automatically for new sites on Pro or a Pro trial that meet the prerequisites.
  3. Under Additional repositories, select the source code repositories Autopilot should use as context.

The review gate before docs get updated

The gate is usually a pull request that a person merges. Mintlify has three ways a background agent can change docs, and each has its own review setting. Two defaults skip review: the Translate content automation merges directly, and on sites whose repository Mintlify hosts, the agent in Slack commits straight to the deployment branch.

FeatureSettingReview by defaultWithout review
AutopilotMergingRequire review: a person merges every pull requestAuto merge
AutomationsUpdate and merge changesOff for most automations: the agent opens a pull request someone must reviewOn: changes merge automatically
Agent in SlackAgent review processCreate a pull requestPush to main

The Agent review process setting is only available when the site is connected to your own Git provider.

Auto merge applies only to some Autopilot pull requests. The setting appears once your team has merged three Autopilot pull requests. Autopilot then reviews how your team handled its past pull requests and turns on auto-merge only for the kinds of work your team reliably merged. It does not merge a pull request that is a draft, has merge conflicts, has a review requesting changes, or has checks that are failing or still running. If your branch protection rules require a review, the pull request waits for a reviewer.

By default, Autopilot assigns each pull request to the teammate it identifies as the owner of the code that changed and requests their review.

How to see the diff before you accept

Autopilot's pull requests appear under Suggestions on the Autopilot page, grouped by day. Each suggestion shows the pull request's title, repository, branch, and changed files with line counts.

  • Click Preview to view the changes on a preview deployment of your site.
  • Click Accept to merge, or Close to close without merging.
  • Send a message to ask for changes, and Autopilot updates the pull request.

You can also review in GitHub. When you leave a comment or an inline review comment on an open Autopilot pull request, Autopilot reads it, pushes the requested changes to the same branch and replies in the thread. In the web editor, clicking a changed file opens it in diff view against the published version, as a visual diff or a text diff in Unified or Split layout.

Autopilot and automations by plan

AutopilotAutomations
PlanPro and EnterpriseEnterprise
What decides the workAutopilot decides what needs updatingA prompt and a trigger you configure
Code-change triggerRuns after a code change mergesCode change trigger, or the predefined "Update from code changes" automation on a schedule
Cost250 credits per update it starts on its own250 credits per update

In automations, the predefined "Update from code changes" automation runs twice weekly by default and opens a pull request. Automations can also start from events in other apps, listed in Mintlify integrations.

Work you ask Autopilot for directly, in a dashboard chat, Slack or a pull request comment, costs nothing. The credit pricing docs list every price, and seats, credits and overages explains what happens when credits run out.

Frequently Asked Questions

Does Mintlify automatically pick up on all the code changes?

Mintlify Autopilot runs when code changes in the repositories you connect, and it decides which changes need a docs update. A run that finds nothing to update opens no pull request and costs no credits.

What is the gate before the docs get updated?

The gate is a pull request. By default a person merges every Mintlify Autopilot pull request, and Autopilot never pushes directly to your deploy branch or the repository's default branch.

Does anything publish without review?

Mostly only if you turn it on. Mintlify Autopilot merges its own pull requests when Merging is set to Auto merge, and a Mintlify automation merges directly when Update and merge changes is on. Two exceptions merge by default: the Translate content automation, and the agent in Slack on sites whose repository Mintlify hosts.

Is there any way to see the inline diff?

Yes. Each Mintlify Autopilot suggestion lists its changed files with line counts and links to a preview deployment, and the pull request shows the full diff in your Git provider. The Mintlify web editor also has a diff view with unified and split layouts.

Which plan do we need for automatic docs updates?

Mintlify Autopilot is on Pro and Enterprise. Mintlify automations, which run prompts on triggers you configure, require an Enterprise plan.

Where to start

The Autopilot docs cover setup, reviewers and merging, and the automations overview covers triggers and update modes. For the manual version of this process, see how to know which docs to update after a code change. Start for free to try Autopilot on the 14-day Pro trial, or book a demo to see automations on Enterprise.

More to read

Does Mintlify support CI/CD, preview deployments and linting?
Mintlify answers

Does Mintlify support CI/CD, preview deployments and linting?

Yes. Mintlify deploys on every push to your repository. Pro and Enterprise add pull request previews, plus broken link and Vale CI checks on GitHub.

November 21, 2026
HC

Harkirat Chahal

Growth

Does Mintlify support custom domains and a /docs subpath?
Mintlify answers

Does Mintlify support custom domains and a /docs subpath?

Yes. Mintlify includes custom domains on every plan, with automatic TLS, and can serve docs at a subpath like example.com/docs through four proxy methods.

November 21, 2026
HC

Harkirat Chahal

Growth

Can Mintlify run a customer help center?
Mintlify answers

Can Mintlify run a customer help center?

Yes. Mintlify hosts help articles with search on every plan and an AI assistant on Pro at 25 credits per answer. Tickets stay in your help desk.

November 21, 2026
HC

Harkirat Chahal

Growth

Where is Mintlify data hosted, and who processes it?
Mintlify answers

Where is Mintlify data hosted, and who processes it?

Mintlify hosts customer data in AWS us-east-1 by default. Enterprise customers can choose EU hosting in Frankfurt or self-host in their own cloud.

November 21, 2026
HC

Harkirat Chahal

Growth

Can Mintlify show different docs to different audiences?
Mintlify answers

Can Mintlify show different docs to different audiences?

Yes, on Enterprise. Mintlify restricts pages to user groups passed through OAuth, JWT or emails authentication. Readers outside a group get a 404.

November 21, 2026
HC

Harkirat Chahal

Growth

Will Mintlify migrate our docs for us?
Mintlify answers

Will Mintlify migrate our docs for us?

Yes, on Enterprise: the Mintlify team ports and QAs your content. Free and Pro teams self-serve with mint migrate. Contract match is up to 12 months free.

November 21, 2026
HC

Harkirat Chahal

Growth