Edit a repository's properties. Only fields that are set will be changed.
Path parameters
owner of the repo to edit
name of the repo to edit
Request body
either true to allow fast-forward-only merging pull requests, or false to prevent fast-forward-only merging.
either true to allow mark pr as merged manually, or false to prevent it.
either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits.
either true to allow updating pull request branch by merge, or false to prevent it.
either true to allow rebase-merging pull requests, or false to prevent rebase-merging.
either true to allow rebase with explicit merge commits (--no-ff), or false to prevent rebase with explicit merge commits.
either true to allow updating pull request branch by rebase, or false to prevent it.
either true to allow squash-merging pull requests, or false to prevent squash-merging.
set to true to archive this repository.
either true to enable AutodetectManualMerge, or false to prevent it. Note: In some special cases, misjudgments can occur.
set to true to allow edits from maintainers by default
sets the default branch for this repository.
set to true to delete pr branch after merge by default
set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only".
set to an update style to be used by this repository: "merge" or "rebase".
a short description of the repository.
enable prune - remove obsolete remote-tracking references when mirroring
either true to enable actions unit, or false to disable them.
either true to enable code for this repository or false to disable it.
either true to enable issues for this repository or false to disable them.
either true to enable packages unit, or false to disable them.
either true to enable project unit, or false to disable them.
either true to allow pull requests, or false to prevent pull request.
either true to enable releases unit, or false to disable them.
either true to enable the wiki for this repository or false to disable it.
either true to ignore whitespace for conflicts, or false to not ignore whitespace.
set to a string like 8h30m0s to set the mirror interval time
authentication password for the remote repository (mirrors)
authentication token for the remote repository (mirrors)
authentication username for the remote repository (mirrors)
name of the repository
either true to make the repository private or false to make it public. Note: you will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private.
repo to only allow repo-level projects, owner to only allow owner projects, all to allow both.
either true to make this repository a template or false to make it a normal repository
a URL with more information about the repository.
Response
Repository
ObjectFormatName of the underlying git repository