Git Configuration
Update Git Configuration
Writes the organization-wide default of each section sent; sections not sent are left as they are. Repositories that override a section are unaffected. Changing excluded branches, excluded base branches, excluded file extensions, release detection or coding time strategy recomputes history asynchronously, and so does changing included file extensions
patch/api/v1/git/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.
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"
},
"bot_pr_attribution": {
"method": "merge_actor"
},
"include_file_extensions": {
"patterns": [
"\\.js$",
"\\.ts$"
]
},
"active_branches_duration": {
"days": 7
},
"issue_start_time": {
"method": "last_transition"
}
}Response
Successful Response
Example response
{
"settings": {
"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"
},
"bot_pr_attribution": {
"method": "merge_actor"
},
"include_file_extensions": {
"patterns": [
"\\.js$",
"\\.ts$"
]
},
"active_branches_duration": {
"days": 7
},
"issue_start_time": {
"method": "last_transition"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.