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.
Repository ID, as returned in repositoryId by other endpoints. 1 to 128 characters.
Response
RepoSettings
Show properties
string
Repository ID.
string
Current version, as a decimal string. It increases whenever the repository’s settings are saved through the API or the app. Use the returned value when updating settings.
RepoSettingValues
Values stored for this repository. A setting is omitted when it is not set and its default applies.
RepoSettingValues
Values in force, with defaults applied. A limit is omitted when there is no limit. releaseRefPatterns holds the patterns Macroscope infers when none are configured.
string
Comma-separated names of the settings you can change with your current access and the features enabled for the workspace. An empty string means you cannot change any settings.
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).
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.
Show properties
string[]
Glob patterns such as release/*, release/** or production. An update accepts up to 100 patterns of 1 to 256 bytes each, with no surrounding whitespace or NUL characters. An empty list means no releases match. Clear the setting to use the inferred patterns again.
This example shows selected settings returned to a Write key.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Macroscope","colors":{"primary":"#6f16a3","light":"#a26fd9","dark":"#a26fd9"},"logo":{"light":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc","dark":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/dark.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=05f568cf92a21f18b8ebaed893c0ff3b"},"favicon":"https://mintcdn.com/macroscope/Ij1wsJ7EUw4zYzA-/images/favicon.svg?fit=max\u0026auto=format\u0026n=Ij1wsJ7EUw4zYzA-\u0026q=85\u0026s=bab7bcd6e8c996d0426a6a241bf3ecbe","navbar":{"links":[{"href":"https://docs.macroscope.com/contact","label":"Contact Us"}],"primary":{"type":"button","label":"Macroscope","href":"https://app.macroscope.com"}},"integrations":{"gtm":{"tagId":"GTM-MFXG74M6"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"macroscope","hasAudioNarration":false,"actualSubdomain":"macroscope","customDomains":["docs.macroscope.com"],"gitSource":{"type":"github","owner":"prassoai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0b65784c0dadfed01135fc","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Documentation","count":61},{"language":"default","tag":"Integrations","count":29},{"language":"default","tag":"API","count":24},{"language":"default","tag":"Code Review","count":14},{"language":"default","tag":"Status","count":6},{"language":"default","tag":"Check Run Agents","count":5},{"language":"default","tag":"Workspace","count":4},{"language":"default","tag":"Resources","count":3},{"language":"default","tag":"Modifying behavior","count":3},{"language":"default","tag":"Pricing","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/get-repo-settings","slug":"/api-reference/endpoint/get-repo-settings","pageMetadata":{"title":"Get repository settings","description":"See a repository's configured settings, effective values, and editable fields","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","playground":"none","href":"/api-reference/endpoint/get-repo-settings"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"See a repository’s configured settings, effective values, and editable fields\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns the repository’s configured settings, the values in effect after defaults are applied, and the fields your credential can change. Pass the returned `,_jsx(_components.code,{children:`version`}),` when you `,_jsx(_components.a,{href:`/api-reference/endpoint/update-repo-settings`,children:`update the settings`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.p,{children:[`Use a Read, Write, or Admin key for the workspace. `,_jsx(_components.strong,{children:`V1 read`}),` keys cannot read repository settings. If you use the `,_jsx(_components.a,{href:`/api-reference/mcp#permissions`,children:`MCP tool`}),`, you need read access to the workspace and the repository.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(ParamField,{path:`repositoryId`,type:`string`,required:true,id:`param-repository-id`,children:_jsxs(_components.p,{children:[`Repository ID, as returned in `,_jsx(_components.code,{children:`repositoryId`}),` by other endpoints. 1 to 128 characters.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`settings`,type:`RepoSettings`,id:`param-settings`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`repositoryId`,type:`string`,id:`param-repository-id-1`,children:_jsx(_components.p,{children:`Repository ID.`})}),_jsx(ResponseField,{name:`version`,type:`string`,id:`param-version`,children:_jsx(_components.p,{children:`Current version, as a decimal string. It increases whenever the repository’s settings are saved through the API or the app. Use the returned value when updating settings.`})}),_jsx(ResponseField,{name:`configured`,type:`RepoSettingValues`,id:`param-configured`,children:_jsx(_components.p,{children:`Values stored for this repository. A setting is omitted when it is not set and its default applies.`})}),_jsx(ResponseField,{name:`effective`,type:`RepoSettingValues`,id:`param-effective`,children:_jsxs(_components.p,{children:[`Values in force, with defaults applied. A limit is omitted when there is no limit. `,_jsx(_components.code,{children:`releaseRefPatterns`}),` holds the patterns Macroscope infers when none are configured.`]})}),_jsx(ResponseField,{name:`editableFields`,type:`string`,id:`param-editable-fields`,children:_jsx(_components.p,{children:`Comma-separated names of the settings you can change with your current access and the features enabled for the workspace. An empty string means you cannot change any settings.`})})]})}),`\n`,_jsx(Heading,{level:`3`,id:`reposettingvalues`,children:`RepoSettingValues`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`configured`}),`, an omitted setting has no visible override. A setting returned as `,_jsx(_components.code,{children:`false`}),` is explicitly off. A setting that depends on a feature the workspace does not have, such as Approvability, is omitted from both `,_jsx(_components.code,{children:`configured`}),` and `,_jsx(_components.code,{children:`effective`}),` and cannot be changed.`]}),`\n`,_jsx(ResponseField,{name:`correctnessReview`,type:`string`,id:`param-correctness-review`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/correctness`,children:`Correctness`}),` runs: `,_jsx(_components.code,{children:`FEATURE_RUN_MODE_AUTOMATIC`}),` (automatically), `,_jsx(_components.code,{children:`FEATURE_RUN_MODE_MANUAL`}),` (only when requested) or `,_jsx(_components.code,{children:`FEATURE_RUN_MODE_NEVER`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`checkRunAgents`,type:`string`,id:`param-check-run-agents`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/check-run-agents`,children:`Check Run Agents`}),` run, with the same values as `,_jsx(_components.code,{children:`correctnessReview`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`approvability`,type:`string`,id:`param-approvability`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/approvability`,children:`Approvability`}),` runs, with the same values as `,_jsx(_components.code,{children:`correctnessReview`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`githubActionsAgentRunsEnabled`,type:`boolean`,id:`param-github-actions-agent-runs-enabled`,children:_jsxs(_components.p,{children:[`Whether the repository’s `,_jsx(_components.a,{href:`/github-actions`,children:`GitHub Actions`}),` workflows can run Macroscope agents.`]})}),`\n`,_jsx(ResponseField,{name:`commitSummarizationEnabled`,type:`boolean`,id:`param-commit-summarization-enabled`,children:_jsx(_components.p,{children:`Whether Macroscope summarizes the repository’s commits (Status).`})}),`\n`,_jsx(ResponseField,{name:`prSummaryEnabled`,type:`boolean`,id:`param-pr-summary-enabled`,children:_jsxs(_components.p,{children:[`Whether Macroscope posts `,_jsx(_components.a,{href:`/pull-request-descriptions`,children:`pull request summaries`}),` on GitHub.`]})}),`\n`,_jsx(ResponseField,{name:`commentSeverityThreshold`,type:`string`,id:`param-comment-severity-threshold`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/correctness#minimum-severity-to-comment`,children:`Minimum severity to comment`}),`: `,_jsx(_components.code,{children:`COMMENT_SEVERITY_THRESHOLD_OFF`}),` (every finding), `,_jsx(_components.code,{children:`_LOW`}),`, `,_jsx(_components.code,{children:`_MEDIUM`}),`, `,_jsx(_components.code,{children:`_HIGH`}),` or `,_jsx(_components.code,{children:`_CRITICAL`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`detectionMode`,type:`string`,id:`param-detection-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/code-review/detection-mode`,children:`Detection mode`}),`: `,_jsx(_components.code,{children:`DETECTION_MODE_BUDGET`}),`, `,_jsx(_components.code,{children:`DETECTION_MODE_BALANCED`}),`, `,_jsx(_components.code,{children:`DETECTION_MODE_PRECISE`}),` or `,_jsx(_components.code,{children:`DETECTION_MODE_ULTRA`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`correctnessMaxRunsPerPr`,type:`integer`,id:`param-correctness-max-runs-per-pr`,children:_jsx(_components.p,{children:`Maximum number of automatic Correctness reviews per pull request. Omitted means no limit. You can still request a manual review after reaching the limit.`})}),`\n`,_jsx(ResponseField,{name:`correctnessMaxFileSizeBytes`,type:`integer`,id:`param-correctness-max-file-size-bytes`,children:_jsx(_components.p,{children:`Largest file, in bytes, that Correctness reviews. Omitted means no limit.`})}),`\n`,_jsx(ResponseField,{name:`draftPrReviewEnabled`,type:`boolean`,id:`param-draft-pr-review-enabled`,children:_jsx(_components.p,{children:`Whether Correctness reviews draft pull requests.`})}),`\n`,_jsx(ResponseField,{name:`autoMergeFixPrsEnabled`,type:`boolean`,id:`param-auto-merge-fix-prs-enabled`,children:_jsx(_components.p,{children:`Whether pull requests Macroscope opens to fix review comments are merged automatically.`})}),`\n`,_jsx(ResponseField,{name:`requestReview`,type:`boolean`,id:`param-request-review`,children:_jsx(_components.p,{children:`Whether Macroscope requests a reviewer on pull requests it opens.`})}),`\n`,_jsx(ResponseField,{name:`skipDependabot`,type:`boolean`,id:`param-skip-dependabot`,children:_jsx(_components.p,{children:`Whether Dependabot pull requests are skipped.`})}),`\n`,_jsx(ResponseField,{name:`approvabilityMinBlockingSeverity`,type:`string`,id:`param-approvability-min-blocking-severity`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/approvability#minimum-blocking-severity`,children:`Minimum blocking severity`}),`: `,_jsx(_components.code,{children:`APPROVABILITY_BLOCKING_SEVERITY_LOW`}),`, `,_jsx(_components.code,{children:`_MEDIUM`}),`, `,_jsx(_components.code,{children:`_HIGH`}),`, `,_jsx(_components.code,{children:`_CRITICAL`}),` or `,_jsx(_components.code,{children:`_OFF`}),`. A repository with no value of its own uses `,_jsx(_components.code,{children:`_MEDIUM`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`approvabilityAutoRerunEnabled`,type:`boolean`,id:`param-approvability-auto-rerun-enabled`,children:_jsx(_components.p,{children:`Whether Approvability runs again when a pull request changes.`})}),`\n`,_jsx(ResponseField,{name:`approvabilityConclusion`,type:`string`,id:`param-approvability-conclusion`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/approvability#check-run-conclusion`,children:`Check run conclusion`}),` for a hold the author can clear: `,_jsx(_components.code,{children:`APPROVABILITY_CONCLUSION_NEUTRAL`}),` or `,_jsx(_components.code,{children:`APPROVABILITY_CONCLUSION_FAILURE`}),`. A repository with no value of its own uses neutral. A conclusion in `,_jsx(_components.code,{children:`.macroscope/approvability.md`}),` overrides it.`]})}),`\n`,_jsx(ResponseField,{name:`approvabilityMode`,type:`string`,id:`param-approvability-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/approvability#approvability-mode`,children:`Approvability mode`}),`: `,_jsx(_components.code,{children:`APPROVABILITY_MODE_PERMISSIVE`}),` or `,_jsx(_components.code,{children:`APPROVABILITY_MODE_STRICT`}),`. A `,_jsx(_components.code,{children:`mode`}),` in `,_jsx(_components.code,{children:`.macroscope/approvability.md`}),` overrides it.`]})}),`\n`,_jsx(ResponseField,{name:`approvabilityPreviewEnabled`,type:`boolean`,id:`param-approvability-preview-enabled`,children:_jsxs(_components.p,{children:[`Whether Approvability only reports the pull requests it would approve, without approving them (`,_jsx(_components.a,{href:`/approvability#preview-mode`,children:`Preview Mode`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`policyRepoId`,type:`string`,id:`param-policy-repo-id`,children:_jsxs(_components.p,{children:[`ID of the `,_jsx(_components.a,{href:`/code-review/macroscope#policy-inheritance`,children:`Policy Repo`}),` whose configuration this repository inherits. Omitted if no Policy Repo is set or you cannot read it.`]})}),`\n`,_jsxs(ResponseField,{name:`releaseRefPatterns`,type:`object`,id:`param-release-ref-patterns`,children:[_jsx(_components.p,{children:`Branch and tag patterns that identify releases.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ResponseField,{name:`patterns`,type:`string[]`,id:`param-patterns`,children:_jsxs(_components.p,{children:[`Glob patterns such as `,_jsx(_components.code,{children:`release/*`}),`, `,_jsx(_components.code,{children:`release/**`}),` or `,_jsx(_components.code,{children:`production`}),`. An update accepts up to 100 patterns of 1 to 256 bytes each, with no surrounding whitespace or NUL characters. An empty list means no releases match. Clear the setting to use the inferred patterns again.`]})})})]}),`\n`,_jsx(_components.p,{children:`This example shows selected settings returned to a Write key.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get repository settings","description":"See a repository's configured settings, effective values, and editable fields","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","playground":"none","href":"/api-reference/endpoint/get-repo-settings"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns the repository’s configured settings, the values in effect after defaults are applied, and the fields your credential can change. Pass the returned `,_jsx(_components.code,{children:`version`}),` when you `,_jsx(_components.a,{href:`/api-reference/endpoint/update-repo-settings`,children:`update the settings`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.p,{children:[`Use a Read, Write, or Admin key for the workspace. `,_jsx(_components.strong,{children:`V1 read`}),` keys cannot read repository settings. If you use the `,_jsx(_components.a,{href:`/api-reference/mcp#permissions`,children:`MCP tool`}),`, you need read access to the workspace and the repository.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(ParamField,{path:`repositoryId`,type:`string`,required:true,id:`param-repository-id`,children:_jsxs(_components.p,{children:[`Repository ID, as returned in `,_jsx(_components.code,{children:`repositoryId`}),` by other endpoints. 1 to 128 characters.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`settings`,type:`RepoSettings`,id:`param-settings`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`repositoryId`,type:`string`,id:`param-repository-id-1`,children:_jsx(_components.p,{children:`Repository ID.`})}),_jsx(ResponseField,{name:`version`,type:`string`,id:`param-version`,children:_jsx(_components.p,{children:`Current version, as a decimal string. It increases whenever the repository’s settings are saved through the API or the app. Use the returned value when updating settings.`})}),_jsx(ResponseField,{name:`configured`,type:`RepoSettingValues`,id:`param-configured`,children:_jsx(_components.p,{children:`Values stored for this repository. A setting is omitted when it is not set and its default applies.`})}),_jsx(ResponseField,{name:`effective`,type:`RepoSettingValues`,id:`param-effective`,children:_jsxs(_components.p,{children:[`Values in force, with defaults applied. A limit is omitted when there is no limit. `,_jsx(_components.code,{children:`releaseRefPatterns`}),` holds the patterns Macroscope infers when none are configured.`]})}),_jsx(ResponseField,{name:`editableFields`,type:`string`,id:`param-editable-fields`,children:_jsx(_components.p,{children:`Comma-separated names of the settings you can change with your current access and the features enabled for the workspace. An empty string means you cannot change any settings.`})})]})}),`\n`,_jsx(Heading,{level:`3`,id:`reposettingvalues`,children:`RepoSettingValues`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`configured`}),`, an omitted setting has no visible override. A setting returned as `,_jsx(_components.code,{children:`false`}),` is explicitly off. A setting that depends on a feature the workspace does not have, such as Approvability, is omitted from both `,_jsx(_components.code,{children:`configured`}),` and `,_jsx(_components.code,{children:`effective`}),` and cannot be changed.`]}),`\n`,_jsx(ResponseField,{name:`correctnessReview`,type:`string`,id:`param-correctness-review`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/correctness`,children:`Correctness`}),` runs: `,_jsx(_components.code,{children:`FEATURE_RUN_MODE_AUTOMATIC`}),` (automatically), `,_jsx(_components.code,{children:`FEATURE_RUN_MODE_MANUAL`}),` (only when requested) or `,_jsx(_components.code,{children:`FEATURE_RUN_MODE_NEVER`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`checkRunAgents`,type:`string`,id:`param-check-run-agents`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/check-run-agents`,children:`Check Run Agents`}),` run, with the same values as `,_jsx(_components.code,{children:`correctnessReview`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`approvability`,type:`string`,id:`param-approvability`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/approvability`,children:`Approvability`}),` runs, with the same values as `,_jsx(_components.code,{children:`correctnessReview`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`githubActionsAgentRunsEnabled`,type:`boolean`,id:`param-github-actions-agent-runs-enabled`,children:_jsxs(_components.p,{children:[`Whether the repository’s `,_jsx(_components.a,{href:`/github-actions`,children:`GitHub Actions`}),` workflows can run Macroscope agents.`]})}),`\n`,_jsx(ResponseField,{name:`commitSummarizationEnabled`,type:`boolean`,id:`param-commit-summarization-enabled`,children:_jsx(_components.p,{children:`Whether Macroscope summarizes the repository’s commits (Status).`})}),`\n`,_jsx(ResponseField,{name:`prSummaryEnabled`,type:`boolean`,id:`param-pr-summary-enabled`,children:_jsxs(_components.p,{children:[`Whether Macroscope posts `,_jsx(_components.a,{href:`/pull-request-descriptions`,children:`pull request summaries`}),` on GitHub.`]})}),`\n`,_jsx(ResponseField,{name:`commentSeverityThreshold`,type:`string`,id:`param-comment-severity-threshold`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/correctness#minimum-severity-to-comment`,children:`Minimum severity to comment`}),`: `,_jsx(_components.code,{children:`COMMENT_SEVERITY_THRESHOLD_OFF`}),` (every finding), `,_jsx(_components.code,{children:`_LOW`}),`, `,_jsx(_components.code,{children:`_MEDIUM`}),`, `,_jsx(_components.code,{children:`_HIGH`}),` or `,_jsx(_components.code,{children:`_CRITICAL`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`detectionMode`,type:`string`,id:`param-detection-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/code-review/detection-mode`,children:`Detection mode`}),`: `,_jsx(_components.code,{children:`DETECTION_MODE_BUDGET`}),`, `,_jsx(_components.code,{children:`DETECTION_MODE_BALANCED`}),`, `,_jsx(_components.code,{children:`DETECTION_MODE_PRECISE`}),` or `,_jsx(_components.code,{children:`DETECTION_MODE_ULTRA`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`correctnessMaxRunsPerPr`,type:`integer`,id:`param-correctness-max-runs-per-pr`,children:_jsx(_components.p,{children:`Maximum number of automatic Correctness reviews per pull request. Omitted means no limit. You can still request a manual review after reaching the limit.`})}),`\n`,_jsx(ResponseField,{name:`correctnessMaxFileSizeBytes`,type:`integer`,id:`param-correctness-max-file-size-bytes`,children:_jsx(_components.p,{children:`Largest file, in bytes, that Correctness reviews. Omitted means no limit.`})}),`\n`,_jsx(ResponseField,{name:`draftPrReviewEnabled`,type:`boolean`,id:`param-draft-pr-review-enabled`,children:_jsx(_components.p,{children:`Whether Correctness reviews draft pull requests.`})}),`\n`,_jsx(ResponseField,{name:`autoMergeFixPrsEnabled`,type:`boolean`,id:`param-auto-merge-fix-prs-enabled`,children:_jsx(_components.p,{children:`Whether pull requests Macroscope opens to fix review comments are merged automatically.`})}),`\n`,_jsx(ResponseField,{name:`requestReview`,type:`boolean`,id:`param-request-review`,children:_jsx(_components.p,{children:`Whether Macroscope requests a reviewer on pull requests it opens.`})}),`\n`,_jsx(ResponseField,{name:`skipDependabot`,type:`boolean`,id:`param-skip-dependabot`,children:_jsx(_components.p,{children:`Whether Dependabot pull requests are skipped.`})}),`\n`,_jsx(ResponseField,{name:`approvabilityMinBlockingSeverity`,type:`string`,id:`param-approvability-min-blocking-severity`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/approvability#minimum-blocking-severity`,children:`Minimum blocking severity`}),`: `,_jsx(_components.code,{children:`APPROVABILITY_BLOCKING_SEVERITY_LOW`}),`, `,_jsx(_components.code,{children:`_MEDIUM`}),`, `,_jsx(_components.code,{children:`_HIGH`}),`, `,_jsx(_components.code,{children:`_CRITICAL`}),` or `,_jsx(_components.code,{children:`_OFF`}),`. A repository with no value of its own uses `,_jsx(_components.code,{children:`_MEDIUM`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`approvabilityAutoRerunEnabled`,type:`boolean`,id:`param-approvability-auto-rerun-enabled`,children:_jsx(_components.p,{children:`Whether Approvability runs again when a pull request changes.`})}),`\n`,_jsx(ResponseField,{name:`approvabilityConclusion`,type:`string`,id:`param-approvability-conclusion`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/approvability#check-run-conclusion`,children:`Check run conclusion`}),` for a hold the author can clear: `,_jsx(_components.code,{children:`APPROVABILITY_CONCLUSION_NEUTRAL`}),` or `,_jsx(_components.code,{children:`APPROVABILITY_CONCLUSION_FAILURE`}),`. A repository with no value of its own uses neutral. A conclusion in `,_jsx(_components.code,{children:`.macroscope/approvability.md`}),` overrides it.`]})}),`\n`,_jsx(ResponseField,{name:`approvabilityMode`,type:`string`,id:`param-approvability-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/approvability#approvability-mode`,children:`Approvability mode`}),`: `,_jsx(_components.code,{children:`APPROVABILITY_MODE_PERMISSIVE`}),` or `,_jsx(_components.code,{children:`APPROVABILITY_MODE_STRICT`}),`. A `,_jsx(_components.code,{children:`mode`}),` in `,_jsx(_components.code,{children:`.macroscope/approvability.md`}),` overrides it.`]})}),`\n`,_jsx(ResponseField,{name:`approvabilityPreviewEnabled`,type:`boolean`,id:`param-approvability-preview-enabled`,children:_jsxs(_components.p,{children:[`Whether Approvability only reports the pull requests it would approve, without approving them (`,_jsx(_components.a,{href:`/approvability#preview-mode`,children:`Preview Mode`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`policyRepoId`,type:`string`,id:`param-policy-repo-id`,children:_jsxs(_components.p,{children:[`ID of the `,_jsx(_components.a,{href:`/code-review/macroscope#policy-inheritance`,children:`Policy Repo`}),` whose configuration this repository inherits. Omitted if no Policy Repo is set or you cannot read it.`]})}),`\n`,_jsxs(ResponseField,{name:`releaseRefPatterns`,type:`object`,id:`param-release-ref-patterns`,children:[_jsx(_components.p,{children:`Branch and tag patterns that identify releases.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ResponseField,{name:`patterns`,type:`string[]`,id:`param-patterns`,children:_jsxs(_components.p,{children:[`Glob patterns such as `,_jsx(_components.code,{children:`release/*`}),`, `,_jsx(_components.code,{children:`release/**`}),` or `,_jsx(_components.code,{children:`production`}),`. An update accepts up to 100 patterns of 1 to 256 bytes each, with no surrounding whitespace or NUL characters. An empty list means no releases match. Clear the setting to use the inferred patterns again.`]})})})]}),`\n`,_jsx(_components.p,{children:`This example shows selected settings returned to a Write key.`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/repositories/987654321/settings`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$MACROSCOPE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`8`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os, requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/repositories/987654321/settings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'MACROSCOPE_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(r.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/repositories/987654321/settings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MACROSCOPE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`GET failed (\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\")`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`22`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"settings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"repositoryId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"987654321\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"42\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"configured\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"correctnessReview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FEATURE_RUN_MODE_AUTOMATIC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prSummaryEnabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"approvabilityMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"APPROVABILITY_MODE_PERMISSIVE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"correctnessMaxRunsPerPr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effective\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"correctnessReview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FEATURE_RUN_MODE_AUTOMATIC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prSummaryEnabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"approvabilityMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"APPROVABILITY_MODE_PERMISSIVE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"correctnessMaxRunsPerPr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"approvabilityMinBlockingSeverity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"APPROVABILITY_BLOCKING_SEVERITY_MEDIUM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"approvabilityConclusion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"APPROVABILITY_CONCLUSION_NEUTRAL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"releaseRefPatterns\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"patterns\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"release/*\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"editableFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"correctnessReview,checkRunAgents,githubActionsAgentRunsEnabled,commitSummarizationEnabled,prSummaryEnabled,commentSeverityThreshold,detectionMode,draftPrReviewEnabled,autoMergeFixPrsEnabled,requestReview,skipDependabot,approvabilityAutoRerunEnabled,releaseRefPatterns\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get repository settings","description":"See a repository's configured settings, effective values, and editable fields","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","playground":"none","href":"/api-reference/endpoint/get-repo-settings"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"RepoSettingValues","slug":"reposettingvalues","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/repositories/987654321/settings\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$MACROSCOPE_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os, requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">r \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.get(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/repositories/987654321/settings\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">os.environ[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'MACROSCOPE_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">r.raise_for_status()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(r.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> res\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/repositories/987654321/settings\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">process\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">MACROSCOPE_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">!\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ok\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`GET failed (\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">res\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">status\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">)`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">());\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"22\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"settings\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"repositoryId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"987654321\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"version\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"42\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"configured\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"correctnessReview\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"FEATURE_RUN_MODE_AUTOMATIC\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prSummaryEnabled\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"approvabilityMode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"APPROVABILITY_MODE_PERMISSIVE\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"correctnessMaxRunsPerPr\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"effective\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"correctnessReview\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"FEATURE_RUN_MODE_AUTOMATIC\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prSummaryEnabled\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"approvabilityMode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"APPROVABILITY_MODE_PERMISSIVE\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"correctnessMaxRunsPerPr\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"approvabilityMinBlockingSeverity\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"APPROVABILITY_BLOCKING_SEVERITY_MEDIUM\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"approvabilityConclusion\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"APPROVABILITY_CONCLUSION_NEUTRAL\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"releaseRefPatterns\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"patterns\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"release/*\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">] }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"editableFields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"correctnessReview,checkRunAgents,githubActionsAgentRunsEnabled,commitSummarizationEnabled,prSummaryEnabled,commentSeverityThreshold,detectionMode,draftPrReviewEnabled,autoMergeFixPrsEnabled,requestReview,skipDependabot,approvabilityAutoRerunEnabled,releaseRefPatterns\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Get repository settings","path":"/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","servers":[{"url":"https://api.macroscope.com"}],"method":"get","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer \u003ckey>` . See Authentication .","required":true}]}},"cookie":{},"path":{"workspaceType":{"schema":[{"type":"string","description":"`GITHUB_ORGANIZATION` or `GITHUB_USER` .","required":true}]},"workspaceId":{"schema":[{"type":"string","description":"Numeric GitHub ID of the organization or user.","required":true}]},"repositoryId":{"schema":[{"type":"string","description":"Repository ID, as returned in `repositoryId` by other endpoints. 1 to 128 characters.","required":true}]}}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"settings":[{"type":"object","properties":{"repositoryId":[{"type":"string","description":"Repository ID."}],"version":[{"type":"string","description":"Current version, as a decimal string. It increases whenever the repository’s settings are saved through the API or the app. Use the returned value when updating settings."}],"configured":[{"type":"object","properties":{},"description":"Values stored for this repository. A setting is omitted when it is not set and its default applies."}],"effective":[{"type":"object","properties":{},"description":"Values in force, with defaults applied. A limit is omitted when there is no limit. `releaseRefPatterns` holds the patterns Macroscope infers when none are configured."}],"editableFields":[{"type":"string","description":"Comma-separated names of the settings you can change with your current access and the features enabled for the workspace. An empty string means you cannot change any settings."}]}}],"correctnessReview":[{"type":"string","description":"When Correctness runs: `FEATURE_RUN_MODE_AUTOMATIC` (automatically), `FEATURE_RUN_MODE_MANUAL` (only when requested) or `FEATURE_RUN_MODE_NEVER` ."}],"checkRunAgents":[{"type":"string","description":"When Check Run Agents run, with the same values as `correctnessReview` ."}],"approvability":[{"type":"string","description":"When Approvability runs, with the same values as `correctnessReview` ."}],"githubActionsAgentRunsEnabled":[{"type":"boolean","description":"Whether the repository’s GitHub Actions workflows can run Macroscope agents."}],"commitSummarizationEnabled":[{"type":"boolean","description":"Whether Macroscope summarizes the repository’s commits (Status)."}],"prSummaryEnabled":[{"type":"boolean","description":"Whether Macroscope posts pull request summaries on GitHub."}],"commentSeverityThreshold":[{"type":"string","description":"Minimum severity to comment : `COMMENT_SEVERITY_THRESHOLD_OFF` (every finding), `_LOW` , `_MEDIUM` , `_HIGH` or `_CRITICAL` ."}],"detectionMode":[{"type":"string","description":"Detection mode : `DETECTION_MODE_BUDGET` , `DETECTION_MODE_BALANCED` , `DETECTION_MODE_PRECISE` or `DETECTION_MODE_ULTRA` ."}],"correctnessMaxRunsPerPr":[{"type":"integer","description":"Maximum number of automatic Correctness reviews per pull request. Omitted means no limit. You can still request a manual review after reaching the limit."}],"correctnessMaxFileSizeBytes":[{"type":"integer","description":"Largest file, in bytes, that Correctness reviews. Omitted means no limit."}],"draftPrReviewEnabled":[{"type":"boolean","description":"Whether Correctness reviews draft pull requests."}],"autoMergeFixPrsEnabled":[{"type":"boolean","description":"Whether pull requests Macroscope opens to fix review comments are merged automatically."}],"requestReview":[{"type":"boolean","description":"Whether Macroscope requests a reviewer on pull requests it opens."}],"skipDependabot":[{"type":"boolean","description":"Whether Dependabot pull requests are skipped."}],"approvabilityMinBlockingSeverity":[{"type":"string","description":"Minimum blocking severity : `APPROVABILITY_BLOCKING_SEVERITY_LOW` , `_MEDIUM` , `_HIGH` , `_CRITICAL` or `_OFF` . A repository with no value of its own uses `_MEDIUM` ."}],"approvabilityAutoRerunEnabled":[{"type":"boolean","description":"Whether Approvability runs again when a pull request changes."}],"approvabilityConclusion":[{"type":"string","description":"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."}],"approvabilityMode":[{"type":"string","description":"Approvability mode : `APPROVABILITY_MODE_PERMISSIVE` or `APPROVABILITY_MODE_STRICT` . A `mode` in `.macroscope/approvability.md` overrides it."}],"approvabilityPreviewEnabled":[{"type":"boolean","description":"Whether Approvability only reports the pull requests it would approve, without approving them ( Preview Mode )."}],"policyRepoId":[{"type":"string","description":"ID of the Policy Repo whose configuration this repository inherits. Omitted if no Policy Repo is set or you cannot read it."}],"releaseRefPatterns":[{"type":"object","properties":{"patterns":[{"type":"array","items":[{"type":"string"}],"description":"Glob patterns such as `release/*` , `release/**` or `production` . An update accepts up to 100 patterns of 1 to 256 bytes each, with no surrounding whitespace or NUL characters. An empty list means no releases match. Clear the setting to use the inferred patterns again."}]},"description":"Branch and tag patterns that identify releases."}]}}],"examples":{"example":{"value":{"settings":{"repositoryId":"\u003cstring>","version":"\u003cstring>","configured":{},"effective":{},"editableFields":"\u003cstring>"},"correctnessReview":"\u003cstring>","checkRunAgents":"\u003cstring>","approvability":"\u003cstring>","githubActionsAgentRunsEnabled":true,"commitSummarizationEnabled":true,"prSummaryEnabled":true,"commentSeverityThreshold":"\u003cstring>","detectionMode":"\u003cstring>","correctnessMaxRunsPerPr":123,"correctnessMaxFileSizeBytes":123,"draftPrReviewEnabled":true,"autoMergeFixPrsEnabled":true,"requestReview":true,"skipDependabot":true,"approvabilityMinBlockingSeverity":"\u003cstring>","approvabilityAutoRerunEnabled":true,"approvabilityConclusion":"\u003cstring>","approvabilityMode":"\u003cstring>","approvabilityPreviewEnabled":true,"policyRepoId":"\u003cstring>","releaseRefPatterns":{"patterns":["\u003cstring>"]}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"macroscope","siteName":"Macroscope","title":"Get repository settings - Macroscope","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-28T23:36:30.344Z","originalFileLocation":"api-reference/endpoint/get-repo-settings.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"See a repository\u0026#x27;s configured settings, effective values, and editable fields\">\u003cmeta data-mint-head name=\"application-name\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get repository settings - Macroscope\">\u003cmeta data-mint-head property=\"og:description\" content=\"See a repository\u0026#x27;s configured settings, effective values, and editable fields\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Macroscope\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://macroscope.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Get+repository+settings\u0026amp;description=See+a+repository%27s+configured+settings%2C+effective+values%2C+and+editable+fields\u0026amp;theme=ab62f9e97a9aa757910919a8\u0026amp;signature=6bb19688ccc772d0e31b9f73e3322d7b65a18ec787db28efb4e66cbbbde651fd\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get repository settings - Macroscope\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"See a repository\u0026#x27;s configured settings, effective values, and editable fields\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://macroscope.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Get+repository+settings\u0026amp;description=See+a+repository%27s+configured+settings%2C+effective+values%2C+and+editable+fields\u0026amp;theme=ab62f9e97a9aa757910919a8\u0026amp;signature=6bb19688ccc772d0e31b9f73e3322d7b65a18ec787db28efb4e66cbbbde651fd\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6f16a3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/get-repo-settings.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.macroscope.com/#organization\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.macroscope.com#website\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings#webpage\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings\",\"name\":\"Get repository settings\",\"description\":\"See a repository's configured settings, effective values, and editable fields\",\"dateModified\":\"2026-11-28T23:36:30.344Z\",\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://docs.macroscope.com/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https://docs.macroscope.com/api\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get repository settings\",\"item\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings#apireference\",\"headline\":\"Get repository settings\",\"name\":\"Get repository settings\",\"description\":\"See a repository's configured settings, effective values, and editable fields\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings\",\"mainEntityOfPage\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/get-repo-settings#webpage\"},\"dateModified\":\"2026-11-28T23:36:30.344Z\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Macroscope\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Macroscope\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/get-repo-settings.md","siteName":"Macroscope","nav":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Overview","href":"/welcome"},{"title":"Setup","href":"/setup-instructions"},{"group":"Pricing","pages":[{"title":"Pricing overview","href":"/pricing"},{"title":"Models and token rates","href":"/model-pricing"},{"title":"Spend controls","href":"/spend-limits"}]},{"group":"Code Review","pages":[{"title":"Correctness","href":"/correctness"},{"title":"Detection mode","href":"/code-review/detection-mode"},{"group":"Modifying behavior","root":{"title":"Modifying behavior","href":"/code-review/macroscope"},"pages":[{"title":"Custom instructions","href":"/custom-instructions"},{"title":"Ignore files","href":"/code-review/ignore-files"}]},{"group":"Check Run Agents","root":{"title":"Check Run Agents","href":"/check-run-agents"},"pages":[{"title":"Configuration","href":"/check-run-agents/configuration"},{"title":"Instructions and context","href":"/check-run-agents/instructions"},{"title":"Triggers and skips","href":"/check-run-agents/triggers"},{"title":"GitHub Actions","href":"/github-actions"}]},{"title":"Approvability","href":"/approvability"},{"title":"CLI","href":"/cli"},{"title":"PR summaries","href":"/pull-request-descriptions"},{"title":"Fix it for me","href":"/fix-it-for-me"}]},{"group":"Status","pages":[{"title":"Status","href":"/status"},{"title":"Areas","href":"/areas"},{"title":"Productivity","href":"/productivity"},{"title":"Slack subscriptions","href":"/slack-subscriptions"},{"title":"Ask Macroscope","href":"/agent"},{"title":"Macros","href":"/macros"}]},{"group":"Integrations","pages":[{"title":"Webhooks","href":"/webhooks"},{"title":"Connected tools","href":"/integrations"},{"title":"MCP","href":"/api-reference/mcp"},{"group":"API","root":{"title":"API","href":"/api"},"pages":[{"title":"Get workspace","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}","playground":"none","href":"/api-reference/endpoint/get-workspace"},{"title":"List areas","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/areas","playground":"none","href":"/api-reference/endpoint/list-areas"},{"title":"Get workspace report","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/workspaceReport","playground":"none","href":"/api-reference/endpoint/get-workspace-report"},{"title":"Get sprint elapsed hours","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/sprintElapsedHours","playground":"none","href":"/api-reference/endpoint/get-sprint-elapsed-hours"},{"title":"List contributor statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/contributorStatistics","playground":"none","href":"/api-reference/endpoint/list-contributor-statistics"},{"title":"List team memberships","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teams/memberships","playground":"none","href":"/api-reference/endpoint/list-team-memberships"},{"title":"List team statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teamStatistics","playground":"none","href":"/api-reference/endpoint/list-team-statistics"},{"title":"Get coding time statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/codingTimeStatistics","playground":"none","href":"/api-reference/endpoint/get-coding-time-statistics"},{"title":"Query code review statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","playground":"none","href":"/api-reference/endpoint/query-code-review-statistics"},{"title":"List code review comments","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-comments","playground":"none","href":"/api-reference/endpoint/list-code-review-comments"},{"title":"Query approvability statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/approvability-statistics","playground":"none","href":"/api-reference/endpoint/query-approvability-statistics"},{"title":"List approvability runs","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/approvability-runs","playground":"none","href":"/api-reference/endpoint/list-approvability-runs"},{"title":"List commits","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/commits","playground":"none","href":"/api-reference/endpoint/list-commits"},{"title":"Get billing status","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/status","playground":"none","href":"/api-reference/endpoint/get-billing-status"},{"title":"Get billing balance","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/balance","playground":"none","href":"/api-reference/endpoint/get-billing-balance"},{"title":"Get billing controls","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/controls","playground":"none","href":"/api-reference/endpoint/get-billing-controls"},{"title":"List billing meter summaries","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/meterSummaries","playground":"none","href":"/api-reference/endpoint/list-billing-meter-summaries"},{"title":"List daily billing usage","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","playground":"none","href":"/api-reference/endpoint/list-daily-billing-usage"},{"title":"List agent credit usage","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/agentCreditUsage","playground":"none","href":"/api-reference/endpoint/list-agent-credit-usage"},{"title":"List workspace reporting periods","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/reportingPeriods","playground":"none","href":"/api-reference/endpoint/list-workspace-reporting-periods"},{"title":"List check-run agent billing summaries","description":"Credit usage grouped by repository and check-run agent for a time interval.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/checkRunAgentSummaries","playground":"none","href":"/api-reference/endpoint/list-check-run-agent-billing-summaries"},{"title":"Get repository settings","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","playground":"none","href":"/api-reference/endpoint/get-repo-settings"},{"title":"Update repository settings","description":"Change a repository's settings","api":"PATCH https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","playground":"none","href":"/api-reference/endpoint/update-repo-settings"}]},{"group":"S3 exports","root":{"title":"S3 exports","href":"/s3-exports"},"pages":[{"title":"Export schema","href":"/s3-exports/format"}]}]},{"group":"Workspace","pages":[{"title":"Workspace settings","href":"/settings"},{"title":"Enterprise Managed Users","href":"/github-enterprise-login"},{"title":"GitHub IP allow lists","href":"/github-ip-allow-list"},{"title":"Cancellation","href":"/cancel-subscription"}]},{"group":"Resources","pages":[{"title":"Murmur","href":"/murmur"},{"title":"Support","href":"/contact"},{"title":"Release notes","href":"/changelog"}]}]}]},"basePath":"","title":"Get repository settings - Macroscope","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js"]}