| title | Fixing code quality findings in recently merged files | ||||
|---|---|---|---|---|---|
| shortTitle | Fix findings in recent merges | ||||
| intro | Apply autofixes or delegate remediation work to {% data variables.product.prodname_copilot_short %} for quality issues detected by AI-powered analysis of recently merged code. | ||||
| versions |
|
||||
| product | {% data reusables.gated-features.code-quality-availability %} | ||||
| permissions | {% data reusables.permissions.code-quality-see-repo-findings %} | ||||
| contentType | how-tos | ||||
| redirect_from |
|
||||
| category |
|
Tip
If you're new to {% data variables.product.prodname_code_quality_short %}, see AUTOTITLE for a guided walkthrough of reviewing and improving your repository's quality scores.
{% data variables.product.prodname_code_quality_short %} runs an AI-powered scan on recently changed files after code is merged to your default branch. This scan uses a large language model to report up to {% data variables.code-quality.num_ai_findings %} findings per file in up to {% data variables.code-quality.num_ai_findings %} files—across all languages, without being limited to predefined rules.
{% data reusables.code-quality.recent-suggestions-preview-note %}
{% data reusables.code-quality.dashboard-navigation-repo %} {% data reusables.code-quality.dashboard-recent-suggestions %}
On the {% data variables.code-quality.recent_suggestions %} page, each file is listed with the number of quality problems identified and when the file was pushed to the default branch. Click a file name to view the quality problems and their suggested fixes.
Note
This view is empty if the repository is inactive or if LLM analysis could not suggest ways to improve code quality in recent pushes to the default branch.
You can delegate remediation work to {% data variables.product.prodname_copilot_short %} or open a pull request yourself.
You need a {% data variables.product.prodname_copilot_short %} license to assign work to {% data variables.copilot.copilot_cloud_agent %}.
Sign up for {% data variables.product.prodname_copilot_short %} {% octicon "link-external" height:16 aria-label="link-external" %}
- Select the file or files you want to include for the fix, then click Assign to {% data variables.product.prodname_copilot_short %}.
- There is a delay while {% data variables.product.prodname_copilot_short %} sets up the work. When the pull request is open and work is in progress, a banner is displayed with a link to the pull request.
- Track {% data variables.product.prodname_copilot_short %}'s work:
- In the pull request, the summary is updated as work progresses.
- Using the agents page or session logs. See AUTOTITLE.
-
Click the file name to view details of the quality problems detected.
-
Review the problems and suggested fixes.
-
Expand the drop-down and then click {% octicon "git-pull-request" aria-hidden="true" aria-label="Pull request" %} Open pull request.
-
Click Open pull request to open a dialog of commit options.
-
Click Commit change to create a pull request with the fixes.
Note
When you open a pull request yourself, you can only commit fixes to one file at a time. To fix multiple files at once, you must delegate the work to {% data variables.product.prodname_copilot_short %}.

