Git Repositories
Replace Repository Configuration
Replaces the repository's overrides: each section sent overrides the organization default, and every section not sent returns to the organization default. Changing excluded branches, excluded base branches, excluded file extensions, release detection or coding time strategy recomputes history asynchronously
put/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.