# Disable all intereactions on PRs

**URL:** <https://community.codecov.com/t/disable-all-intereactions-on-prs/1218>\
**Category:** Support\
**Created:** [April 5, 2020, 11:42am UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218 "2020-04-05T11:42:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [April 5, 2020, 11:42am UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/1 "2020-04-05T11:42:43Z")

</div>

### Description

We’re trying to disable all codecov interactions with a PR, though we still want to upload reports.  
So far it seems like we’ve been successful in disabling comments, but we still randomly get a commit status from codecov.

How do we disable all codecov interactions with a PR?

### Repository

The PR in question:

> <https://github.com/saltstack/salt/pull/55765>
>
> \### What does this PR do?
> 
> What it says on the tin. Implements \[SEP 15\](https:…//github.com/saltstack/salt-enhancement-proposals/blob/master/accepted/0015-black.md) - at least the \`black\` portion of it. Apparently \`isort\` will cause a bunch of issues with our linting, because of the number of lint comments around imports.
> 
> \### What issues does this PR fix or reference?
> 
> \[SEP 15\](https://github.com/saltstack/salt-enhancement-proposals/blob/master/accepted/0015-black.md)
> 
> \### Previous Behavior
> 
> Salt's code was painted many different colors of bikeshed
> 
> \### New Behavior
> 
> Salt's code is now a lovely shade of Black
> 
> \### Tests written?
> 
> No (code should not have been changed)
> 
> \### Commits signed with GPG?
> 
> Yes

The report:

> **[Code coverage done right.](https://app.codecov.io/gh/saltstack/salt/compare/cdca5aafe01823fc01bad3c0f3cd41dd82f5192c...fdbd555857a5191492ddd4fd4397142388d13eb7)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

The config:

> <https://github.com/waynew/salt/blob/develop/.codecov.yml>

### Versions

Latest bash uploader, any other version is likely unrelated, please suggest otherwise.

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [April 5, 2020, 11:51am UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/2 "2020-04-05T11:51:22Z")

</div>

I guess what’s missing is:

```auto
coverage:
  status:
      project:
        default:
          enabled: no

```

?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [April 16, 2020, 5:14pm UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/3 "2020-04-16T17:14:22Z")

</div>

Hey @s0undt3ch, did this work for you?

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [April 17, 2020, 9:39am UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/4 "2020-04-17T09:39:34Z")

</div>

No.

The yaml that codecov reports on the project’s settings is:

```
{
    "codecov": {
        "branch": "master", 
        "ci": [
            "drone.saltstack.com", 
            "jenkinsci.saltstack.com"
        ], 
        "notify": {}, 
        "require_ci_to_pass": false
    }, 
    "comment": false, 
    "coverage": {
        "precision": 2, 
        "range": [
            70.0, 
            100.0
        ], 
        "round": "up", 
        "status": {
            "changes": {
                "default": {
                    "enabled": false, 
                    "if_ci_failed": "success", 
                    "if_no_uploads": "success", 
                    "if_not_found": "success"
                }
            }, 
            "patch": {
                "default": {
                    "enabled": false, 
                    "if_ci_failed": "success", 
                    "if_no_uploads": "error", 
                    "if_not_found": "success", 
                    "target": 80.0
                }
            }, 
            "project": {
                "default": {
                    "enabled": true, 
                    "if_ci_failed": "success", 
                    "if_no_uploads": "error", 
                    "if_not_found": "success"
                }
            }
        }
    }, 
    "ignore": [
        "^[^\\/]+.py$", 
        "^doc/.*", 
        "^tests/.*"
    ], 
    "parsers": {
        "gcov": {
            "branch_detection": {
                "conditional": true, 
                "loop": true, 
                "macro": false, 
                "method": false
            }
        }, 
        "javascript": {
            "enable_partials": false
        }
    }
}

```

However, the current config in our master branch differs:

> <https://github.com/saltstack/salt/blob/f4feef105b3e2de1545f8c30a8328d70ea2f8d4f/.codecov.yml>

Event though, no errors were reported:

```
cat .codecov.yml | curl --data-binary @- https://codecov.io/validate
Valid!

{
  "ignore": [
    "^[^\\/]+.py$",
    "^doc/.*",
    "^salt/ext/.*"
  ],
  "comment": false,
  "flags": {
    "tests": {
      "carryforward": true,
      "paths": [
        "^tests/.*"
      ]
    },
    "salt": {
      "carryforward": true,
      "paths": [
        "^salt/.*"
      ]
    }
  },
  "coverage": {
    "status": {
      "project": {
        "default": {
          "informational": true
        },
        "tests": {
          "if_ci_failed": "error",
          "paths": [
            "^!salt/.*"
          ],
          "base": "auto",
          "target": "auto",
          "if_not_found": "success",
          "if_no_uploads": "error"
        },
        "salt": {
          "if_ci_failed": "error",
          "paths": [
            "^!tests/.*"
          ],
          "base": "auto",
          "target": "auto",
          "if_not_found": "success",
          "if_no_uploads": "error"
        }
      },
      "changes": {
        "default": {
          "if_ci_failed": "error",
          "informational": true,
          "if_not_found": "success",
          "if_no_uploads": "error"
        }
      },
      "patch": {
        "default": {
          "if_ci_failed": "error",
          "informational": true,
          "target": 100.0,
          "if_not_found": "success",
          "if_no_uploads": "error"
        }
      }
    },
    "range": [
      70.0,
      100.0
    ],
    "round": "up",
    "precision": 2
  },
  "codecov": {
    "ci": [
      "drone.saltstack.com",
      "jenkinsci.saltstack.com"
    ]
  }
}

```

So I’m lost at what’s happening.

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [April 22, 2020, 8:54am UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/5 "2020-04-22T08:54:46Z")

</div>

@jerrod sorry for the direct ping. Any light on this? We keep getting GH status intereactions on our PRs.

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [April 24, 2020, 10:36am UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/6 "2020-04-24T10:36:17Z")

</div>

Can anyone shed some light on why this is happening?

---

<div class="post-metadata">

**Author:** ![jerrod](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jerrod/32/41_2.png) [@jerrod](https://community.codecov.com/u/jerrod)\
**Post date:** [May 1, 2020, 8:38pm UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/7 "2020-05-01T20:38:09Z")

</div>

Hey @s0undt3ch – sorry for lengthy delay, in your master YAML you have some customization under `status` config.

I’d recommend setting under status:

```auto
coverage: 
    status: false

```

Under your project YAML, the default YAML has also has some interaction with the PR: [Status Checks](https://docs.codecov.io/docs/commit-status)

Similarly, I’d recommend explicitly stating:

```auto
coverage: 
    status: false

```

Hope this helps!

Jerrod

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [May 2, 2020, 8:53pm UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/8 "2020-05-02T20:53:19Z")

</div>

Ok. I’ll try that.  
And the config shown on codecov UI not matching the config on the repo?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [May 13, 2020, 4:05pm UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/9 "2020-05-13T16:05:16Z")

</div>

Hi @s0undt3ch, not completely sure what you meant there, but I wanted to check in and see if that fixed your issue.

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [June 10, 2020, 4:13pm UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/10 "2020-06-10T16:13:54Z")

</div>

Sorry for the very late reply.  
We have successfully disabled all PR interactions.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [June 10, 2020, 4:22pm UTC](https://community.codecov.com/t/disable-all-intereactions-on-prs/1218/11 "2020-06-10T16:22:58Z")

</div>

No worries @s0undt3ch, glad it worked for you!
