Skip to content

Only post PR comments when Codecov is enabled for the repository #979

Description

@mynameistito

Problem

Codecov currently appears to post PR comments on repositories where Codecov isn't actually enabled/configured for the project.

For example, I'm seeing comments like:

⚠️ Please install the Codecov app to ensure uploads and comments are reliably processed by Codecov.

followed by a Codecov report.

This creates unnecessary noise on repositories that aren't intended to use Codecov at all, particularly when Codecov has access at an organization/account level containing multiple unrelated repositories.

Expected behavior

Codecov should only post PR comments when the repository has explicitly opted into Codecov.

For example, a repository could be considered enabled if one or more of the following is true:

  • The repository has been activated/configured within Codecov.
  • Codecov has received a valid coverage upload for the repository/PR.
  • The repository has otherwise explicitly enabled Codecov's PR integration.

If none of those conditions are met, Codecov should not create a PR comment simply asking users to install/configure the Codecov GitHub App.

Current workaround

It looks like comments can be disabled per repository with:

comment: false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions