---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://sourcecraft.dev/portal/docs/en/cli-ref/src-pr.md
  - https://sourcecraft.dev/portal/docs/ru/cli-ref/src-pr.md
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt

# src pr

Manage prs

## Usage

`src pr [flags]`

### Available commands

| Command | Description |
| --- | --- |
| [add-comment](src-pr-add-comment.md) | Create comment |
| [checkout](src-pr-checkout.md) | Check out a pull request branch locally |
| [checks](src-pr-checks.md) | Get Merge Checks Returns comprehensive information about merge requirements: - Code review status and approval rules - Merge conflicts detection - CI workflow execution status - Configuration validation results |
| [create](src-pr-create.md) | Create a pull request |
| [delete-comment](src-pr-delete-comment.md) | Delete Comment Permanently deletes a pull request comment. This action cannot be undone. |
| [diff](src-pr-diff.md) | Show diff of a pull request |
| [discard](src-pr-discard.md) | Discard PullRequest |
| [draft](src-pr-draft.md) | Draft PullRequest |
| [edit](src-pr-edit.md) | Update PullRequest |
| [edit-comment](src-pr-edit-comment.md) | Update Comment Updates a pull request comment. Supports updating the comment body, resolution state, and publishing draft comments. |
| [files](src-pr-files.md) | List Pull Request Files Returns the list of files changed in a pull request with diff patches. |
| [get](src-pr-get.md) | Get PullRequest |
| [list](src-pr-list.md) | List Repository Pull Requests Retrieves all pull requests from an repository |
| [list-comments](src-pr-list-comments.md) | List Comments |
| [list-commits](src-pr-list-commits.md) | List commits in a pull request |
| [merge](src-pr-merge.md) | Merge a pull request |
| [publish](src-pr-publish.md) | Publish PullRequest (change status to open) |
| [reopen](src-pr-reopen.md) | Reopen PullRequest |

### Inherited flags

| Flag | Description |
| --- | --- |
| `--env string` | Override Sourcecraft environment (use 'src envs' to list available) |
| `--json string` | Output JSON, optionally filtered (--json or --json=field1,field2) |
| `--json-compact string` | Output compact JSON, optionally filtered |
| `-R, --repo string` | Select another repository using OWNER/REPO format |
| `-V, --verbose` | Enable debug logging output |

### Learn more

Use `src pr <subcommand> --help` for more information about a command.
