Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-6540

Check if webhooks exist in a repository before creating them

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v2019.11.01
    • app

    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).

      Attachments

        Activity

          People

            jonathan.brill@mongodb.com Jonathan Brill
            jonathan.brill@mongodb.com Jonathan Brill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: