Skip to main content
Returns the workspace’s repository defaults: the settings a repository starts with when it is added to the workspace. The response includes the configured defaults, the values a repository added now would start with, and the defaults your credential can change. Pass the returned version when you update the defaults. Defaults apply only to repositories added later. Read a repository’s own settings with Get repository settings. If the workspace has no repository defaults, the request returns 404.

Authorization

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

Path parameters

string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.

Response

WorkspaceRepoDefaults

WorkspaceRepoDefaultValues

Each default has the same name, values, and meaning as the repository setting in RepoSettingValues, applied as the value a new repository starts with. An omitted default has no value, so a default returned as false is explicitly off. A default that depends on a feature the workspace does not have, such as Approvability, is omitted from both configured and effective and cannot be changed. policyRepoId is omitted if you cannot read the Policy Repo. With no default of its own, a new repository uses COMMENT_SEVERITY_THRESHOLD_OFF for commentSeverityThreshold, APPROVABILITY_BLOCKING_SEVERITY_MEDIUM for approvabilityMinBlockingSeverity, and APPROVABILITY_CONCLUSION_NEUTRAL for approvabilityConclusion. The defaults also include the pull request filters skipPrAuthorLogins, skipPrLabels, skipPrTargetBranches, alwaysReviewPrLabels, and crossRepoPrReviewEnabled. Each has the same shape, update limits, and matching rules as the repository setting, applied to repositories added later. The four lists are always returned; {} means the list is empty. This example shows selected defaults returned to an Admin key.