code_corps v0.0.1 CodeCorps.GitHub.Event.Issues View Source
In charge of handling a GitHub Webhook payload for the Issues event type
https://developer.github.com/v3/activity/events/types/#issuesevent
Link to this section Summary
Functions
Handles the “Issues” GitHub webhook
Link to this section Functions
Link to this function
handle(payload)
View Source
handle(map()) :: CodeCorps.GitHub.Sync.issue_event_outcome() | {:error, :unexpected_payload}
Handles the “Issues” GitHub webhook
The process is as follows:
- validate the payload is structured as expected
- validate the action is properly supported
- sync the issue using
CodeCorps.GitHub.Sync.Issue