Documentation Docs version: dev (Pre-release: Gitoodo has not been released yet)
GitHub Get notified

For users · Guides

Safe auto-merge for pull requests from coding agents

On this page
  1. What has to be true before a merge
  2. Without CI: set it up first
  3. What you can stop at any time
  4. Whose text reaches a worker
  5. Workers with permission checks
  6. See what happened
  7. Get started
Screenshot of the app: Safe auto-merge

Gitoodo merges a worker's pull request on its own, but only when your repository's rules allow it. This page lists what has to be true before a merge, what you can stop at any time, and whose text may steer a worker at all. Each point links to the detailed reference.

What has to be true before a merge#

  • The required checks have passed. Gitoodo reads them from your forge: branch protection and rulesets on GitHub, the protection rule of the base branch on Forgejo and Gitea, "Pipelines must succeed" on GitLab. If the forge requires nothing, every check reported on the pull request has to pass. You can add checks of your own per repository in its settings under merging.
  • Exactly the checked commit is merged. Every merge is pinned to the commit whose checks passed. A newer push has to pass the checks again.
  • Required reviews are given. If your rule requires approvals, the pull request waits for a person, and a card shows how many are still missing. Gitoodo never approves its own work.
  • The rule lets the merge account merge. Otherwise the forge refuses the merge, Gitoodo stops trying until the rule changes and shows a card under Asked of me with the cause and the fix, such as Allow the merge account. See Branch rules.

A failed check sends the pull request back to its worker with the failure. A real merge conflict is never forced: the pull request gets a comment naming the files, and the issue waits for you.

Without CI: set it up first#

If a pull request has no check at all, Gitoodo waits three minutes for one to appear and then merges. That keeps repositories without CI working, but nothing tests the code. So give every repository with the autopilot on a CI job and require it in the branch rule. Set up project in the settings can add a starter gate workflow that you fill with your real checks.

What you can stop at any time#

  • Hold a single pull request: it waits until you release it. Veto: it is never merged automatically, and the issue waits for you. Both under Merge and release.
  • Pause a repository with the switch on its row in the sidebar or in its view: no new worker starts there.
  • Stop all in the title bar, the tray menu or with Cmd/Ctrl+Shift+H halts everything at once: no worker runs, nothing is merged, nothing is written to the forge. Resume brings back every repository as it was.

One limit: auto-merge that is already switched on at the forge can only be stopped there.

Whose text reaches a worker#

  • Only issues from trusted people become ready on their own: you, your worker account, people with write access, members of the organisation that owns the repository and the logins under Trusted authors. Issues from anyone else wait for your approval.
  • Comments from untrusted people never steer a worker and never count as an answer.
  • Pull requests from untrusted authors are never merged automatically.

Workers with permission checks#

Workers run without permission prompts by default, because nobody is there to answer them, and only trusted text reaches them. For repositories where more is at stake, typically public ones, switch on Workers with permission checks in the repository's settings: the agent's own permission mode and sandbox then apply as a second line. Details in the security model.

See what happened#

The activity log on the status page lists every write to the forge, merges included, with time, repository, item and reason.

Get started#

Download Gitoodo and follow Getting started; the setup checks your branch rules when you switch the autopilot on.

Edit on GitHubDocs version: dev