Many sub-issues can be created from this feature, please create such sub-issues and reference this main issue. This is meant to be a more formalized version of the features described in the assignment.
We should utilize the X-GitHub-Event parameter to dispatch on the type of event the webhook will handle.
This feature represents our support for the pull_request event type.
When such an event is received the server should:
Parse the JSON body
Check if the action == "opened"
If so pull out the merge_commit_sha SHA
Do a git checkout of the hash
4a. Do a gradle compileJava of the checked out hash
5a. Save results of build to disk
6a. Post comment of results to the pull request page.
4b. Do a gradle test of the checked out hash
5b. Save results of build to disk
6b. Post comment of results to the pull request page.
Many sub-issues can be created from this feature, please create such sub-issues and reference this main issue. This is meant to be a more formalized version of the features described in the assignment.
We should utilize the X-GitHub-Event parameter to dispatch on the type of event the webhook will handle.
This feature represents our support for the pull_request event type.
When such an event is received the server should:
4a. Do a gradle compileJava of the checked out hash 5a. Save results of build to disk 6a. Post comment of results to the pull request page.
4b. Do a gradle test of the checked out hash 5b. Save results of build to disk 6b. Post comment of results to the pull request page.
References: https://developer.github.com/v3/activity/events/types/#pullrequestevent https://developer.github.com/webhooks/ https://developer.github.com/v3/issues/comments/#create-a-comment