Edit repository settings
edit_repoUpdate repository settings including visibility, description, website, default branch, feature toggles, and archived status; only provided fields change, so omitted settings remain unchanged.
Instructions
Edit repository settings: visibility (private true/false), description, website, default_branch, unit toggles (has_issues, has_pull_requests, has_wiki, has_releases, has_actions, has_packages, has_projects), archived. Only provided fields change; renames are not supported. A unit being off hides its whole endpoint family behind 404s rather than returning empty results, so set has_releases=true or has_actions=true when those tools 404 on a repository that plainly exists. Requires write mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name. | |
| owner | Yes | Repository owner. | |
| private | No | Change visibility: `true` = private, `false` = public. | |
| website | No | New website URL. | |
| archived | No | Archive (`true`) or unarchive (`false`) the repository. | |
| has_wiki | No | Enable or disable the wiki. | |
| has_issues | No | Enable or disable the issue tracker. | |
| description | No | New description. | |
| has_actions | No | Enable or disable Actions (CI). The workflow tools fail the same way the release tools do while this is off: the endpoints are gone, not empty. | |
| has_packages | No | Enable or disable the package registry. | |
| has_projects | No | Enable or disable project boards. | |
| has_releases | No | Enable or disable Releases. While off, every release endpoint 404s — including reads, and including anonymous ones — so this is what to set when release tools report a repository that plainly exists as missing. | |
| default_branch | No | New default branch (must already exist). | |
| has_pull_requests | No | Enable or disable pull requests. |