Skip to main content
Returns the repository’s configured settings, the values in effect after defaults are applied, and the fields your credential can change. Pass the returned version when you update the settings.

Authorization

Use a Read, Write, or Admin key for the workspace. V1 read keys cannot read repository settings. If you use the MCP tool, you need read access to the workspace and the repository.
string
required
Bearer <key>. See Authentication.

Path parameters

string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.
string
required
Repository ID, as returned in repositoryId by other endpoints. 1 to 128 characters.

Response

RepoSettings

RepoSettingValues

In configured, an omitted setting has no visible override. A setting returned as false is explicitly off. A setting that depends on a feature the workspace does not have, such as Approvability, is omitted from both configured and effective and cannot be changed.
string
When Correctness runs: FEATURE_RUN_MODE_AUTOMATIC (automatically), FEATURE_RUN_MODE_MANUAL (only when requested) or FEATURE_RUN_MODE_NEVER.
string
When Check Run Agents run, with the same values as correctnessReview.
string
When Approvability runs, with the same values as correctnessReview.
boolean
Whether the repository’s GitHub Actions workflows can run Macroscope agents.
boolean
Whether Macroscope summarizes the repository’s commits (Status).
boolean
Whether Macroscope posts pull request summaries on GitHub.
string
Minimum severity to comment: COMMENT_SEVERITY_THRESHOLD_OFF (every finding), _LOW, _MEDIUM, _HIGH or _CRITICAL.
string
Detection mode: DETECTION_MODE_BUDGET, DETECTION_MODE_BALANCED, DETECTION_MODE_PRECISE or DETECTION_MODE_ULTRA.
integer
Maximum number of automatic Correctness reviews per pull request. Omitted means no limit. You can still request a manual review after reaching the limit.
integer
Largest file, in bytes, that Correctness reviews. Omitted means no limit.
boolean
Whether Correctness reviews draft pull requests.
boolean
Whether pull requests Macroscope opens to fix review comments are merged automatically.
boolean
Whether Macroscope requests a reviewer on pull requests it opens.
boolean
Whether Dependabot pull requests are skipped.
string
Minimum blocking severity: APPROVABILITY_BLOCKING_SEVERITY_LOW, _MEDIUM, _HIGH, _CRITICAL or _OFF. A repository with no value of its own uses _MEDIUM.
boolean
Whether Approvability runs again when a pull request changes.
string
Check run conclusion for a hold the author can clear: APPROVABILITY_CONCLUSION_NEUTRAL or APPROVABILITY_CONCLUSION_FAILURE. A repository with no value of its own uses neutral. A conclusion in .macroscope/approvability.md overrides it.
string
Approvability mode: APPROVABILITY_MODE_PERMISSIVE or APPROVABILITY_MODE_STRICT. A mode in .macroscope/approvability.md overrides it.
boolean
Whether Approvability only reports the pull requests it would approve, without approving them (Preview Mode).
string
ID of the Policy Repo whose configuration this repository inherits. Omitted if no Policy Repo is set or you cannot read it.
object
Branch and tag patterns that identify releases.
This example shows selected settings returned to a Write key.