Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make github webhook easier to extend with new events for auto registration. #3346

Merged
merged 6 commits into from
May 30, 2024

Commits on May 29, 2024

  1. Make github webhook easier to extend with new events for auto registr…

    …ation.
    
    The idea is to make it easier to extend github webhook with events
    that are tied to more than one repository, namely "installation" and
    "installation_repositories", which are necessary for repo auto
    registration.
    
    Fixes #3359
    blkt committed May 29, 2024
    Configuration menu
    Copy the full SHA
    bff5a4c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe7e316 View commit details
    Browse the repository at this point in the history
  3. Added case for push events.

    To avoid duplicating more code, repoEntity wrapper struct was
    added. This struct exposes the fields we're interested in for structs
    representing repositories.
    blkt committed May 29, 2024
    Configuration menu
    Copy the full SHA
    eb52cc8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    49876c1 View commit details
    Browse the repository at this point in the history
  5. Added Installation Info Wrapper.

    This decouples processing of "installation" events from the production
    of the message for further processing. Implementation is inspered to
    EntityInfoWrapper.
    blkt committed May 29, 2024
    Configuration menu
    Copy the full SHA
    52336ed View commit details
    Browse the repository at this point in the history
  6. Minor cleanup.

    blkt committed May 29, 2024
    Configuration menu
    Copy the full SHA
    a01f93c View commit details
    Browse the repository at this point in the history