merjax_update_repo
Update repository description / visibility / default_branch / automation dials / merge-conflict AI mode / GateTest switch. Requires 'admin' access on the repo (owner, org owners/admins, admin collaborators) and 'repo' scope. Returns {ok: true}; with gate_test_enabled, also gate_test {enabled, server_configured, state: on | disabled_in_settings | not_configured_on_server, details}. merjax_get_branch_protection reads gate_test without changing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repo name | |
| owner | Yes | Repo owner username | |
| automation | No | Per-repo automation dials, same keys as Settings → Automation: ai_review_mode, pr_triage_mode, issue_triage_mode, auto_merge_mode, ci_autofix_mode, auto_repair_mode, auto_issues_mode, doc_drift_mode, merge_train_mode. Values: off | suggest | auto (merge_train_mode runs only on auto). Only the keys given change. | |
| is_private | No | Set visibility (optional) | |
| description | No | New description (optional) | |
| default_branch | No | Set default branch (optional) | |
| gate_test_enabled | No | Turn the GateTest scan on or off for this repository (Settings → Gates → GateTest scan; repo_settings.gate_test_enabled, off by default). Audited as gates.settings.update. A switch that is on scans only where the server has GATETEST_URL: gate_test.state says not_configured_on_server otherwise. | |
| conflict_resolution_mode | No | Who may settle merge conflicts with AI (Settings → Gates → Merge conflicts): manual (no AI) | review_first (default: AI proposes per block, a person accepts, edits or rejects) | auto_land (saved; acted on once the auto-land step ships — until then it behaves as review_first). |