- 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.
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.
Pass generated context to the Change Review Action
You can also pipe AI-generated context into thecontext input of the Change Review Action instead of overwriting the PR body.
Summary
These approaches stack.
Related documentation
- GitHub Actions — Change Review Action reference and examples
- GitHub App — Automatic PR reviews
- CI/CD Integration — Overview of integration modes
- Creating Tests — Writing acceptance criteria in tickets and PR descriptions