Skip to main content
POST
Turn PR/MR reviews on or off for repositories, by their id from the repository list. A repository must be selected for Hacktron access before its reviews can be turned on.
Enables automatic pull and merge request reviews for repositories in enable and disables them for repositories in disable. Use repository IDs from List repositories for any supported provider. Each list can contain up to 100 IDs per request.
Scope required: write. Role: organization admin.
  • First, enable Hacktron access to the repository from Repositories in Hacktron.
  • If one repository fails, Hacktron continues with the others. The response reports how many changed in processed and lists failures with their reasons in failedRepositories.
  • webhookPending lists enabled repositories whose provider webhook is still pending registration. Reviews begin once the webhook is registered.

Authorizations

X-Api-Key
string
header
required

Headers

X-Organization-Id
string
required

Organization ID

Body

application/json
enable
string<uuid>[]
required

Ids from the repository list of the repositories to turn on

Example:
disable
string<uuid>[]
required

Ids from the repository list of the repositories to turn off

Example:

Response

201 - application/json
processed
number
required

Keys applied

Example:

2

failed
number
required

Keys that failed

Example:

0

failedRepositories
object[]
required

Keys that failed, with the reason

webhookPending
string[]
required

Keys turned on whose provider webhook could not be registered

Example: