Update Repository
github.update_repo
ActionBusiness appsconnection required
Calls the GitHub API PATCH /repos/{owner}/{repo}.
Change a repository's settings — name, description, visibility or features.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- GitHub
- Secret shape
- the GitHub personal access token
- Resolved by
- config.connection_id, else node.connection_id, else the tenant's sole GitHub connection
Configuration
12 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
owner Repository owner — the user or organisation login. Supports {{ }}. | string | Yes | — | — | octocat |
repo Repository name, without the owner prefix. Supports {{ }}. | string | Yes | — | — | hello-world |
name New repository name. | string | No | — | — | — |
description New description. | string | No | — | — | — |
homepage New homepage URL. | string | No | — | url format | — |
default_branch Branch to make the default. | string | No | — | — | — |
visibility Repository visibility. | string | No | — | one of "public", "private", "internal" | — |
private Make the repository private. | boolean | No | — | — | — |
has_issues Enable the issue tracker. | boolean | No | — | — | — |
has_wiki Enable the wiki. | boolean | No | — | — | — |
has_projects Enable projects. | boolean | No | — | — | — |
archived Archive the repository (read-only). | boolean | No | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"owner": "octocat",
"repo": "hello-world"
}Output
One shape.
result
The declared fields, plus the rest of the resource as GitHub returned it.
Extra keys beyond the ones listed can appear.
| Field | Type | Example |
|---|---|---|
ok True when GitHub accepted the call. | boolean | true |
id GitHub's internal repository id. | number | — |
name Repository name. | string | — |
full_name owner/repo. | string | — |
private True for a private repository. | boolean | — |
html_url Link to the repository. | string | — |
clone_url HTTPS clone URL. | string | — |
default_branch The repository's default branch. | string | — |
{
"clone_url": "",
"default_branch": "",
"full_name": "",
"html_url": "",
"id": 0,
"name": "",
"ok": true,
"private": false
}Notes
- At least one changeable field must be set, or the step fails before it calls.
Solutions with GitHub
See Update Repository run in a workflow.
In a technical demo we add the GitHub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.