Skip to main content

Fixing code quality findings in recently merged files

Apply autofixes or delegate remediation work to Copilot for quality issues detected by AI-powered analysis of recently merged code.

Qui peut utiliser cette fonctionnalité ?

Utilisateurs avec accès en écriture

GitHub Team ou GitHub Enterprise Cloud

Conseil

If you're new to Code Quality, see Raising your repository's code quality score for a guided walkthrough of reviewing and improving your repository's quality scores.

How Code Quality analyzes recently merged files

Code Quality 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 5 findings per file in up to 5 files—across all languages, without being limited to predefined rules.

Remarque

The "Résultats de l’IA" page for recently changed files is currently in préversion publique and subject to change.

Viewing recent suggestions

  1. Accédez à l’onglet Security and quality de votre référentiel.

  2. Cliquez pour développer Qualité du code, puis cliquez Résultats de l’IA.

    On the Résultats de l’IA 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.

    Screenshot of the "Résultats de l’IA" view for code quality.

Remarque

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.

Resolving a finding

You can delegate remediation work to Copilot or open a pull request yourself.

Delegate to Copilot

You need a Copilot license to assign work to Agent cloud Copilot.
Sign up for Copilot

  1. Select the file or files you want to include for the fix, then click Assign to Copilot.
  2. There is a delay while Copilot 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.
  3. Track Copilot's work:

Open a pull request

  1. Click the file name to view details of the quality problems detected.

  2. Review the problems and suggested fixes.

  3. Expand the drop-down and then click Open pull request.

    Screenshot of the "Résultats de l’IA" view for code quality.

  4. Click Open pull request to open a dialog of commit options.

  5. Click Commit change to create a pull request with the fixes.

Remarque

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 Copilot.

Further reading