> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# EnterprisePrReviewsClient

## Constructor

```typescript
EnterprisePrReviewsClient(options: BaseClientOptions): PrReviewsClient
```

### Parameters

**options** `BaseClientOptions` *required*

### Returns

`PrReviewsClient`

## Methods

### createPrReview()

```typescript
createPrReview(request: PrReviewCreateRequest, requestOptions?: RequestOptions): HttpResponsePromise<PrReviewResponse>
```

Trigger a Devin Review for a pull/merge request.

Creates a database record that will be picked up by the review
worker pool. Always fetches the latest commit from the PR.

```ts
await client.enterprise.prReviews.createPrReview({
        pr_url: "https://github.com/owner/repo/pull/123"
    })
```

#### Parameters

**request** `PrReviewCreateRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<PrReviewResponse>`

### getPrReviewStatus()

```typescript
getPrReviewStatus(request: GetPrReviewStatusPrReviewsRequest, requestOptions?: RequestOptions): HttpResponsePromise<PrReviewResponse>
```

Return the latest Devin Review for a PR scoped to the enterprise.

The owning organization is resolved server-side from `pr_url` —
the same way as the trigger endpoint. When `commit_sha` is
omitted, the PR's current head commit is fetched from the provider
and used. Returns `404` when no review exists for the resolved
commit.

```ts
await client.enterprise.prReviews.getPrReviewStatus({
        pr_url: "https://github.com/owner/repo/pull/123"
    })
```

#### Parameters

**request** `GetPrReviewStatusPrReviewsRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<PrReviewResponse>`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.