{"action":"created","comment":{"url":"https://api.github.com/repos/support-project/knowledge/pulls/comments/47639326","id":47639326,"diff_hunk":"@@ -59,7 +59,7 @@ public String makeURL(Long knowledgeId) {\n \t\tif (!config.getConfigValue().endsWith(\"/\")) {\n \t\t\tbuilder.append(\"/\");\n \t\t}\n-\t\tbuilder.append(\"protect.knowledge/view/\");\n+\t\tbuilder.append(\"open.knowledge/view/\");","path":"src/main/java/org/support/project/knowledge/logic/NotifyLogic.java","position":5,"original_position":5,"commit_id":"a281e025db6a005b581a854927388f5eb7a9d1cd","original_commit_id":"a281e025db6a005b581a854927388f5eb7a9d1cd","user":{"login":"koda-masaru","id":10343517,"avatar_url":"https://avatars.githubusercontent.com/u/10343517?v=3","gravatar_id":"","url":"https://api.github.com/users/koda-masaru","html_url":"https://github.com/koda-masaru","followers_url":"https://api.github.com/users/koda-masaru/followers","following_url":"https://api.github.com/users/koda-masaru/following{/other_user}","gists_url":"https://api.github.com/users/koda-masaru/gists{/gist_id}","starred_url":"https://api.github.com/users/koda-masaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koda-masaru/subscriptions","organizations_url":"https://api.github.com/users/koda-masaru/orgs","repos_url":"https://api.github.com/users/koda-masaru/repos","events_url":"https://api.github.com/users/koda-masaru/events{/privacy}","received_events_url":"https://api.github.com/users/koda-masaru/received_events","type":"User","site_admin":false},"body":"#190 にissueを登録しました","created_at":"2015-12-15T14:08:20Z","updated_at":"2015-12-15T14:08:20Z","html_url":"https://github.com/support-project/knowledge/pull/189#discussion_r47639326","pull_request_url":"https://api.github.com/repos/support-project/knowledge/pulls/189","_links":{"self":{"href":"https://api.github.com/repos/support-project/knowledge/pulls/comments/47639326"},"html":{"href":"https://github.com/support-project/knowledge/pull/189#discussion_r47639326"},"pull_request":{"href":"https://api.github.com/repos/support-project/knowledge/pulls/189"}}},"pull_request":{"url":"https://api.github.com/repos/support-project/knowledge/pulls/189","id":53505644,"html_url":"https://github.com/support-project/knowledge/pull/189","diff_url":"https://github.com/support-project/knowledge/pull/189.diff","patch_url":"https://github.com/support-project/knowledge/pull/189.patch","issue_url":"https://api.github.com/repos/support-project/knowledge/issues/189","number":189,"state":"open","locked":false,"title":"記事の投稿、更新やコメント投稿時にWebhookで通知を送るように","user":{"login":"nagodon","id":604596,"avatar_url":"https://avatars.githubusercontent.com/u/604596?v=3","gravatar_id":"","url":"https://api.github.com/users/nagodon","html_url":"https://github.com/nagodon","followers_url":"https://api.github.com/users/nagodon/followers","following_url":"https://api.github.com/users/nagodon/following{/other_user}","gists_url":"https://api.github.com/users/nagodon/gists{/gist_id}","starred_url":"https://api.github.com/users/nagodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagodon/subscriptions","organizations_url":"https://api.github.com/users/nagodon/orgs","repos_url":"https://api.github.com/users/nagodon/repos","events_url":"https://api.github.com/users/nagodon/events{/privacy}","received_events_url":"https://api.github.com/users/nagodon/received_events","type":"User","site_admin":false},"body":"遅くなってしまいましたが、WebhookのPRになります。\r\n\r\n* 実装項目\r\n  * 通知用バッチからWebhookの予約を行う\r\n  * Webhookバッチを新規で作成し予約があればWebhookに設定されてるURLに通知を行う\r\n\r\n* 備考\r\n  * バッチの実行感覚はNotifyMailBatと同じ時間にしてあります","created_at":"2015-12-13T18:14:26Z","updated_at":"2015-12-15T14:08:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c765d5a93b02ed40549cf528776e1c2a29f39a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/support-project/knowledge/pulls/189/commits","review_comments_url":"https://api.github.com/repos/support-project/knowledge/pulls/189/comments","review_comment_url":"https://api.github.com/repos/support-project/knowledge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/support-project/knowledge/issues/189/comments","statuses_url":"https://api.github.com/repos/support-project/knowledge/statuses/a281e025db6a005b581a854927388f5eb7a9d1cd","head":{"label":"support-project:feature/issue69-webhook","ref":"feature/issue69-webhook","sha":"a281e025db6a005b581a854927388f5eb7a9d1cd","user":{"login":"support-project","id":10343544,"avatar_url":"https://avatars.githubusercontent.com/u/10343544?v=3","gravatar_id":"","url":"https://api.github.com/users/support-project","html_url":"https://github.com/support-project","followers_url":"https://api.github.com/users/support-project/followers","following_url":"https://api.github.com/users/support-project/following{/other_user}","gists_url":"https://api.github.com/users/support-project/gists{/gist_id}","starred_url":"https://api.github.com/users/support-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/support-project/subscriptions","organizations_url":"https://api.github.com/users/support-project/orgs","repos_url":"https://api.github.com/users/support-project/repos","events_url":"https://api.github.com/users/support-project/events{/privacy}","received_events_url":"https://api.github.com/users/support-project/received_events","type":"Organization","site_admin":false},"repo":{"id":28609126,"name":"knowledge","full_name":"support-project/knowledge","owner":{"login":"support-project","id":10343544,"avatar_url":"https://avatars.githubusercontent.com/u/10343544?v=3","gravatar_id":"","url":"https://api.github.com/users/support-project","html_url":"https://github.com/support-project","followers_url":"https://api.github.com/users/support-project/followers","following_url":"https://api.github.com/users/support-project/following{/other_user}","gists_url":"https://api.github.com/users/support-project/gists{/gist_id}","starred_url":"https://api.github.com/users/support-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/support-project/subscriptions","organizations_url":"https://api.github.com/users/support-project/orgs","repos_url":"https://api.github.com/users/support-project/repos","events_url":"https://api.github.com/users/support-project/events{/privacy}","received_events_url":"https://api.github.com/users/support-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/support-project/knowledge","description":"Free Knowledge Management System","fork":false,"url":"https://api.github.com/repos/support-project/knowledge","forks_url":"https://api.github.com/repos/support-project/knowledge/forks","keys_url":"https://api.github.com/repos/support-project/knowledge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/support-project/knowledge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/support-project/knowledge/teams","hooks_url":"https://api.github.com/repos/support-project/knowledge/hooks","issue_events_url":"https://api.github.com/repos/support-project/knowledge/issues/events{/number}","events_url":"https://api.github.com/repos/support-project/knowledge/events","assignees_url":"https://api.github.com/repos/support-project/knowledge/assignees{/user}","branches_url":"https://api.github.com/repos/support-project/knowledge/branches{/branch}","tags_url":"https://api.github.com/repos/support-project/knowledge/tags","blobs_url":"https://api.github.com/repos/support-project/knowledge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/support-project/knowledge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/support-project/knowledge/git/refs{/sha}","trees_url":"https://api.github.com/repos/support-project/knowledge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/support-project/knowledge/statuses/{sha}","languages_url":"https://api.github.com/repos/support-project/knowledge/languages","stargazers_url":"https://api.github.com/repos/support-project/knowledge/stargazers","contributors_url":"https://api.github.com/repos/support-project/knowledge/contributors","subscribers_url":"https://api.github.com/repos/support-project/knowledge/subscribers","subscription_url":"https://api.github.com/repos/support-project/knowledge/subscription","commits_url":"https://api.github.com/repos/support-project/knowledge/commits{/sha}","git_commits_url":"https://api.github.com/repos/support-project/knowledge/git/commits{/sha}","comments_url":"https://api.github.com/repos/support-project/knowledge/comments{/number}","issue_comment_url":"https://api.github.com/repos/support-project/knowledge/issues/comments{/number}","contents_url":"https://api.github.com/repos/support-project/knowledge/contents/{+path}","compare_url":"https://api.github.com/repos/support-project/knowledge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/support-project/knowledge/merges","archive_url":"https://api.github.com/repos/support-project/knowledge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/support-project/knowledge/downloads","issues_url":"https://api.github.com/repos/support-project/knowledge/issues{/number}","pulls_url":"https://api.github.com/repos/support-project/knowledge/pulls{/number}","milestones_url":"https://api.github.com/repos/support-project/knowledge/milestones{/number}","notifications_url":"https://api.github.com/repos/support-project/knowledge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/support-project/knowledge/labels{/name}","releases_url":"https://api.github.com/repos/support-project/knowledge/releases{/id}","created_at":"2014-12-29T22:44:55Z","updated_at":"2015-12-15T09:05:56Z","pushed_at":"2015-12-13T18:14:26Z","git_url":"git://github.com/support-project/knowledge.git","ssh_url":"git@github.com:support-project/knowledge.git","clone_url":"https://github.com/support-project/knowledge.git","svn_url":"https://github.com/support-project/knowledge","homepage":null,"size":2155,"stargazers_count":54,"watchers_count":54,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":51,"forks":19,"open_issues":51,"watchers":54,"default_branch":"master"}},"base":{"label":"support-project:develop","ref":"develop","sha":"96875da1a9645518bf0ea60db9668f9c87a89eec","user":{"login":"support-project","id":10343544,"avatar_url":"https://avatars.githubusercontent.com/u/10343544?v=3","gravatar_id":"","url":"https://api.github.com/users/support-project","html_url":"https://github.com/support-project","followers_url":"https://api.github.com/users/support-project/followers","following_url":"https://api.github.com/users/support-project/following{/other_user}","gists_url":"https://api.github.com/users/support-project/gists{/gist_id}","starred_url":"https://api.github.com/users/support-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/support-project/subscriptions","organizations_url":"https://api.github.com/users/support-project/orgs","repos_url":"https://api.github.com/users/support-project/repos","events_url":"https://api.github.com/users/support-project/events{/privacy}","received_events_url":"https://api.github.com/users/support-project/received_events","type":"Organization","site_admin":false},"repo":{"id":28609126,"name":"knowledge","full_name":"support-project/knowledge","owner":{"login":"support-project","id":10343544,"avatar_url":"https://avatars.githubusercontent.com/u/10343544?v=3","gravatar_id":"","url":"https://api.github.com/users/support-project","html_url":"https://github.com/support-project","followers_url":"https://api.github.com/users/support-project/followers","following_url":"https://api.github.com/users/support-project/following{/other_user}","gists_url":"https://api.github.com/users/support-project/gists{/gist_id}","starred_url":"https://api.github.com/users/support-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/support-project/subscriptions","organizations_url":"https://api.github.com/users/support-project/orgs","repos_url":"https://api.github.com/users/support-project/repos","events_url":"https://api.github.com/users/support-project/events{/privacy}","received_events_url":"https://api.github.com/users/support-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/support-project/knowledge","description":"Free Knowledge Management System","fork":false,"url":"https://api.github.com/repos/support-project/knowledge","forks_url":"https://api.github.com/repos/support-project/knowledge/forks","keys_url":"https://api.github.com/repos/support-project/knowledge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/support-project/knowledge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/support-project/knowledge/teams","hooks_url":"https://api.github.com/repos/support-project/knowledge/hooks","issue_events_url":"https://api.github.com/repos/support-project/knowledge/issues/events{/number}","events_url":"https://api.github.com/repos/support-project/knowledge/events","assignees_url":"https://api.github.com/repos/support-project/knowledge/assignees{/user}","branches_url":"https://api.github.com/repos/support-project/knowledge/branches{/branch}","tags_url":"https://api.github.com/repos/support-project/knowledge/tags","blobs_url":"https://api.github.com/repos/support-project/knowledge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/support-project/knowledge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/support-project/knowledge/git/refs{/sha}","trees_url":"https://api.github.com/repos/support-project/knowledge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/support-project/knowledge/statuses/{sha}","languages_url":"https://api.github.com/repos/support-project/knowledge/languages","stargazers_url":"https://api.github.com/repos/support-project/knowledge/stargazers","contributors_url":"https://api.github.com/repos/support-project/knowledge/contributors","subscribers_url":"https://api.github.com/repos/support-project/knowledge/subscribers","subscription_url":"https://api.github.com/repos/support-project/knowledge/subscription","commits_url":"https://api.github.com/repos/support-project/knowledge/commits{/sha}","git_commits_url":"https://api.github.com/repos/support-project/knowledge/git/commits{/sha}","comments_url":"https://api.github.com/repos/support-project/knowledge/comments{/number}","issue_comment_url":"https://api.github.com/repos/support-project/knowledge/issues/comments{/number}","contents_url":"https://api.github.com/repos/support-project/knowledge/contents/{+path}","compare_url":"https://api.github.com/repos/support-project/knowledge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/support-project/knowledge/merges","archive_url":"https://api.github.com/repos/support-project/knowledge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/support-project/knowledge/downloads","issues_url":"https://api.github.com/repos/support-project/knowledge/issues{/number}","pulls_url":"https://api.github.com/repos/support-project/knowledge/pulls{/number}","milestones_url":"https://api.github.com/repos/support-project/knowledge/milestones{/number}","notifications_url":"https://api.github.com/repos/support-project/knowledge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/support-project/knowledge/labels{/name}","releases_url":"https://api.github.com/repos/support-project/knowledge/releases{/id}","created_at":"2014-12-29T22:44:55Z","updated_at":"2015-12-15T09:05:56Z","pushed_at":"2015-12-13T18:14:26Z","git_url":"git://github.com/support-project/knowledge.git","ssh_url":"git@github.com:support-project/knowledge.git","clone_url":"https://github.com/support-project/knowledge.git","svn_url":"https://github.com/support-project/knowledge","homepage":null,"size":2155,"stargazers_count":54,"watchers_count":54,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":51,"forks":19,"open_issues":51,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/support-project/knowledge/pulls/189"},"html":{"href":"https://github.com/support-project/knowledge/pull/189"},"issue":{"href":"https://api.github.com/repos/support-project/knowledge/issues/189"},"comments":{"href":"https://api.github.com/repos/support-project/knowledge/issues/189/comments"},"review_comments":{"href":"https://api.github.com/repos/support-project/knowledge/pulls/189/comments"},"review_comment":{"href":"https://api.github.com/repos/support-project/knowledge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/support-project/knowledge/pulls/189/commits"},"statuses":{"href":"https://api.github.com/repos/support-project/knowledge/statuses/a281e025db6a005b581a854927388f5eb7a9d1cd"}}}}