Slack notification is not working

Description

I’m trying to setup codecov report for my iOS project and added incoming-webhook url in codecov.yml. I’m able to see the codecoverage report but not getting notification in slack.

Repository

I’m working in private repo not sure if I can share that here

Versions

slack version is 3.3.7
chrome 72 and macos 10.14

Additional Information

this is my yml content under codecov.yml
notify:
slack:
default:
url: “https://hooks.slack.com/services/{REDACTED}
only_pulls: false
branches: null
flags: null
threshold: “0.1%”
paths: null

1 Like

Hey @sathishkraj based on how you set the YAML, it would only comment if you went under your threshold change (0.1%) --> do you have an example of a commit or PR that broke threshold and still didn’t post?

29%20PM

this is latest commit, not sure if this decreased % wont post notification

And whats the threshold value to set to see the slack notification always?

-.04% is less than -0.10% so this wouldn’t post. I would recommend removing the “threshold” line in your YAML so that it will always post.

Thanks for the reply!!. Will try that, but have already tried with 0%. Is that equal to removing the “threshold”?

1 Like

Tried removing threshold but still it is not working

1 Like

could you test your codecov config file (codecov.yml or .codecov.yml) ?
with this?

curl --data-binary @codecov.yml https://codecov.io/validate
1 Like

Hi guys! I added Slack webhook URL to our codecov.yml but Slack notifications are not sent. How can I debug it to understand why?

codecov:
  token: "token_here"
coverage:
  notify:
    slack:
      default:
        url: "https://hooks.slack.com/services/some_hash_here"
        only_pulls: false
        threshold: 0%
        branches: null

@ellenaua can you open a new support ticket for this?