{"action":"created","comment":{"url":"https://api.github.com/repos/baholladay/sakai/pulls/comments/177882650","pull_request_review_id":107841133,"id":177882650,"diff_hunk":"@@ -161,10 +166,132 @@ public void init() {\n \t\t// Populate similarity report headers used in generateSimilarityReport\n \t\tSIMILARITY_REPORT_HEADERS.putAll(BASE_HEADERS);\n \t\tSIMILARITY_REPORT_HEADERS.put(HEADER_CONTENT, CONTENT_TYPE_JSON);\n+\t\t\n+\t\t// Populate webhook generation headers used in setupWebhook\n+\t\tWEBHOOK_SETUP_HEADERS.putAll(BASE_HEADERS);\n+\t\tWEBHOOK_SETUP_HEADERS.put(HEADER_CONTENT, CONTENT_TYPE_JSON);\n \n \t\t// Populate content upload headers used in uploadExternalContent\n \t\tCONTENT_UPLOAD_HEADERS.putAll(BASE_HEADERS);\n \t\tCONTENT_UPLOAD_HEADERS.put(HEADER_CONTENT, CONTENT_TYPE_BINARY);\n+\n+\t\ttry {\n+\t\t\t// Get the webhook url\n+\t\t\tString webhookUrl = getWebhookUrl(Optional.empty());\n+\t\t\t// Hard-coded url for testing locally (leave in for now):\n+\t\t\t// String webhookUrl = \"http://vericite.com/content-review-tool/webhooks?providerName=TurnitinOC\";","path":"content-review/impl/turnitin-oc/src/main/java/org/sakaiproject/contentreview/turnitin/oc/ContentReviewServiceTurnitinOC.java","position":45,"original_position":45,"commit_id":"715295db0926b275d8ac66f0f04c84ce76a8b740","original_commit_id":"715295db0926b275d8ac66f0f04c84ce76a8b740","user":{"login":"baholladay","id":345790,"avatar_url":"https://avatars2.githubusercontent.com/u/345790?v=4","gravatar_id":"","url":"https://api.github.com/users/baholladay","html_url":"https://github.com/baholladay","followers_url":"https://api.github.com/users/baholladay/followers","following_url":"https://api.github.com/users/baholladay/following{/other_user}","gists_url":"https://api.github.com/users/baholladay/gists{/gist_id}","starred_url":"https://api.github.com/users/baholladay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baholladay/subscriptions","organizations_url":"https://api.github.com/users/baholladay/orgs","repos_url":"https://api.github.com/users/baholladay/repos","events_url":"https://api.github.com/users/baholladay/events{/privacy}","received_events_url":"https://api.github.com/users/baholladay/received_events","type":"User","site_admin":false},"body":"he won't need it and we shouldn't commit code that shouldn't go into Sakai core code","created_at":"2018-03-28T20:38:39Z","updated_at":"2018-03-28T20:38:39Z","html_url":"https://github.com/baholladay/sakai/pull/10#discussion_r177882650","pull_request_url":"https://api.github.com/repos/baholladay/sakai/pulls/10","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/baholladay/sakai/pulls/comments/177882650"},"html":{"href":"https://github.com/baholladay/sakai/pull/10#discussion_r177882650"},"pull_request":{"href":"https://api.github.com/repos/baholladay/sakai/pulls/10"}},"in_reply_to_id":177875672},"pull_request":{"url":"https://api.github.com/repos/baholladay/sakai/pulls/10","id":178122192,"html_url":"https://github.com/baholladay/sakai/pull/10","diff_url":"https://github.com/baholladay/sakai/pull/10.diff","patch_url":"https://github.com/baholladay/sakai/pull/10.patch","issue_url":"https://api.github.com/repos/baholladay/sakai/issues/10","number":10,"state":"open","locked":false,"title":"Webhooks 4","user":{"login":"AndroidDoctorr","id":11634568,"avatar_url":"https://avatars0.githubusercontent.com/u/11634568?v=4","gravatar_id":"","url":"https://api.github.com/users/AndroidDoctorr","html_url":"https://github.com/AndroidDoctorr","followers_url":"https://api.github.com/users/AndroidDoctorr/followers","following_url":"https://api.github.com/users/AndroidDoctorr/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDoctorr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDoctorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDoctorr/subscriptions","organizations_url":"https://api.github.com/users/AndroidDoctorr/orgs","repos_url":"https://api.github.com/users/AndroidDoctorr/repos","events_url":"https://api.github.com/users/AndroidDoctorr/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDoctorr/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-28T18:20:50Z","updated_at":"2018-03-28T20:38:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38db9e597404e3eb2a6405d32ae3dc9092f545b6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/baholladay/sakai/pulls/10/commits","review_comments_url":"https://api.github.com/repos/baholladay/sakai/pulls/10/comments","review_comment_url":"https://api.github.com/repos/baholladay/sakai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/baholladay/sakai/issues/10/comments","statuses_url":"https://api.github.com/repos/baholladay/sakai/statuses/715295db0926b275d8ac66f0f04c84ce76a8b740","head":{"label":"AndroidDoctorr:webhooks-4","ref":"webhooks-4","sha":"715295db0926b275d8ac66f0f04c84ce76a8b740","user":{"login":"AndroidDoctorr","id":11634568,"avatar_url":"https://avatars0.githubusercontent.com/u/11634568?v=4","gravatar_id":"","url":"https://api.github.com/users/AndroidDoctorr","html_url":"https://github.com/AndroidDoctorr","followers_url":"https://api.github.com/users/AndroidDoctorr/followers","following_url":"https://api.github.com/users/AndroidDoctorr/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDoctorr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDoctorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDoctorr/subscriptions","organizations_url":"https://api.github.com/users/AndroidDoctorr/orgs","repos_url":"https://api.github.com/users/AndroidDoctorr/repos","events_url":"https://api.github.com/users/AndroidDoctorr/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDoctorr/received_events","type":"User","site_admin":false},"repo":{"id":124550605,"name":"sakai","full_name":"AndroidDoctorr/sakai","owner":{"login":"AndroidDoctorr","id":11634568,"avatar_url":"https://avatars0.githubusercontent.com/u/11634568?v=4","gravatar_id":"","url":"https://api.github.com/users/AndroidDoctorr","html_url":"https://github.com/AndroidDoctorr","followers_url":"https://api.github.com/users/AndroidDoctorr/followers","following_url":"https://api.github.com/users/AndroidDoctorr/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDoctorr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDoctorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDoctorr/subscriptions","organizations_url":"https://api.github.com/users/AndroidDoctorr/orgs","repos_url":"https://api.github.com/users/AndroidDoctorr/repos","events_url":"https://api.github.com/users/AndroidDoctorr/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDoctorr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndroidDoctorr/sakai","description":"Sakai is a freely available, feature-rich technology solution for learning, teaching, research and collaboration. Sakai is an open source software suite developed by a diverse and global adopter community.","fork":true,"url":"https://api.github.com/repos/AndroidDoctorr/sakai","forks_url":"https://api.github.com/repos/AndroidDoctorr/sakai/forks","keys_url":"https://api.github.com/repos/AndroidDoctorr/sakai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndroidDoctorr/sakai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndroidDoctorr/sakai/teams","hooks_url":"https://api.github.com/repos/AndroidDoctorr/sakai/hooks","issue_events_url":"https://api.github.com/repos/AndroidDoctorr/sakai/issues/events{/number}","events_url":"https://api.github.com/repos/AndroidDoctorr/sakai/events","assignees_url":"https://api.github.com/repos/AndroidDoctorr/sakai/assignees{/user}","branches_url":"https://api.github.com/repos/AndroidDoctorr/sakai/branches{/branch}","tags_url":"https://api.github.com/repos/AndroidDoctorr/sakai/tags","blobs_url":"https://api.github.com/repos/AndroidDoctorr/sakai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndroidDoctorr/sakai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndroidDoctorr/sakai/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndroidDoctorr/sakai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndroidDoctorr/sakai/statuses/{sha}","languages_url":"https://api.github.com/repos/AndroidDoctorr/sakai/languages","stargazers_url":"https://api.github.com/repos/AndroidDoctorr/sakai/stargazers","contributors_url":"https://api.github.com/repos/AndroidDoctorr/sakai/contributors","subscribers_url":"https://api.github.com/repos/AndroidDoctorr/sakai/subscribers","subscription_url":"https://api.github.com/repos/AndroidDoctorr/sakai/subscription","commits_url":"https://api.github.com/repos/AndroidDoctorr/sakai/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndroidDoctorr/sakai/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndroidDoctorr/sakai/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndroidDoctorr/sakai/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndroidDoctorr/sakai/contents/{+path}","compare_url":"https://api.github.com/repos/AndroidDoctorr/sakai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndroidDoctorr/sakai/merges","archive_url":"https://api.github.com/repos/AndroidDoctorr/sakai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndroidDoctorr/sakai/downloads","issues_url":"https://api.github.com/repos/AndroidDoctorr/sakai/issues{/number}","pulls_url":"https://api.github.com/repos/AndroidDoctorr/sakai/pulls{/number}","milestones_url":"https://api.github.com/repos/AndroidDoctorr/sakai/milestones{/number}","notifications_url":"https://api.github.com/repos/AndroidDoctorr/sakai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndroidDoctorr/sakai/labels{/name}","releases_url":"https://api.github.com/repos/AndroidDoctorr/sakai/releases{/id}","deployments_url":"https://api.github.com/repos/AndroidDoctorr/sakai/deployments","created_at":"2018-03-09T14:26:34Z","updated_at":"2018-03-26T15:51:51Z","pushed_at":"2018-03-28T20:09:59Z","git_url":"git://github.com/AndroidDoctorr/sakai.git","ssh_url":"git@github.com:AndroidDoctorr/sakai.git","clone_url":"https://github.com/AndroidDoctorr/sakai.git","svn_url":"https://github.com/AndroidDoctorr/sakai","homepage":"https://www.sakaiproject.org","size":347715,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"ecl-2.0","name":"Educational Community License v2.0","spdx_id":"ECL-2.0","url":"https://api.github.com/licenses/ecl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"baholladay:turnitin-oc","ref":"turnitin-oc","sha":"3ef7be22d62dc2f61955126ea29ea09e42369877","user":{"login":"baholladay","id":345790,"avatar_url":"https://avatars2.githubusercontent.com/u/345790?v=4","gravatar_id":"","url":"https://api.github.com/users/baholladay","html_url":"https://github.com/baholladay","followers_url":"https://api.github.com/users/baholladay/followers","following_url":"https://api.github.com/users/baholladay/following{/other_user}","gists_url":"https://api.github.com/users/baholladay/gists{/gist_id}","starred_url":"https://api.github.com/users/baholladay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baholladay/subscriptions","organizations_url":"https://api.github.com/users/baholladay/orgs","repos_url":"https://api.github.com/users/baholladay/repos","events_url":"https://api.github.com/users/baholladay/events{/privacy}","received_events_url":"https://api.github.com/users/baholladay/received_events","type":"User","site_admin":false},"repo":{"id":28716065,"name":"sakai","full_name":"baholladay/sakai","owner":{"login":"baholladay","id":345790,"avatar_url":"https://avatars2.githubusercontent.com/u/345790?v=4","gravatar_id":"","url":"https://api.github.com/users/baholladay","html_url":"https://github.com/baholladay","followers_url":"https://api.github.com/users/baholladay/followers","following_url":"https://api.github.com/users/baholladay/following{/other_user}","gists_url":"https://api.github.com/users/baholladay/gists{/gist_id}","starred_url":"https://api.github.com/users/baholladay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baholladay/subscriptions","organizations_url":"https://api.github.com/users/baholladay/orgs","repos_url":"https://api.github.com/users/baholladay/repos","events_url":"https://api.github.com/users/baholladay/events{/privacy}","received_events_url":"https://api.github.com/users/baholladay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baholladay/sakai","description":"Sakai is a freely available, feature-rich technology solution for learning, teaching, research and collaboration. Sakai is an open source software suite developed by a diverse and global adopter community.","fork":true,"url":"https://api.github.com/repos/baholladay/sakai","forks_url":"https://api.github.com/repos/baholladay/sakai/forks","keys_url":"https://api.github.com/repos/baholladay/sakai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baholladay/sakai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baholladay/sakai/teams","hooks_url":"https://api.github.com/repos/baholladay/sakai/hooks","issue_events_url":"https://api.github.com/repos/baholladay/sakai/issues/events{/number}","events_url":"https://api.github.com/repos/baholladay/sakai/events","assignees_url":"https://api.github.com/repos/baholladay/sakai/assignees{/user}","branches_url":"https://api.github.com/repos/baholladay/sakai/branches{/branch}","tags_url":"https://api.github.com/repos/baholladay/sakai/tags","blobs_url":"https://api.github.com/repos/baholladay/sakai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baholladay/sakai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baholladay/sakai/git/refs{/sha}","trees_url":"https://api.github.com/repos/baholladay/sakai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baholladay/sakai/statuses/{sha}","languages_url":"https://api.github.com/repos/baholladay/sakai/languages","stargazers_url":"https://api.github.com/repos/baholladay/sakai/stargazers","contributors_url":"https://api.github.com/repos/baholladay/sakai/contributors","subscribers_url":"https://api.github.com/repos/baholladay/sakai/subscribers","subscription_url":"https://api.github.com/repos/baholladay/sakai/subscription","commits_url":"https://api.github.com/repos/baholladay/sakai/commits{/sha}","git_commits_url":"https://api.github.com/repos/baholladay/sakai/git/commits{/sha}","comments_url":"https://api.github.com/repos/baholladay/sakai/comments{/number}","issue_comment_url":"https://api.github.com/repos/baholladay/sakai/issues/comments{/number}","contents_url":"https://api.github.com/repos/baholladay/sakai/contents/{+path}","compare_url":"https://api.github.com/repos/baholladay/sakai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baholladay/sakai/merges","archive_url":"https://api.github.com/repos/baholladay/sakai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baholladay/sakai/downloads","issues_url":"https://api.github.com/repos/baholladay/sakai/issues{/number}","pulls_url":"https://api.github.com/repos/baholladay/sakai/pulls{/number}","milestones_url":"https://api.github.com/repos/baholladay/sakai/milestones{/number}","notifications_url":"https://api.github.com/repos/baholladay/sakai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baholladay/sakai/labels{/name}","releases_url":"https://api.github.com/repos/baholladay/sakai/releases{/id}","deployments_url":"https://api.github.com/repos/baholladay/sakai/deployments","created_at":"2015-01-02T14:50:06Z","updated_at":"2016-01-12T13:08:09Z","pushed_at":"2018-03-28T20:10:00Z","git_url":"git://github.com/baholladay/sakai.git","ssh_url":"git@github.com:baholladay/sakai.git","clone_url":"https://github.com/baholladay/sakai.git","svn_url":"https://github.com/baholladay/sakai","homepage":"https://www.sakaiproject.org","size":349394,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"ecl-2.0","name":"Educational Community License v2.0","spdx_id":"ECL-2.0","url":"https://api.github.com/licenses/ecl-2.0"},"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/baholladay/sakai/pulls/10"},"html":{"href":"https://github.com/baholladay/sakai/pull/10"},"issue":{"href":"https://api.github.com/repos/baholladay/sakai/issues/10"},"comments":{"href":"https://api.github.com/repos/baholladay/sakai/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/baholladay/sakai/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/baholladay/sakai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/baholladay/sakai/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/baholladay/sakai/statuses/715295db0926b275d8ac66f0f04c84ce76a8b740"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"baholladay"}}