- PR description — what does the author say this PR does?
- Linked issues/tickets — Jira or Linear tickets referenced in the description, branch name, or commits
- Changed files — which files and routes were modified
- Commit messages — incremental changes
context input when triggering reviews via the Change Review Action or API.
Recommended Workflow for New Features
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.
What makes a good PR description
A useful PR description should answer:Example
A PR that adds Apple Pay to the checkout flow:Link your tickets
If PRs reference issue identifiers — likePROJ-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:/create-pr command that diffs against main, generates a description with test steps, and creates the PR:
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.
Related documentation
- GitHub pull request testing — Change Review Action reference and examples
- GitHub — Install the App and repository settings
- PR Testing overview — When a review runs and which CI to use
- API pull request testing — Start a review from any CI and pass
context - PR Testing for Mobile Apps - Pin native iOS and Android PR builds instead of preview URLs