# Review pull requests and AI-written code

Review pull requests inside Truetask: file-by-file diffs, inline comments, approve or request changes, and a cross-board Reviews page of what waits on you.

URL: https://docs.truetask.io/git/code-review

Truetask has a full review surface, so a pull request linked to a task can be read, commented on and decided without leaving the board.
Reviews post to the provider, so the rest of your team sees them where they expect.

## Where a review starts

| Entry point | Where |
| --- | --- |
| The eye beside the task key | The task frame's top line, when the task has linked pull requests. With several, it shows their count and opens a picker. |
| A pull request's title, or **Open review** on its row | The board's [Code view](https://docs.truetask.io/git/code-view) |
| **Open review** on a pull request row | The task's [Code sheet](https://docs.truetask.io/git/tasks#the-code-sheet) |
| **Open review** in the right-click menu | The [Unlinked rail](https://docs.truetask.io/git/code-view#the-unlinked-rail-on-kanban) on Kanban |
| A row on the **Reviews** page | `/reviews` |

They all open the same drawer, which works from a task, from a board you have open, and from the cross-board Reviews page alike.

## The review drawer

The drawer opens on the right.
Drag its left edge to resize it, between 480 and 1,400 pixels; the width is remembered in that browser.
**Full screen** gives the diff the whole window.

![Truetask code review drawer with a pull request diff and inline comments](https://docs.truetask.io/screenshots/code-review-drawer.webp)

The header carries the pull request's title, which opens it on the provider, its state, its review state, the CI badge, its number, the branch pair and the author.
Chips under it name the tasks it is linked to, and with a bookmark the tasks it is only referenced from; click one to open the task.
On the right sit the [coding tool](https://docs.truetask.io/git/coding-tools) button, **Open on provider**, **Full screen** and the close button.

Below that sits the change summary: the file count, additions, deletions, and how many files you have marked viewed.

The diff is read from the provider each time you open it; Truetask keeps no copy of it.

### Reading the diff

Files are listed on the left, the diff on the right.

| Key | Does |
| --- | --- |
| <kbd>j</kbd> | Next file |
| <kbd>k</kbd> | Previous file |
| <kbd>v</kbd> | Mark the current file viewed, or unmark it |
| <kbd>Esc</kbd> | Close the drawer, or close an open popover first |

Keys stand down while you are typing.
Which files you marked viewed is remembered per pull request in that browser, so a long review survives closing the drawer.

Each file can be shown as a **Unified view** or a **Split view**, and marked viewed from its own header.
A binary file is named but not drawn, a file too large to show says so, and a very large diff is cut short rather than dropped.

### Inline comments

Hover a line's number gutter and choose **Comment on this line**.
The comment is held as **Pending** until you submit the review, and the drawer counts pending comments for you.
Pending comments and your review note are kept per pull request in that browser, so closing the drawer or switching to another pull request never loses an unfinished review.

Comments on lines that are not in the visible diff are reported as a count, and comments on lines that changed since are marked **Outdated**.

### Submitting

**Review changes** opens **Finish your review**: your pending comments, each with a jump to its line and a remove button, the verdict, and a summary note.

| Verdict | Use it for |
| --- | --- |
| **Comment** | Feedback without a decision |
| **Approve** | Sign off |
| **Request changes** | Send it back |

**Comment** and **Request changes** need a note or at least one inline comment; **Approve** can go on its own.
**Submit review** sends everything to the provider in one review.
Without your own account signed in, Truetask may first ask whether to act as yourself; see [Your own git account](https://docs.truetask.io/git/#your-own-git-account).

### Activity

**Activity** opens the pull request's conversation: its comments and submitted reviews in one timeline, with a box to post a new **Comment**.
That comment posts to the pull request on the provider, not to the Truetask task.

Board viewers get a read-only drawer: the diff, the conversation and past reviews, without the comment box or **Review changes**.

## The Reviews page

**Reviews** in the sidebar's **Personal** section collects the open pull requests that concern you, across every board you are on.
It appears when you are on at least one board with a repository and **Code & reviews** is on in **Features**.

![Truetask Reviews page listing pull requests awaiting your review](https://docs.truetask.io/screenshots/reviews-inbox.webp)

It has two groups: **Awaiting my review**, the pull requests that ask for your review, and **Authored by me**.
Rows show the title, the state when it is not open, the review state and the CI result, then the repository, the number, the branch, how many tasks it is linked to and how long ago it moved, with the author on the right.
The refresh button in the toolbar reloads the page.

| Key | Does |
| --- | --- |
| <kbd>j</kbd> or <kbd>Down</kbd> | Next row |
| <kbd>k</kbd> or <kbd>Up</kbd> | Previous row |
| <kbd>Enter</kbd> | Open the review drawer |

Each row also carries the [coding tool](https://docs.truetask.io/git/coding-tools) button, so you can pull the branch down locally in one click.

The page finds your pull requests through the git team mapping.
If no git account is mapped to you yet, it says **No Git identity mapped** and offers the fix: **Open Integrations** for a workspace owner or admin, who maps people on the provider's page, and **Connect Git account** for everyone else, which opens their own provider account dialog.
Signing in with your own account maps you automatically.
See [Map people to git accounts](https://docs.truetask.io/git/#map-people-to-git-accounts).

## Your coding tools

Which coding tools a pull request opens in is your own choice, the same on every computer.
Open **Code tools** in the App menu, or **Customize tools** at the foot of a coding tool button's menu.
See [Coding tools](https://docs.truetask.io/git/coding-tools#choose-your-tools).

## Agents that review

Reviewing is one of the things [AI agents](https://docs.truetask.io/agents/) are good at, and Truetask ships a built-in workflow for it.

**Code review** reads the whole diff, restates what the change claims to do, then judges it against that intent: correctness, security, and whether the tests actually test anything.
It checks the change out, runs tests and lint itself, and exercises the changed behavior before posting inline comments and a verdict on the pull request.

Agents reach git through the same API you do.
The MCP server's 52 git tools cover issues, pull requests, diffs, reviews, comments, labels, assignees, milestones, branches, merges, label mappings, user mappings and a repository's recommended automations.
See [Agent workflows](https://docs.truetask.io/agents/workflows) and [MCP](https://docs.truetask.io/agents/mcp).

## Merging

Truetask has no merge button in the review drawer.
Merge on the provider, from an [automation](https://docs.truetask.io/automations/actions), or with an agent using the git tools.

The repository's CI gate applies to merges through Truetask.
With **Block failed CI** or **Block failed or pending CI** set, an automation's merge step fails while the gate is red.
A merge through the API or MCP is refused too, unless the repository allows **Admin bypass**, the call asks to bypass, and the caller is a board admin.
A merge through Truetask deletes the pull request's branch unless the workspace keeps task branches; see [Task branches](https://docs.truetask.io/git/#task-branches).

## Related

- [Branches, issues and pull requests](https://docs.truetask.io/git/tasks)
- [Code view](https://docs.truetask.io/git/code-view)
- [Coding tools](https://docs.truetask.io/git/coding-tools)
- [Agent workflows](https://docs.truetask.io/agents/workflows)
- [A task board for coding agents](https://docs.truetask.io/agents/coding-agents)
