title: Pull Requests description: How Copilot handles pull requests: linking, projects, reviewers, size, and AI description.
Pull Request Management
When your workflow runs on pull_request events (e.g. opened, edited, labeled), Copilot performs a set of actions so that PRs stay linked to issues, projects, and team workflows. It can link the PR to the issue, add it to project boards, assign reviewers, apply size and priority labels, and optionally generate the PR description with AI.
Workflow setup
Enable the action for pull_request events and minimal workflow YAML.
Capabilities
PR–issue linking, project linking, reviewers, size and priority, AI description, comments and images.
AI PR description
How OpenCode fills your PR template from the issue and branch diff.
Configuration
PR-specific inputs: project columns, reviewers, images, AI.
Examples
Full workflow YAML and common configurations.
Quick summary
| What happens | What Copilot does |
|---|---|
| A PR is opened or updated | Links the PR to the issue (from branch name); adds the PR to configured projects and moves it to the right column; assigns reviewers; computes size and priority from diff and updates labels; optionally generates or updates the PR description with AI. |
| Push to the PR branch | Commit workflow runs; Bugbot can post findings as review comments and update/sync with the issue. You can ask the bot to fix findings from a comment. See Bugbot. |
Bugbot (potential problems) runs on push or on demand; findings appear as review comments on the PR and as comments on the linked issue. For full details, see Bugbot.
Next steps
- Workflow setup — Trigger events and minimal workflow.
- Capabilities — Detailed description of each capability.
- AI PR description — Enable and configure AI-generated descriptions.