Teams already review code in GitHub, GitLab, Azure DevOps or Bitbucket. GitOps puts change scripts in that same review loop, then maps the merge back onto a pipeline with approvals, risk analysis, and rollback instead of treating merge as permission to run against production from CI.
Write the change script in the SQL editor. Migratrix commits it to the connected repository and opens the pull request. You do not copy SQL into a second tool to start review.
The PR is the conversation your team already has. Inside Migratrix the same change still carries schema diff, SQL risk, and if enabled application-code impact from Risk Assessment.
On merge, Migratrix imports the change script into the bound pipeline. Execution still honours environment approvals. Merge is not a back door around production gates.
The artefact in Git is the change script. History, blame, and branch policy stay with the repository you already operate.
A Git review is not a production approval unless you also configure the environment gate. Separation of duties is a platform permission, not a branch protection setting.
Migratrix runs the change itself, so there is no workflow file to write, no database credentials in CI secrets, and no runner that needs network access to production. Your CI keeps doing what it is good at tests and application delivery and the database change is executed by the Executor inside your network, the one process that holds the credentials, the journal and the rollback.
The API and MCP expose the same objects the UI does. On a GitOps pipeline an assistant does not create the change script itself: gitops_conventions tells it where the file goes and how to name it, it writes the file on your branch, and the merge creates the change script. From there it can follow the stages and ask for approval, never give it.
| Piece | Behaviour |
|---|---|
| Webhook | Pushes to the tracked branch start a sync; pull request events move a Migratrix pull request to merged or closed. Every delivery is verified, so a forged call cannot move a change script. |
| Providers | All five support connect, sync, webhook, and pull request (GitLab: merge request) creation; each person connects their own account first. GitHub, Azure DevOps and both Bitbucket editions also report merged and closed pull requests. |
| Auto-execute after sync | Only if the first pipeline stage has Auto-start on, the environment does not require approval, the script is Pending, and a connection is present. Approval gates always win over a merge. |
| Audit | Repo connected, synced, disconnected; webhook received or rejected; pull request created all in the integrations category of the ledger. |