Git Repositories
Update Repository Configuration
Overrides the organization default of each section sent for the repository; sections not sent are left as they are. Never changes the organization default. Changing excluded branches, excluded base branches, excluded file extensions, release detection or coding time strategy recomputes history asynchronously
patch/api/v1/git/repositories/{repo_id}/config
Request
- Base URLhttps://public-api.linearb.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
repo_idinteger required
The repository id, as GET /api/v1/git/repositories returns it
Request body
Example request
{
"releases_detection": {
"method": "tags",
"pattern": ".*"
},
"draft_pull_requests": {
"labels": [
"wip",
"do not merge"
],
"title_pattern": "^.*wip.*$"
},
"default_branch": {
"branch_name": "main"
},
"exclude_branches": {
"patterns": [
"^main$",
"^release/.*"
]
},
"exclude_base_branches": {
"patterns": [
"^main$",
"^release/.*"
]
},
"exclude_file_extensions": {
"patterns": [
"^main$",
"^release/.*"
]
},
"coding_time_strategy": {
"method": "first_commit"
}
}Response
Successful Response
Example response
{
"repository_id": 80231,
"repository_name": "api"
}Changes
No recorded changes to this operation across all 1 revision of this API.