Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
Description
When a repository is moved in GitHub (from one org to another) it seems to retain the webhooks that were set up before the move. When the Evergreen project is adjusted to point to the new owner it tries to create a webhook on the repo, but it fails since the webhook already exists.
Perhaps a solution is to check which whether Evergreen hooks have already been created for the repo and if so just save them instead of trying to create them.
Not sure what to do about the orphaned webhooks in the database when a GitHub repo is deleted (and then possibly reinstated and tracked in Evergreen).