When the webhook to Codecov.io is (mistakenly) removed in a public GitHub repo what is the easiest way to get it back? Preferably for a maintainer of the repo which does not have org permission to manage Codecov GitHub app.
Assuming you have access to add a webhook, I wonder if revoking your OAuth and signing back to Codecov would do it. Failing that, you may need to look into settings a team bot https://docs.codecov.io/docs/team-bot
Codecov uses GitHub Webhooks to keep in sync with your project.
A webhook has been enabled through GitHub Integrations. No setup required.
I do have org permission to manage the GitHub App. Is there are an easy way for me to re-add the webhook in all repos that currently missing it? But I was hoping there was a way for the maintainers to just add the webhook to the GitHub repo settings webhook page.
I rather not use the Team Bot since GitHub App works perfectly.
You can try using the API https://docs.codecov.io/v4.4.0/reference#section-activate-repository to activate it, that may put the webhook back. Iâm not sure without doing a code dive, which I donât have the bandwidth for currently. (will add to my list if that doesnât work, though)
The maintainer is currently adding the necessary steps to the pipeline to upload reports to Codecov.io. We will see if that will trigger the re-creation of the webhook (by the report is uploaded). Curious if the webhook is not needed when we have the GitHub App? Maybe the webhook in the other repos are something old before the GitHub App existed?
Ah, notify should not be part of Codecov.yml since we donât use the properties under it.
I just realized too that it was a bad repository to test with since that have the folder structure totally different than the others. I will try with another one in a bit.