Go to the content
DE Download
Pages of the documentation

PR Reviews

The plugin starts the review of a pull request and shows the findings as cards. You read each finding, select the good ones, and post them to GitHub from the note.

Review cards in a review note

How to start a review

  1. Enable the plugin. Its icon then shows in the icon bar.
  2. Select the icon and go to Review a pull request.
  3. Select the project and the pull request.
  4. Select Start.

The plugin creates the review note first. Then a chat session starts, and the agent writes its findings into that note.

The cards

A finding is a code block with the language pr-comment. The first part holds the fields. The comment and the code context follow, each after a line with ---.

repo: acme/shop
pr: 42
path: src/cart.ts
line: 18
kind: suggestion
---
The total ignores the discount. Subtract the discount before the tax.
---
-  const total = price * quantity;
+  const total = (price - discount) * quantity;

A block with the language pr-actions shows the buttons for the pull request:

repo: acme/shop
pr: 42
---
Select the comments above. Then post them.
Button Result
Copy comment Copies the text of the comment.
Open PR Opens the pull request in the browser.
Post selected Posts each selected comment to the pull request. The app asks before it posts.
Approve PR Approves the pull request. The app asks before it approves.

Settings

Setting Meaning
Review folder The vault folder for the review notes.
File name The name of a review note, with placeholders such as {{number}} and {{slug}}.
Review skill The skill that the agent uses.
Sub agents A review without sub agents is slower and uses fewer tokens.

What it needs

The GitHub CLI gh is on your PATH and has a login.