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

Check if webhooks exist in a repository before creating them

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2019.11.01
    • Component/s: app
    • Labels:

      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

            Assignee:
            jonathan.brill Jonathan Brill
            Reporter:
            jonathan.brill Jonathan Brill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: