Skip to content

Bulk-set custom property values across repos

Write custom property values to one or more repos in a single org-level call. This is a broad-blast-radius write — it can retarget ruleset enforcement across every named repo at once if any of those properties drive ruleset targeting in your org.

confirmRepoCount must equal repoNames.length exactly, or the call throws confirmation_mismatch before any API call is made. This is a deliberate guard against an accidental oversized repo list, not boilerplate to route around — count your repoNames before you set it.

set_repo_custom_properties {
"org": "<org>",
"repoNames": ["repo-a", "repo-b"],
"properties": [
{ "propertyName": "team", "value": "platform" },
{ "propertyName": "cost-center", "value": null }
],
"confirmRepoCount": 2
}

Pass value: null to clear a property, or a string[] for a multi-select property.

{ "org": "<org>", "repoNames": ["repo-a", "repo-b"] }

This writes to every repo in repoNames in one call — there’s no per-repo dry run. Double-check the list, especially when it’s been built programmatically, before calling.