update_repository_branching_model_settings
Configure repository branching rules to define development, production, and branch type settings for structured Git workflows.
Instructions
Update the branching model configuration for a repository.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
repository_name | Yes | Name of the repository (repo slug) | |
settings | Yes | The branching model settings to update. Only passed properties will be updated. See Bitbucket API for details. |
Input Schema (JSON Schema)
{
"properties": {
"repository_name": {
"description": "Name of the repository (repo slug)",
"type": "string"
},
"settings": {
"description": "The branching model settings to update. Only passed properties will be updated. See Bitbucket API for details.",
"properties": {
"branch_types": {
"items": {
"properties": {
"enabled": {
"type": "boolean"
},
"kind": {
"enum": [
"release",
"hotfix",
"feature",
"bugfix"
],
"type": "string"
},
"prefix": {
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
"type": "array"
},
"development": {
"properties": {
"name": {
"type": "string"
},
"use_mainbranch": {
"type": "boolean"
}
},
"type": "object"
},
"production": {
"properties": {
"enabled": {
"type": "boolean"
},
"name": {
"type": "string"
},
"use_mainbranch": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
},
"required": [
"repository_name",
"settings"
],
"type": "object"
}