Skip to main content

inspect_pull_request

Function inspect_pull_request 

Source
pub async fn inspect_pull_request(
    input: &PullRequestInput,
    enabled: bool,
    token: Option<String>,
    basic_auth_username: Option<String>,
) -> Result<ToolEnvelope<PullRequestInspection>, ApplicationError>
Expand description

Inspects one GitHub or Bitbucket Cloud pull request through the public provider API.

Both the provider-level enabled gate and per-request consent must be true. The token remains ephemeral and is excluded from all returned data.

ยงErrors

Returns ApplicationError for disabled providers, missing consent, unsafe configuration, cancellation, timeouts, rate limits, provider errors, malformed responses, or unsupported Bitbucket Data Center requests.