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