Skip to main content
The review agent prioritizes context signals in this order:
  1. PR description — what does the author say this PR does?
  2. Linked issues/tickets — Jira or Linear tickets referenced in the description, branch name, or commits
  3. Changed files — which files and routes were modified
  4. Commit messages — incremental changes
An empty or vague PR description forces the agent to infer intent from the diff alone — less focused test selection, more guesswork about which user flows are affected. The same applies to the context input when triggering reviews via the Change Review Action or API.

What makes a good PR description

A useful PR description should answer:

Example

A PR that adds Apple Pay to the checkout flow:
Compare this to a PR titled “Add payment stuff” with no description — the agent won’t know to focus on device compatibility or the fallback flow. If PRs reference issue identifiers — like PROJ-1234 in the description, branch name (feature/PROJ-1234-apple-pay), or commits — the agent fetches the full ticket details including acceptance criteria. Works with Jira and Linear when the integration is configured in project settings. Acceptance criteria from the ticket stack with the PR description, so you don’t need to duplicate them.

Automate PR descriptions with an AI agent

AI coding agents can read the diff, inspect surrounding code for context, and generate a structured description in seconds. You can run this as a GitHub Action so every PR gets a description automatically.

GitHub Action example

This example uses OpenCode, but the same idea works with any coding agent or LLM CLI tool. Bring your own API key.
This is illustrative — adapt the prompt and tooling to your stack.

Run it locally

You can do the same thing locally before opening a PR:
Most coding agents support custom commands — reusable prompts you invoke with a shortcut. You can create a /create-pr command that diffs against main, generates a description with test steps, and creates the PR:
The command would instruct the agent to run git diff main...HEAD, draft a concise description, and create or update the PR with gh pr create or gh pr edit --body-file. See OpenCode custom commands or your agent’s equivalent. Claude Code also has a built-in /pr command. CI gives you consistency — every PR gets a description regardless of who opens it.

Pass generated context to the Change Review Action

You can also pipe AI-generated context into the context input of the Change Review Action instead of overwriting the PR body.
You can combine approaches: auto-generate the PR description and pass extra context to the Change Review Action. The agent sees both.

Summary

These approaches stack.