API

PullRequestSettingDetectComment

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/verify/pull_request_settings/detect_comments create What was found on recent requests

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.PullRequestSettingDetectComment(nil).Create(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:PullRequestSettingDetectComment():create({ organization_id = "example", project_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->PullRequestSettingDetectComment()->create(["organization_id" => "example", "project_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.PullRequestSettingDetectComment().create({ "organization_id": "example", "project_id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.PullRequestSettingDetectComment.create({ "organization_id" => "example", "project_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.PullRequestSettingDetectComment().create({ organization_id: "example", project_id: "example" })

Fields

Field Type Required Description
bots array No The bots answer
deployment string No The deployment answer
example_url string No Example Url
imessage_comment_prefix string No Imessage Comment Prefix
imessage_number one,string,null No International destination number; blank or null clears it on an added environment.
kind string Yes Kind
link_pattern string No The link_pattern answer
project_id string Yes Project slug or ID.
provider string No Who builds the previews, such as Vercel or GitLab
repository_id string No Repository slug, ID or owner/name.
request_number integer No Request Number

create

POST /api/v1/organizations/{organization_id}/verify/pull_request_settings/detect_comments

Operation ID: detect_comments_api_v1_pull_request_settings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
project_id string Yes Project slug or ID.
repository_id string No Repository slug, ID or owner/name. Defaults to the project's configured or only repository.

Responses

200: What was found on recent requests

application/json

Property Type Required Description
bots array of string No The bots answer
deployment string No The deployment answer
example_url string No
imessage_comment_prefix string No
imessage_number string No International destination number; blank or null clears it on an added environment.
kind enum: deployment, comment, none Yes
link_pattern string No The link_pattern answer
provider string No Who builds the previews, such as Vercel or GitLab
request_number integer No
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway