code_corps v0.0.1 CodeCorps.GitHub.Event.Installation View Source

In charge of handling a GitHub Webhook payload for the Installation event type https://developer.github.com/v3/activity/events/types/#installationevent

Link to this section Summary

Functions

Handles the “Installation” GitHub Webhook event

Link to this section Functions

Link to this function handle(payload) View Source
handle(map()) ::
  CodeCorps.GitHub.Sync.installation_event_outcome() |
  {:error, :unexpected_payload}

Handles the “Installation” GitHub Webhook event.

This is done by first validating the payload is in the format the system expects, followed by piping it into

CodeCorps.GitHub.Sync.installation_event/1