Skip to article

Repository settings

Every option in a repository's Configure drawer: participation, automation, agent access, analysis, validation and batching.

On this page

Each repository has its own settings, in a drawer titled "Settings: <owner>/<name>". The drawer has two parts. Simple, always open at the top, holds the four settings every repository decides and a summary of what GitHub lets Merget do there. Advanced holds eight groups of settings that start closed; most repositories never open them. This page covers both, in the order they appear. The settings apply only to that repository. Most changes take effect when you click Save. Validation secrets and dependency access grants are stored separately as soon as you add, change or remove them.

Open the drawer

You can open a repository's settings in any of these ways:

  • On Repositories, click Configure on the repository's row.

  • On the repository's queue page, open the Queue status control in the header, then choose Configure in repository settings inside Queue controls.

  • On the repository's queue page, open the command menu and choose Configure followed by the repository's name.

The drawer has its own address, so you can share a link that opens it. Close it with the close button, Esc, a click outside it, or Cancel. When you opened it from a queue, the footer says Back to queue instead of Cancel and returns you there. Closing the drawer discards unsaved settings; save first to keep them.

New repositories start disabled and in Queue mode. The Enabled switch on the Repositories table saves as soon as you flip it, except the first time a repository is turned on in your organization: then it first asks for the automation mode, and saves the two together (Turn a repository on). Other repository settings use the drawer's Save, except validation secrets and dependency access grants. Every save that changes a setting is recorded on the repository's timeline with who saved and which settings moved (a save that changes nothing leaves no row); see Queue timeline. See Enable repositories.

Simple

The Simple section is the top of the drawer, and it is always open.

The repository settings drawer's Simple section showing Enable Merget, the automation mode choices and the target branch.

Configure opens a drawer for one repository.

What to look for
  • Simple starts with Enable Merget and the automation mode, then the target branch. Scroll down for the merge method.
  • Queue comes first, tagged Recommended. Choose it, Advisory or Autonomous, then use Save at the bottom.

Enable Merget

FieldValuesDefaultEffect
Enable MergetOn, OffOffWhen it's off, Merget stops planning, analyzing and preparing pull requests in this repository. Your other settings are kept. This is the same setting as Enabled on the Repositories table, but here it takes effect when you click Save, and it asks nothing: choose the mode under Automation mode below in the same save. Turning it on can be refused while the storage Merget sets aside for your connected account's repository copies is used up (cache_share_exhausted in the API): turn off a repository you no longer need, or contact support to raise the share.

Automation mode

Choose one of three cards: Queue comes first, with a Recommended tag, then Advisory and Autonomous. The mode decides what Merget is allowed to do in this repository. The dialog that asks for the mode when a repository is first turned on, on the Repositories table, offers the same three modes with a line each: Queue first, and the other two behind Show 2 other modes. The mode works together with the repository's checks, reviews, batching and passing-lane settings. See Automation modes.

ModeWhat Merget does
AdvisoryAnalyzes every open pull request and suggests a merge order. It changes no code and no branches and merges nothing, so you keep merging in GitHub as usual; its only change to your branch rules is renaming a required sema check (Security and data).
Queue (default)Prepares each pull request against the code it will merge into and pushes the certified fix to the pull request's own branch; your CI, or Merget's own build when you turn it on, verifies it. You approve merges in the dashboard or merge on GitHub; Merget does not start merging without that approval.
AutonomousPrepares pull requests as in Queue mode. It also merges the first pull request in the queue once GitHub's requirements for it are met, under the landing and failed-CI settings in Queue behavior; a fast-forward landing checks those requirements itself (When Merget lands by push). A person with Write access can also request a landing over failing checks.

Queue and Autonomous need the Merget GitHub App's Contents: write permission on this installation. GitHub grants that permission, not Merget. The readiness summary says whether the App has it. See Automation modes for how the modes differ in practice.

The permission dialog

When you move a repository from Advisory to Queue or Autonomous, or turn one on in Queue or Autonomous, Merget asks GitHub whether the App can write to the repository. If GitHub refuses, the save doesn't go through, and a dialog titled GitHub permission change required opens. Your unsaved choices are kept, and the repository stays in its current mode until the write is allowed.

A GitHub admin of the account approves Contents: write for the App, and then you click Try again. The same dialog can open when you first turn a repository on in Queue or Autonomous mode from the Repositories table; the repository then stays off. A new repository starts in Queue, so its first enable is checked unless you choose Advisory. For the steps, see GitHub permission change required.

Target branch

Target branch is the branch Merget queues for: "Merget queues the open, non-draft pull requests that target this branch." Leave the box empty to use the repository's default branch; its placeholder shows the default branch's name. An explicit branch name must be one git accepts: no spaces, .., @{, ~, ^, :, ?, *, [ or \, no segment starting with ., no trailing /, . or .lock, at most 255 bytes; # and % are allowed (release#2 is a valid name). If you enter an invalid name, the drawer says "That is not a valid branch name:" followed by the rules. A valid name the repository does not have is refused too: the drawer says "That branch does not exist on GitHub." and nothing is saved (when GitHub cannot be reached, the name is saved unchecked). Pull requests targeting another branch join only when they are stacked on a queued pull request.

Merge method

Merge method sets how Merget asks GitHub to merge a pull request when it merges one itself: the head of the queue in Autonomous mode, and each pull request of a batch that lands through GitHub's merge API. A fast-forward push lands the batch commit instead and uses no merge method. For a Queue-mode approval that lands through a fast-forward push, the tested commits determine the history. When you merge manually on GitHub, GitHub's merge button decides. In Advisory mode Merget does not merge. The help text under the field says which of these applies to the mode you chose.

ValueEffect
DefaultMerget chooses from the repository's GitHub settings: a merge commit when the repository allows merge commits, the target branch doesn't require a linear history and no ruleset on it leaves merge commits out, otherwise a squash merge. The option reads Default (Merget decides: merge commit, else squash). Merget never chooses a rebase merge on its own.
Merge commitEvery merge is a merge commit. A target branch that requires a linear history refuses it.
SquashEvery merge is a squash merge.
RebaseEvery merge is a rebase merge.

GitHub decides which methods the repository allows, under Pull Requests in the repository's GitHub settings. A method it doesn't allow is labelled in the menu, for example Squash — not enabled on GitHub or Merge commit — target requires a linear history. You can still pick it, and a note under the field says the save will be refused until it's enabled on GitHub. When you save it anyway, Merget asks GitHub and refuses the save: the drawer keeps the previous value and shows the reason under the field, with a link to the repository's GitHub settings. The reason names the GitHub setting to change: Allow merge commits, Allow squash merging or Allow rebase merging under Pull Requests, or, for a merge commit on a branch that requires a linear history, Require linear history in the branch's protection. Enable the method there, or choose another one. If GitHub can't be reached at that moment, the save goes through.

A ruleset on the target branch can allow fewer methods than the repository: its Require a pull request before merging rule can require a merge type, and GitHub then merges the branch only by the methods it lists. The menu and the save don't check it, but every merge Merget makes through GitHub's merge does, and so does Merget before it pushes a resolution of conflicts with the target branch, which a rebase merge would leave out. Default never picks a method the ruleset leaves out, and a saved method it leaves out is merged as Default would, with no warning in the drawer: the timeline row of each such merge names the method used instead. A saved Rebase the ruleset leaves out doesn't hold a resolution back; a ruleset that leaves only rebase merging allowed does, as a repository that allows only rebase merging does, and the run says why. When the repository's settings and any linear-history requirement allow a merge commit or a squash merge but a ruleset leaves out each one they allow, the blocker "Neither a merge commit nor a squash merge is allowed here (…), so merging is manual; preparation remains available." names the ruleset, unless you chose Rebase and GitHub allows it. Where those settings and requirements already allow neither, the blocker is the rebase-only one below, whatever the ruleset allows.

If GitHub stops allowing a saved method later through the repository's settings or a linear-history requirement, Merget merges as Default would and never blocks a pull request for it; the timeline row of each merge made this way names the method used instead. The drawer then shows a warning under the field that Merget can no longer use the method here, with the reason and the method it merges with instead, until the method is enabled again on GitHub or you change the setting. When no method is left that GitHub allows, the warning follows the saved mode: in Autonomous mode it says Autonomous merging stops until a method is enabled again (the blocker "Rebase-only repositories require manual merging; preparation remains available." holds the head until then); in Queue or Advisory mode nothing was merging on its own, so it says that in Autonomous mode Merget couldn't merge until a method is enabled again.

Changing the merge method prepares every queued pull request again, like any other change to the repository's settings. For how the method affects stacks, see Merge method; for the rule behind Default, see Choosing the merge method.

Readiness

The Readiness summary says what GitHub lets Merget do in this repository. Merget reads it from GitHub when the drawer opens, and again when you click Re-check permissions, after Turn off strict, and after a save that changes the mode or the target branch. It is read-only: Save changes none of it.

RowWhat it says
Merget GitHub AppWhether the App holds Contents: write, Administration: write and Actions: write on this installation, each granted or not granted, with what Merget does with a missing one and a link to review the App's permissions on GitHub.
<mode> modeWhether the mode chosen in the cards above is ready: ready, or what it needs, for example needs Contents: write. It follows the card you pick, before you save.
Required checks on <branch>The checks the target branch requires, or None required.
Required reviews on <branch>How many approving reviews the target branch requires, for example 2 approvals, and whether they must include review from Code Owners; No approvals required when a rule asks for a pull request but no approval; or None required. When branch protection and a ruleset both ask for approvals, the larger number applies. Merget counts approvals on a pull request's latest commit only, so a new push, including a fix Merget pushes, needs them again.
Rules Merget checks itselfThe review rules on the target branch that the Merget App would bypass and that Merget therefore evaluates for every pull request before it lands: review from code owners, approval of the most recent push by someone other than whoever pushed it, and review-thread resolution. A pull request that does not satisfy one waits on it. Merget evaluates these when it lands, not when it composes batches: on a branch that also requires branches to be up to date, such a rule still caps batches at one pull request. Shown only when the branch carries such a rule.
Rules Merget cannot verifyRules on the target branch Merget does not evaluate, such as required deployments or workflows, and whether the Merget App bypasses each on the merge. In Autonomous mode a rule the App bypasses on the merge stops the landing until the rule is enforced on the merge or dropped. Shown only when the branch carries such a rule.
Branch protectionWhether branches must be up to date before merging, which caps batches landed through GitHub's merges at one pull request, and whether the branch requires a linear history.
Manual-merge protection:Whether GitHub makes manual merges follow queue order: verified at last check, not configured, not verified or not applicable in Advisory mode, with when Merget last checked.

A row Merget could not read says Not read yet rather than guessing. When GitHub answered only part of the read, a note says so and names what failed; the rest is what Merget last recorded. When the read failed altogether, the summary says "Merget could not check this repository's readiness:" followed by the reason. Click Re-check permissions after an admin accepts a permission on GitHub: Merget reads the installation again, then the summary.

The repository settings drawer showing Manual-merge protection, Re-check permissions and collapsed Advanced groups.

Manual-merge protection reports the current verification state.

What to look for
  • Re-check permissions reads GitHub's current permissions and protection. It does not change GitHub settings.
  • Expand Make GitHub require Merget's check to review the optional protection setup. Keep your other required checks and reviews.

If the target branch requires branches to be up to date before merging, the summary warns that this caps every batch at one pull request. That cap applies to batches landed through GitHub's merges: a batch Merget lands by its fast-forward push is not capped, and in Queue mode Merge N PRs always lands that way, so the cap holds there only where Merget's push can't land on the branch: the branch's rules refuse it, the App lacks Contents: write, or Merget couldn't verify the App's permission when it last checked. A pull request that is ready on its own may still be left for you to merge in GitHub. Where a ruleset on the branch requires pull requests or restricts updates, the push needs the Merget GitHub App to bypass that ruleset (Always allow) and GitHub to say so; otherwise members are merged one at a time through GitHub. See Batching. An organization owner can click Turn off strict to turn off only that rule; in a ruleset, Merget turns the up-to-date rule off on every status-check rule of that ruleset, for every branch it covers. This works only if the App has GitHub's Administration: write permission. Otherwise, follow the link to review the permission on GitHub and click Re-check permissions, or change the rule yourself in GitHub. For every message, see Batching.

If GitHub still requires the retired sema check somewhere Merget could not rename it, the summary lists each place with what to do there. See Branch protection.

Make GitHub require Merget's check (optional)

Merget follows queue order for its own merges. A person can still merge out of order in GitHub, unless a repository administrator makes GitHub require Merget's check. Make GitHub require Merget's check (optional), under the summary, lists the steps to do that. It is guidance only; nothing in it is saved with the drawer, and Queue and Autonomous work without it. After you change protection in GitHub, Manual-merge protection updates the next time Merget checks the queue. Current protection details lists anything Merget found that stops the protection from being verified. The status reflects the saved mode and branch, not unsaved edits.

A private repository whose GitHub plan offers neither branch protection nor rulesets (GitHub Free, or a private fork of a repository on it) can't take these steps: GitHub refuses both features there, so it can't require Merget's check. In Queue and Autonomous mode the summary says so, with GitHub's own message about the plan, in place of Make GitHub require Merget's check (optional) and its Current protection details. Manual-merge protection reads not configured, or not verified if another of Merget's reads failed.

See Branch protection for the steps and what each status means.

Advanced

Advanced has eight groups, each closed until you open it. Every setting in them has a default that suits most repositories. A group opens on its own when something in it needs fixing: a value the drawer can't save, or one the server refused with a message under its field.

Generated files

This group tells Merget which committed files your build produces, so it never merges them line by line. See Lockfiles and generated files for what happens to them in a run.

FieldValuesDefaultEffect
Detect build output automaticallyOn, OffOnMerget recognizes build output that no rule declares from git attributes and content on the target branch and the merge base — never from the pull request's own copy — and keeps it out of analysis. When a file your git attributes mark linguist-generated conflicts, Merget takes the target branch's copy; when a file only its content recognized conflicts, for example a minified bundle, Merget hands the conflict back to you with the rule to declare. When it's off, only the rules below and lockfiles count as build output. On or off, a conflicted file that records hashes of other files is handed to you rather than merged, until a rule covers it; see Lockfiles and generated files.
Generated pathsA list of rules, or noneNoneEach rule names files your build produces and what Merget does when they conflict. Click Add a rule to add one and Remove to delete one.

Each rule has these fields:

  • Paths: the files, one glob per line, relative to the repository root, for example dist/** or docs/manifest.json. ** matches any number of directories, * any part of one name, ? one character.

  • Regenerate command: the command that rebuilds them. Merget runs it on the merged code that will land, and keeps only what it writes under the paths. The command gets no credentials: none of your validation secrets, no dependency access and none of Merget's own. If it needs dependencies, it installs them itself, for example npm ci && npm run build.

  • Working directory: the directory the command runs in, relative to the repository root. Empty is the root.

  • Strategy: Regenerate (run the command), Keep target (take the target branch's copy), Keep source (take your branch's copy), Agent (let Merget repair them) or Bounce to a person (hand the conflict to you). Default regenerates when the rule has a command and keeps the target's copy when it doesn't.

  • Inputs: the files the rule's output is built from, one glob per line. When a merge changes any of them, Merget runs the rule's regenerate command even if the output itself didn't conflict. Offered for a rule with a regenerate command and the Default or Regenerate strategy, since no other rule runs anything when an input changes.

For example, a docs site that keeps a manifest with a hash of every page uses one rule: Paths docs/content/manifest.json, Regenerate command node scripts/docs-content.mjs, Inputs docs/content/**. With this rule, a pull request that edits a page is merged with a manifest rebuilt over the pages that land, whether the manifest conflicted or not. Without it, a conflict in the manifest is handed to you with this rule to declare; see Files that record hashes of other files.

Paths, inputs and the working directory must be relative to the repository root: no leading / or ./, no .., and forward slashes only. The Regenerate strategy needs a command. The drawer marks a rule it can't save under the field at fault, for example "Paths must be repository-relative", and the footer says "Fix the highlighted field before saving." until you correct it. A rule you didn't edit is saved back exactly as it was.

When a merge needs a rule's files rebuilt, because its paths conflicted or, with Inputs, an input changed, Merget runs the rule's regenerate command in Queue and Autonomous modes, provided the pull request's commit is trusted: on the repository's own branch, opened and pushed by a person or by a bot listed under Trusted bots, or approved by a maintainer (Pull requests from forks and bots). It runs whether or not Merget's own build is on, and the time limit for your commands bounds it either way. With the build off, the fix that carries the regenerated files is pushed not verified by Merget's build, and your CI on the merget/queue/… branch verifies it, as it does any other fix; with the build on, Merget's build checks it first. If the command fails or runs out of time, the rule's files are handed to you with the reason (A regenerate command didn't settle its files). For a fork's commit, or a bot's, that no maintainer has approved, Merget runs no regenerate command, even with Prepare without approval. Nor does it run a trusted pull request's regenerate command over the code of such a commit queued ahead of it, until a maintainer approves that commit; the reason then names the earlier pull request. It runs none either over code queued ahead that Merget can't match to an open pull request's current commit, as when a pull request ahead was pushed to after the queue was planned, since it can't tell whether that code was approved. When Merget runs no command, it hands a rule's files to you, with the reason, only when the merge could have left them stale: the output conflicted, or both your branch and the branch it merges onto changed files the rule covers. A fix Merget made to one of those files hands them to you as well, since the fixed file matches neither side. When only one side changed them, Merget takes that side's files as they are, and that side's own checks cover them. See What runs on Merget's side.

Build and test setup

This group says whether Merget runs your own build and tests on a fix, how, how long each command may take, and which credentials the setup step receives. See Validating fixes.

The Build and test setup group of a repository settings drawer, opened under Advanced, with Merget's own build and the command time limit.

Open a group under Advanced to change what is in it.

What to look for
  • Merget's own build is Off by default; choose Auto to discover your commands, or Custom recipe to write them.
  • Validation secrets for private registries are in the same group.

Merget's own build

ValueEffect
Off (your CI verifies fixes) (default)Merget certifies fixes without running your build or test commands, pushes them, and your own CI on the merget/queue/… branch verifies the merge; the repair agent's own commands and your regenerate commands still run. See Validating fixes and What runs on Merget's side.
Auto (discover the repository's commands)Merget works out the build and test commands from your repository and runs them on every fix before pushing it, in an isolated environment; a red build blocks the fix. The run page shows which commands it chose.
Custom recipeMerget runs the recipe you write in the form below.

The Custom recipe form has these fields; The full recipe describes each:

  • Ecosystem: Rust, Node.js, Python, Go, Java (Maven or Gradle), .NET or Make.

  • Working directory: where the commands run, relative to the repository root. Empty is the root.

  • Setup commands: one per line, run in order before the build. They are the only commands that receive validation secrets.

  • Build command and Test command: at least one of them.

  • Environment variables: a name and a value per row, applied to every command. Credentials belong in validation secrets, never here.

A recipe with a single build or test command and nothing else needs no ecosystem; it is saved as that one command. Anything more names its ecosystem, and the drawer says "Choose the ecosystem" until you do. A recipe set through the API with toolchain requirements keeps them when you change the form.

With Auto or Custom recipe and no usable recipe, a fix is still certified and pushed, and your CI verifies it as with Off; the run's report records that Merget's build did not run and why, and the run reads not verified only when your CI cannot answer either. When a recipe exists but can't run in Merget's environment (a missing tool, a dependency it can't fetch, a command past its time limit), the same happens. See What Merget's build cannot reach and Verification through your CI.

Time limit for your commands

Time limit for each command (seconds) is how long one of your own commands — a build, a test run, or a regenerate command — may take before Merget stops it. A stopped build or test records the fix as not verified by Merget's build; a stopped regenerate command hands its rule's files to you. The limit applies to regenerate commands whether or not Merget's own build is on. It is saved as validation_timeout_secs. The help under the field gives the range Merget accepts, today from 60 to 1800 seconds (one minute to thirty); leave it empty for the default of 900. It bounds each command on its own, not the whole run. A repository whose build genuinely needs longer than the range allows can have its limit raised by Merget: contact support.

Validation secrets

Validation secrets matter only while Merget's own build is on: with it off, Merget runs none of your build or test commands and needs no credential, and a regenerate command never receives one, on or off. They hold what the setup step of your validation recipe needs and the Merget GitHub App can't stand in for: a token for a private npm, PyPI, cargo or Go registry, a Go module proxy, or GitHub Packages. Private Git dependencies hosted on GitHub under the same account use Dependency access grants instead of a validation secret.

Each secret becomes an environment variable of the setup step, under its own name, in the runs Merget makes for this repository. Your build and test commands, Merget's automatic conflict resolution and pull requests from forks never receive it, even after a maintainer approves a fork's commit. A pull request a bot opened or pushed receives it only once a maintainer approves its commit, unless the bot is listed under Trusted bots, and a run whose predicted base includes a fork or an unapproved pull request receives none. See Pull requests from forks and bots.

  • Name. An upper-case letter followed by up to 63 upper-case letters, digits or underscores, like NPM_TOKEN. Some names are reserved, such as PATH and HOME. The drawer says which rule a name breaks before you save.

  • Value. One line, at least 8 bytes and at most 8 KB. A trailing line break from a paste is dropped.

  • Write-only. Click Add and the value is sealed and never shown again, here or anywhere else. Each row shows the name, a fingerprint of the value (how you can tell a rotation from a re-save), when it was last updated and by whom. Enter an existing name and the button reads Rotate: saving replaces the value. Merget's operational logs record a secret's name, scope, the actor and a keyed fingerprint, never the value.

  • Stored on its own. A secret is stored the moment you click Add or Rotate, and removed the moment you click Delete on its row and confirm Remove (Keep puts the row back). The drawer's Save button plays no part, and Cancel doesn't undo it.

  • Two scopes. A secret set here applies to this repository only. An organization owner can set a secret for selected repositories or all repositories under Organization secrets in Settings › GitHub. New organization secrets default to no selected repositories. This drawer lists this repository's own secrets and the organization secrets delivered to it, with Repository or Organization badges. A repository secret overrides an organization one of the same name; remove the repository's own and an organization value delivered to it applies again. Organization rows cannot be changed here; the row links to their delivery controls.

  • Who can read one. Whoever can change this repository's recipe (Maintain) or push code its setup step runs (Write) can read a secret that reaches this repository, an organization secret included. Prefer read-only tokens scoped to what the build needs.

  • When it applies. The next preparation of each pull request presents the new value; nothing waits for Save. A pull request already blocked on a refused registry isn't prepared again on its own: push, or start a new run.

When a registry refuses the credential, Merget's build could not run: the fix is still certified and pushed, and your CI verifies it. The run's reason says that the named registry refused the credential Merget's setup step presented, that the validation secrets configured for this repository did not authenticate or none is set, and to set or rotate them here. The reason names the tool (npm, pip, cargo or go) and never a secret's name or value. See Private dependencies for how to give Merget's build access.

Dependency access

Use Dependency access to choose which other private GitHub repositories this repository's build may read. Both repositories must belong to the same GitHub App installation and be visible to you. The dependency can remain disabled in Merget.

  1. Open Advanced › Build and test setup in the consuming repository's settings. Viewing the access list needs Maintain or Admin on that repository.

  2. Under Dependency access, choose the dependency from Repository and select Grant. Only a GitHub Admin of the dependency repository can grant access; being an owner of the Merget organization does not replace that permission.

  3. Check that the repository appears in the list with read-only access and when it was granted. The next preparation uses the new access.

A grant is saved immediately. The drawer's Save plays no part, and Cancel does not undo it. To remove a grant, select Revoke on its row, review the effect, then confirm Revoke; Keep leaves it in place. Either a GitHub admin of the dependency or a maintainer of the consuming repository can revoke it. Later preparations cannot fetch that dependency through this grant; a build that needs it may be unable to run.

The read-only token is available only to the setup step of Merget's own build. It covers up to 500 dependency repositories named by the target branch's manifests, included in the installation and explicitly granted to this repository. A grant alone does not make a dependency introduced only by the pull request available. Fork pull requests never receive the token, even after approval; bot and predicted-base restrictions also apply. See Credentials used for validation.

Anyone who can push code that this repository's setup step runs, or change that step, can read what its token can read. Grant only the access this build needs. These controls require a person signed in to the dashboard; agents cannot read, grant or revoke dependency access. For private registries and GitHub Packages, use Validation secrets.

Queue behavior

Batching tests several ready pull requests together with one CI run and then lands them in order. This group holds batching, what happens to the queue behind a pull request that can't land, and what Merget does with pull requests from forks and bots:

  • Land certified sequences as batches: On or Off. Default: On in Queue and Autonomous modes. Turn it off to land one pull request at a time.

  • Batch size: at most this many pull requests per batch. Leave it empty for no limit, which the placeholder says.

  • Landing: how a passing batch lands in Autonomous mode. Choose Default (automatic), Automatic, Fast-forward push or Merge API. Automatic lands by one fast-forward push when your branch protection allows it, Merge method is Default or Merge commit, and merge commits are allowed, by the repository's settings and by every ruleset's required merge type on the target branch; otherwise it lands through the merge API. A fast-forward push leaves one merge commit per pull request and doesn't apply a squash-only setting, so choose Merge API (or set Merge method to Squash) to keep squash merges.

  • Skip what cannot land after (seconds): empty (the default) is off. A pull request that cannot land for longer than this is moved behind the ones that can, and put back in order once it can land again.

  • Passing lane: On or Off. Default: Off. On, when the first pull request is not ready, Merget tests and merges the independent ones behind it, ahead of it; the first pull request keeps its place. While it is on, two more fields appear: Up to (pull requests), how many pull requests one lane may hold (the placeholder shows the default, 4), and After (seconds) not ready, how long the first pull request must have been unable to land before a lane opens (the placeholder shows the default, 0: at once). Kept for when the mode changes in Advisory mode. See When the first pull request is not ready.

  • Move to front, five fields that decide who may put a pull request ahead of everything not yet in a batch, and how. Kept for when the mode changes in Advisory mode. See Move a pull request to the front.

    • Who can move a pull request to the front: Default (Maintain), Write, Maintain or Admin. The access on GitHub a person needs to move a pull request to the front and to put it back in order. A move changes the order only, never a gate.

    • Pull requests at the front at once: default 2, which the placeholder shows; from 1 to 16. How many may stand at the front, first come first served. A lower number ends none that stand.

    • Urgent moves to the front: Off (default), Maintain or Admin. Who may make a move urgent: it then does not wait for the batches still being composed or in CI ahead of it. Merget abandons them, cancels their CI where it may, and tests them again behind it; green batches are kept. Off allows none, and turning it off makes a standing urgent move an ordinary one.

    • Agents may move pull requests to the front: On or Off. Default: On. On, a coding agent signed in with Merget may move a pull request to the front, recorded under its person's name and marked as an agent's. Off refuses agents, both moving a pull request and putting one back in order; a person can still do either in the dashboard.

    • Back in order if not ready after (seconds): default 86400 (a day), which the placeholder shows; from 60 to 2,592,000 (30 days). A pull request moved to the front keeps its place until it is ready; if it is not ready within this long, it goes back in order. One already at the front stays there. A shorter value applies to moves already waiting from Merget's next pass.

    Saving these settings re-prepares nothing and stops no merge request: they decide who may reorder the queue, not what Merget prepares.

  • Maximum wait (seconds): how long Merget may wait for nearby preparation to finish before forming a batch. A larger value can combine more changes; a smaller value can start CI sooner. Other queue requirements can still keep a pull request waiting. See Several batches in CI at once.

  • Batches in CI at once: default 4, which the placeholder shows; from 1 to 10,000. The most of Merget's batch runs that may hold your CI runners at once: the next batch starts CI on top of the current one while that one is still in CI or green, and green batches whose checks have concluded don't count. 1 tests one batch at a time, and a batch can still be tested behind a green one. The help line under the field says how to size it (the runners this repository's batches may use, divided by the jobs one batch runs at the same time) and states the cost: each batch in CI is one CI run, thrown away if a batch ahead of it fails or, in Queue mode, is merged through GitHub instead of by Merge N PRs. See Several batches in CI at once.

  • Cut batches when expected green drops below: Off by default. Turn it on to start a new batch before a change that makes the group more likely to fail. Set a probability between 0 and 1; the initial value is 0.5.

  • Accept fixes and conflict resolutions submitted to Merget: On or Off. Default: On. On, anyone with Write access can hand Merget a fix for a failed batch instead of pushing the pull request's branch; Merget tests the batch again with it and lands it together with the pull request. Off removes that option for new submissions; fixes already submitted continue. Fixing the branch works either way. The same setting governs a resolution of a pull request's conflicts made on the commit the queue lands, which lands with the pull request instead of being pushed to its branch; off, resolving on the branch works as before. See Submit a fix to Merget and Resolve for merge time.

  • Pull requests from forks and bots and Trusted bots: see Pull requests from forks and bots below.

  • Branch queues: Default (automatic), Every landing branch or Only these branches. A pull request whose base is another branch of the repository lands into a queue of its own for that branch, unless Merget has turned branch queues off for this repository (see Branch queues), opened when the first such pull request appears and retired when nothing lands into the branch any more; the queue page lists them beside the trunk's under Queues. Default and Every landing branch open one for any base. Only these branches opens one only for a base matching a pattern in Branches to queue.

  • Branches to queue: shown while Only these branches is chosen. One pattern per line; * is the only wildcard, and a pattern matches a whole branch name (release/* matches release/2.0, not release). At least one is needed: Merget's server refuses a save that lists none, under this field.

  • Excluded branches: one pattern per line, the same way. A branch these match never has a queue, and its pull requests are listed under Not in a queue with the reason. A pattern that matches the target branch is refused under this field, since the trunk's queue cannot be excluded.

  • Look through a nested queue's landing: On or Off. Default: On. On, the pull requests of a queue nested under another pull request are also read against the pull requests queued for the branch it lands into, over that landing; what breaks is shown as Look-through findings, advisory, and never blocks. Off, nothing is read across the landing.

  • Infer stacks from bases: Default (on), On or Off. On, a pull request whose base is another open pull request's branch is read as stacked on it and queued behind it. Off, such a pull request is in no queue and listed under Not in a queue as "Stack inference is off for this repository" until its base is the target branch or a branch with a queue.

  • Hand-chained stacks land: Default (through), Through to the target branch or Into the root's branch first (fold). How a stack Merget read off base branches lands until someone changes it on the queue page: through, each pull request retargeted to the target branch as the one below it merges; fold, the pull requests above the root landing into the root's branch first as a queue the root carries, the root then landing with all of them. GitHub stacks always land through.

The fields with a range — Batch size, Skip what cannot land after, Up to (pull requests), Pull requests at the front at once, Back in order if not ready after, Maximum wait and Batches in CI at once — say it in the help under each field, as Merget's server gives it. A value outside the range is refused in the field before you save.

Once batches have run, a line under Batches in CI at once says what their CI used and about how many runners the value you type asks for at that, such as "3 recent batches ran up to 3 jobs at once: 4 batches ≈ 12 runners." It's information only and never limits the value; see Several batches in CI at once.

A note under the batching switch explains what batching does in the current mode:

  • Advisory mode never batches. Your choice is kept for when you change the mode.

  • In Queue mode, a batch lands when you merge its pull requests in order, or when you approve Merge N PRs on the queue page.

  • In Autonomous mode, a passing batch lands on its own, behind the same checks and reviews as a single pull request.

For every field and message, see Batching.

The Queue behavior group showing its batching switch, batch size and landing choice.

Batching settings are in Queue behavior, under Advanced.

What to look for
  • The batching switch enables combined CI for eligible prepared pull requests.
  • In Autonomous mode, Landing chooses Automatic, Merge API or Fast-forward; Queue mode requires your approval.

Pull requests from forks and bots

In Queue and Autonomous modes, a pull request whose head is in a fork, or that a bot opened or pushed (for example Dependabot, or a coding agent's account), is analyzed but not prepared until a person approves its commit. Until then Merget runs none of its code and no repair agent, sends nothing of it to a model service, leaves it out of the predicted base of the pull requests behind it and never lands it. It waits behind every pull request that can land, and its Merget check concludes Action required with a title such as "Merget: awaiting maintainer approval of abc1234 · analysed only".

FieldValuesDefaultEffect
Pull requests from forks and botsAnalyse only until a maintainer approves the commit, Prepare without approvalAnalyse only until a maintainer approves the commitWith Prepare without approval, Merget prepares such pull requests without waiting, but an unapproved commit still receives no validation secrets or dependency token, and no regenerate command runs on its code: neither its own, nor that of a pull request queued behind it, which receives no credentials while that commit is ahead of it either. Autonomous mode still never merges it: it waits for an approval or a merge on GitHub. Only a person with Admin access can choose Prepare without approval.
Trusted botsBot logins, one per lineEmptyPull requests these bots open or push on the repository's own branches are treated like anyone else's, with no approval.

To approve, a person with Maintain access clicks Approve this commit on the pull request in the queue's details panel or in Needs you. The approval covers that exact commit: Merget prepares it, runs its regenerate commands, builds it when Merget's own build is on, repairs it, and composes it into the predicted bases of the pull requests behind it. A new commit needs a new approval. Nothing merges on the click, and no coding agent can approve a commit: approving is a person's step in the dashboard.

An approved fork commit receives no validation secrets or dependency token. An approved commit a bot opened or pushed on the repository's own branch receives them like any other. Fork pull requests are never batched, put in a passing lane or staged on your repository's branches, approved or not. See What runs on Merget's side.

CI integration

  • Required CI checks: checks the batch commit must pass, one per line, in addition to the checks the target branch already requires.

  • Check paths (JSON): which paths each check exercises, as a JSON object from check name to a list of globs, for example {"verdict": ["src/**", "tests/**"]}, so a failed batch can rank the pull requests most likely to have broken it. Empty ranks by overlap alone.

  • CI timeout (seconds): how long each of the batch commit's required checks may run, counted from when it starts, before the batch ends without landing. A check that hasn't started within twice this time of the batch's push, for example while it waits for a runner or for the jobs it needs:, ends the batch too, without blaming any pull request, and the batch is formed again. Where Merget can't cancel the batch's runs (the App lacks Actions: write, or Cancel CI Merget no longer needs is off), a batch whose checks are only waiting for a runner isn't ended this way: a batch formed again would queue its runs behind the ones still waiting, so Merget waits for those instead, up to 24 hours from the push. A check waiting on jobs already running is counted from when the earliest of them started. A check your CI reports as a commit status rather than a check run carries no start time, so it is counted from the batch's push. The help gives the range.

  • Cancel CI Merget no longer needs: On or Off. Default: On. Stops the workflow runs of a batch that ends without landing. Needs the Actions: write permission on the Merget app; a note under the switch links to where you grant it. See Cancelled CI.

Batch commits are pushed to branches that match merget/queue/**, and so is every fix Merget stages for verification through your CI, with or without batching. The workflows that produce your required checks must run on pushes to those branches. CI timeout (seconds) bounds that wait too.

Branch health and deployment

FieldValuesDefaultEffect
Verify main after every mergeOn, OffOn in Queue and Autonomous mode, Off in Advisory modeMerget records which commits of the target branch are green and, when the branch goes red, finds the commit that broke it and says so on the queue page, in Needs you and in a Merget / trunk check on the red commit. Batches are then judged on the checks that are not red on the branch. The switch shows the mode's default until you move it. See When main is red.
Publish a verified branchOn, OffOffMerget keeps a branch named merget/verified/<target> (for example merget/verified/main) at the newest green commit of the target branch, for deploys to follow. It only moves forward, never runs your CI, and needs Verify main after every merge to be on. See The verified branch.
Reset it after a history rewriteOn, OffOffShown once a verified branch is published. When someone force-pushes the target branch, Merget moves the verified branch to the newest green commit of the new history. Off leaves it where it was and notes the rewrite on the timeline.

The switches name your target branch in place of main.

Coding-agent access

What agents may read here sets what a coding agent signed in with Merget can read in this repository.

ValueEffect
OffAgents can't read this repository.
Findings onlyAgents can read pull request findings and queue status. Merget refuses code graph questions.
Findings and graph (default)Agents can read pull request findings and queue status, and can ask questions about the code graph of any commit.

The organization switch under Settings › Agents comes first: when it's off, the tools can't read anything in any repository, for an agent or for your own signed-in session driving them. Both settings limit Merget's tools, never the dashboard itself. See Connect coding agents.

Language configuration

The C parsing fields decide how much of your C code's surroundings Merget takes into account. They matter only in a repository that contains C code, and most repositories leave them alone. See C and header files for what C analysis covers.

FieldValuesDefaultEffect
Parsing modeDefault, Single-file, Repo-local, System headersDefaultSingle-file reads each C file without its headers, so C findings are less complete. Repo-local uses the repository's own headers, so C findings are more complete, for example for calls made through macros. System headers also uses system headers where they are available; see When System headers applies. Default follows Merget's own default — Repo-local today — and doesn't show which one that is on the row. If Merget changes that default later, your repository follows the change.
Include directoriesDirectories, one per lineEmptyExtra directories where Merget looks for your headers. They take priority, in the order you list them.
DefinesMacros, one per line, as NAME or NAME=valueEmptyMacros Merget treats as defined in every C file, the way your build would define them on the command line.
Language standardCompiler default, or one of the standards listed under LimitsCompiler defaultThe C dialect Merget reads the code as.

Include directories, Defines and Language standard sit under Overrides, which is closed until one of them has a value. They apply to Repo-local and System headers alike. With Parsing mode set to Single-file they are kept but not used.

When System headers applies

System headers depends on what is enabled for your Merget deployment; Repo-local, the default, needs nothing enabled. Where system headers are not enabled, System headers reads like Repo-local; the run's Coverage says which applied. Contact support if your project needs system headers. Your saved choice is retained.

When to use each override

  • Include directories. Add a directory when your include paths start from it. For example, if files write #include "lua/lua.h" and the header is at deps/lua/lua.h, add deps. Also add a directory when two headers share a name and the wrong one would be used: your directories win. A run lists any directory you named that doesn't exist at the analyzed commit, so a typing mistake shows up there. See C parsing in a run.

  • Defines. Add a macro when your build passes it on the command line and the code depends on it, for example HAVE_CONFIG_H, or MAX_CLIENTS=64 for a value. Without it, Merget reads the branch of an #ifdef that your build would not. You don't need defines for macros that your own headers set.

  • Language standard. Set it when the code is written for a particular dialect, for example c99 for code that uses names a later standard reserves, or gnu11 for code that relies on GNU extensions. Most repositories leave it on Compiler default.

Merget reads C as if it were built for Linux on x86-64, so code specific to another platform may be misjudged. You can't pass other compiler options.

Limits

  • Include directories: at most 32, each at most 256 bytes long. Write each one relative to the repository root with forward slashes, for example deps/lua/src. A directory can't start with /, - or @, can't contain a backslash, a colon or a control character, and can't have . or .. as a part of its path. Blank lines are ignored, and a directory listed twice is kept once, where it first appears.

  • Defines: at most 64, and at most 4 KiB in total. A name starts with a letter or an underscore, continues with letters, digits and underscores, and is at most 64 characters long. A value, after =, is at most 256 printable ASCII characters. A name can't be defined and can't start with __has_. Write the macro on its own, without -D.

  • Language standard: one of c89, c90, c99, c11, c17, c23, c2x, gnu89, gnu90, gnu99, gnu11, gnu17, gnu23 or gnu2x.

The drawer marks a value outside these limits with the reason, and the footer says "Fix the highlighted field before saving." until you correct it. A value saved earlier that breaks a limit opens the group by itself.

Turn it off for a repository

  1. Open Repositories and click Configure on the repository's row.

  2. Under Advanced, open Language configuration and set Parsing mode to Single-file.

  3. Click Save.

The change applies to runs that start after you save. C findings are then less complete: for example, calls made only through macros defined in other files are missed. To go back, set Parsing mode to Default or Repo-local.

Finding and merge policies

These options control which findings Merget reports and fixes, and what Autonomous mode does when CI fails on a batch Merget certified. Layer 2 interference analysis offers Default (on), On and Off: Default follows Merget's own default and shows it in parentheses, and if Merget changes that default later, your repository follows the change. Layer 2 blocking's default is Evidence.

FieldValuesDefaultEffect
Layer 2 interference analysisDefault (on), On, OffOnFinds pull requests that affect each other's behavior without touching the same lines. Whether an interaction can block is controlled by Layer 2 blocking below. Turning analysis off disables Layer 2 findings; other findings and textual conflicts remain available.
Layer 2 blockingDefault (evidence), Evidence, Calibrated, OffEvidenceOff keeps interactions non-blocking. With the default Layer 2 blocking setting, an overlapping change blocks, as an Interaction, when Merget's evidence for it is precise from end to end: every step from one change to the other is precise, both changes are located exactly, and no step rests on a call Merget could confirm only from the changed files. Every other overlapping change remains non-blocking. Calibrated also requires Merget's measured record to support the interaction's kind in its language; the repository readiness information shows the available kinds. See Findings.
Also resolve non-blocking findingsChecked, uncheckedCheckedTries to fix non-blocking findings as well as blocking ones. With Merget's own build off, the fix is pushed unverified and your CI verifies it, as it does a blocking one; with the build on, Merget verifies it first. A non-blocking finding that can't be fixed safely stays visible and doesn't block the merge. In Advisory mode Merget fixes nothing, so the choice is only kept for when you change the mode.
Files beyond the conflict a fix may editA whole number, or empty8When a failed build names files outside the conflict, a fix may edit up to this many of them, so a rename or a changed signature can be followed into its callers. 0 keeps every fix inside the conflicted files and their directories. Only Merget's own build names such files, so with the build off the number has no effect, and the settings sheet says so. The help gives the range, today from 0 to 8.
Edits beside the conflictDefault (off), Off, Same-language filesOffWhich files a fix may change besides the conflicted ones. Off allows only the conflicted files and a file a failed build named. Same-language files also allows files of the same language in the same directory, for example the caller of a renamed function next door. Neither setting ever allows a manifest, a lockfile, anything under .github/, a CODEOWNERS, .gitattributes or .gitmodules file, or agent configuration, and every file a fix changed beside the conflict is listed on its commit.
When CI fails on a certified batch (shown in Autonomous mode)Find the failing pull request, Land it anyway on Merget's verdictFind the failing pull requestWith the second, Merget lands a batch it certified by one fast-forward push although a required check failed on it, once every required check has concluded, and records it as a landing over failing CI. Use when CI is flaky and Merget builds your code itself. Its sub-switch Only when Merget built and tested it itself (on by default) keeps that to batches Merget built and tested with its own build. A note under the setting says when the Merget app can't push past the branch's required checks, with a link to the branch's rules. See Land on Merget's verdict without asking, and When Merget lands by push for what a push landing checks itself.

For what Layer 1, Layer 2, Precise and non-blocking mean, see Findings.

What Merget manages

The drawer lists the settings you can change for a repository. Some service limits and repair options are managed by Merget and have no customer control. If a recurring limit prevents a repository from working, share the run and its message with support.

  • Whether this repository opens queues for other branches (branch queues) and whether Merget lands GitHub stacks through GitHub's stack merge (native landing). Both are on; Merget may turn either off for one repository, and the pages that depend on them say so.

You can set the time limit for your commands yourself. To cap the organization's monthly credits, an owner sets the spending cap in Settings › Billing. See Spending cap.

Save or cancel

The footer has Cancel and Save, or Back to queue and Save when you arrived from a queue.

  • Save is available only when something has changed. Saving sends only the settings you changed, and keeps every other setting as it is.

  • While you have changes, the footer says "Unsaved changes."

  • While a field is invalid, the footer says "Fix the highlighted field before saving." The field shows its own error, and its group opens.

  • While Merget saves, Save reads Saving… and every field is locked.

  • After the save, Saved appears under the title for a few seconds.

  • Cancel or Back to queue closes the drawer and discards unsaved settings. Validation secrets and dependency access grants have already been stored separately and are not undone by closing it.

If the save fails, the drawer shows one of these messages:

MessageWhat to do
"The server refused this value:" under a field, with the range or the reasonCorrect that field, then save again. Its group opens to show it. The message stays until you change the field.
"The server refused the policy:" followed by a reason, at the top of the drawerThe reason names a setting with no message line of its own, such as a switch or a menu, or the save as a whole. Correct the value it names, then save again.
A reason under Merge method, with a link to the repository's GitHub settingsGitHub doesn't allow that method. Enable it there, or choose another one. The field goes back to the saved value. See Merge method.
A message asking you to reopen the drawer and try againClose the drawer, open it again and repeat the change.
GitHub permission change required dialogFollow the permission dialog.

If the Repositories page itself can't load, it says "Repository configuration could not be loaded" or "Repositories could not be loaded". Click Retry.

How a save is applied

Saving changes only the settings you edited. For example, changing the merge method keeps the batch size and required checks as they were. A colleague's change to a different setting is kept too.

Choosing Default follows Merget's current default and any later changes to it. Fields with a range show it beside the control; enter a value within that range. Invalid values keep the drawer open with a message beside the affected field.

Every change to a repository's settings prepares its queued pull requests again, except a change to the five Move to front fields under Queue behavior, which re-prepares nothing and stops no merge request. Saving the same values again changes nothing and prepares nothing again. Scripts and agents should follow Saving settings.

Who can change settings

Anyone in the organization who is signed in to the dashboard and has Maintain or Admin access to the repository on GitHub can enable it and change its repository settings, including the automation mode and its validation secrets. Granting Dependency access additionally requires Admin on the dependency repository. For anyone else the drawer says, for example, "You need maintain or admin access to acme/api on GitHub to change its settings." Turn off strict needs more: an organization owner with Admin access to the repository. A member who tries gets "Only an organization owner can turn strict protection off." Organization-wide secrets are owner-only too; a member gets "Only an organization owner can change organization-wide secrets."

A coding agent you authorized can change them too, with the permission to change repository settings and your own access on GitHub: what it may change is exactly what you may. The repository's agent access level is the exception, which only a person signed in to the dashboard changes. See Connect coding agents, and for roles, Team and access.