main). This is the branch Mintlify builds your live site from, so PRs land there by default and publish on merge.
If you want changes to go somewhere else, the control depends on how the run was started.
Agent runs in Slack, the editor, or the dashboard
For a single agent run, name the branch you want in the prompt. The agent creates the pull request against the branch you name, or pushes commits directly to it when the branch already exists. For example:- “Open the PR against the
stagingbranch.” - “Push these commits to
docs-refresh.”
Automations
Automations always open their pull requests against the deploy branch. There is no per-automation setting to target a different base branch. If you need automation output to land on a non-production branch, point the deployment itself at that branch in Git Settings, or use a separate deployment for that branch and run the automation there. To stop automation PRs from merging without review, set the automation’s update mode to Modify and wait for review on its configure page. See Update mode.Related settings
- Choose how the agent publishes changes — pull request vs. direct push, and how branch protection interacts with each.
- Git Settings — change the deploy branch or the docs subdirectory the deployment builds from.