Configure your repository so that the Mintlify GitHub App can create and merge pull requests without review and status check requirements blocking it. This allows you to set up workflows that automatically merge changes toDocumentation Index
Fetch the complete documentation index at: https://mintlify-docs-automerge-setup-requirements.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
main.
Automerge requires two things on your repository:
- Squash merging is enabled. Mintlify uses squash merge to land PRs.
- The Mintlify GitHub App can bypass branch rules. Add the app to the bypass list for every ruleset or classic branch protection rule that requires reviews on your deploy branch.
The Mintlify GitHub App must have bypass permissions on every ruleset and branch protection rule that targets your deploy branch, including rules defined at the organization level and the repository level. If any rule is missing the bypass entry, the workflow creates a PR, but does not merge it.
Prerequisites
- Repository admin access (and organization admin access if there are org-level rulesets)
- Mintlify GitHub App installed on the repository
- Squash merging enabled on the repository
- One or more rulesets or branch protection rules targeting the
mainbranch (at the org or repo level)
Enable squash merging
- On GitHub, go to your repository’s Settings -> General.
- Under Pull Requests, select Allow squash merging.
- Click Save.
Add the Mintlify GitHub App to your branch rules
Repeat these steps for every ruleset that applies to your deploy branch. Both organization-level and repository-level rulesets.Navigate to rulesets
- Repository rulesets: On GitHub, go to your repository’s Settings -> Rules -> Rulesets.
- Organization rulesets: Go to your organization’s Settings -> Rules -> Rulesets.
Add the Mintlify GitHub App to the bypass list
- Under Bypass list, click Add bypass.
- Search for and select the Mintlify GitHub App.
- Set the bypass mode to Always.
Verify the setup
- For contributors: Open a PR targeting
main. Confirm that it still requires approval and passing status checks before you can merge. - For workflows: Trigger a workflow with automerge enabled. Confirm that the workflow runs and successfully merges a PR.
- In the dashboard: Open the Workflows page and confirm that the automerge setup banner is no longer displayed.