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