Skip to main content
PATCH
Update code review settings

Path Parameters

projectId
string<uuid>
required

Project ID to fetch.

Body

application/json
codeReviewEnabled
boolean

Master switch for code review. Needs the plan's code-review entitlement to turn on.

codeReviewOnPushEnabled
boolean

Review new changes pushed to a pull request, not only when it opens. Needs the code-review entitlement to turn on.

codeReviewApprovalEnabled
boolean

Approve pull requests that review finds nothing to fix in. Needs the code-review entitlement to turn on.

securityReviewEnabled
boolean

Run the automatic security review of this project's changes.

loggingReviewEnabled
boolean

Turn Logging review on or off. Needs the code-review entitlement to turn on.

loggingReviewMode
enum<string>

How Logging review delivers changes: suggest, on_demand or auto_commit.

Available options:
suggest,
on_demand,
auto_commit
loggingReviewDailyCommitLimit
integer | null

Most auto-commits Logging review makes per day (1 to 100); null removes the limit.

Required range: 1 <= x <= 100
gitCommitAuthorMode
enum<string>

default commits as Sazabi; custom uses gitCommitAuthorName and gitCommitAuthorEmail, which must then both be sent.

Available options:
default,
custom
gitCommitAuthorName
string | null
Required string length: 1 - 255
gitCommitAuthorEmail
string<email> | null
Maximum string length: 320

Response

200 - application/json

OK

projectId
string<uuid>
required
codeReviewEnabled
boolean
required

Master switch: when off, Sazabi never reviews pull requests for this project.

codeReviewOnPushEnabled
boolean
required

Review new changes pushed to a pull request, not only when it opens.

codeReviewApprovalEnabled
boolean
required

Approve pull requests that review finds nothing to fix in.

securityReviewEnabled
boolean
required

Run the automatic security review of this project's changes.

loggingReviewEnabled
boolean
required

Logging review: review pull requests for missing or weak logging.

loggingReviewMode
enum<string>
required

How Logging review delivers changes (only used while it is enabled).

Available options:
suggest,
on_demand,
auto_commit
loggingReviewDailyCommitLimit
integer | null
required

Most auto-commits Logging review makes per day in auto_commit mode; null for no limit.

Required range: 0 < x <= 9007199254740991
gitCommitAuthorMode
enum<string>
required

default commits as Sazabi; custom uses the name and email.

Available options:
default,
custom
gitCommitAuthorName
string | null
required
gitCommitAuthorEmail
string | null
required