REST API - Repos
Change the organization's PR/MR review settings. Only the fields sent change; null turns off the fail-on severity or clears a filter. A repository's .hacktron/config.yaml overrides these.
Changed onpatch/pr-review-settings
Request
- Base URLhttps://api.hacktron.ai/v1
- URLhttps://api.hacktron.ai/v1/pr-review-settings
- AuthAPI key in header X-Api-Key
Headers
X-Organization-Idstring required
Organization ID
Request body
Example request
{
"scan_include_branches": [
"main",
"**/release/**"
],
"scan_exclude_branches": [
"**/release/legacy/**"
],
"scan_include_labels": [
"feature",
"bugfix"
],
"scan_exclude_labels": [
"wip",
"no-scan"
],
"scan_include_authors": [
"alice",
"bob"
],
"scan_exclude_authors": [
"dependabot[bot]",
"renovate[bot]",
"*-bot"
],
"scan_include_keywords": [
"release",
"security"
],
"scan_exclude_keywords": [
"[exclude hacktron]",
"wip"
]
}Response
Example response
{
"scan_include_branches": [
"main",
"**/release/**"
],
"scan_exclude_branches": [
"**/release/legacy/**"
],
"scan_include_labels": [
"feature",
"bugfix"
],
"scan_exclude_labels": [
"wip",
"no-scan"
],
"scan_include_authors": [
"alice",
"bob"
],
"scan_exclude_authors": [
"dependabot[bot]",
"renovate[bot]",
"*-bot"
],
"scan_include_keywords": [
"release",
"security"
],
"scan_exclude_keywords": [
"[exclude hacktron]",
"wip"
]
}Changes
- info
endpoint added
- info