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. Instead of creating tests before the feature exists, document what should be tested in your ticket or PR description:
1

Add Acceptance Criteria to Your Ticket

When creating a Linear, Jira, or other ticket for a new feature, include acceptance criteria that describe what should be tested. For example: “User can navigate to Admin page and add a new user”, “New user receives invitation email”, “Admin can see the new user in the user list”.
2

Include Test Requirements in PR Description

When you open the PR, include testing requirements in the description. The review agent reads your PR and uses this context to select and create appropriate tests.
3

Tests Are Created When the PR Is Ready

When the PR is published and your preview environment is ready, the agent analyzes the changes and acceptance criteria, then creates and runs tests for the new functionality. See PR Testing overview and GitHub.
You spend time describing what to test (which you would do for acceptance criteria anyway), and the agent handles how to test it once the feature is ready. That is how the suite stays current as features ship.

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. When you start a review from CI, you can also pass extra testing guidance in the context field (ticket text or a generated summary). See API pull request testing.

Summary

These approaches stack.