{"action":"created","comment":{"url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/comments/165869656","pull_request_review_id":93870241,"id":165869656,"diff_hunk":"@@ -1,21 +1,43 @@\n class EndpointController < ApplicationController\n   skip_before_action :verify_authenticity_token\n-\n   def slack\n     notifier = Slack::Notifier.new(\n       Rails.application.secrets.slack[:incoming_webhook_url],\n       channel: params[:channel], # Require specify channel via url\n       username: Rails.application.secrets.slack[:username],\n       icon_emoji: \":#{Rails.application.secrets.slack[:icon_emoji]}:\"\n     )\n-\n+    \n+    # FIXME: This is dummy, please delete\n+    puts \"サンプルログ\"\n+    unused_value = nil\n+    longlong_value = \"longlonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolong\"\n+  \n     account_id, project_id = params[:recording][:parent][:app_url].split(\"/\").values_at(3,5)\n     result = notifier.post text: generate_text(params, account_id, project_id),\n                     attachments: generate_attachments(params, account_id, project_id)\n-\n     render plain: result\n   end\n-\n+    def slack2\n+    notifier = Slack::Notifier.new(\n+      Rails.application.secrets.slack[:incoming_webhook_url],\n+      channel: params[:channel], # Require specify channel via url\n+      username: Rails.application.secrets.slack[:username],\n+      icon_emoji: \":#{Rails.application.secrets.slack[:icon_emoji]}:\"\n+    )\n+    \n+    # FIXME: This is dummy, please delete\n+    puts \"サンプルログ\"\n+    unused_value = nil\n+    longlong_value = \"longlonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolonglonglonglonglonglongolong\"\n+  ","path":"app/controllers/endpoint_controller.rb","position":17,"original_position":37,"commit_id":"cc88ab16bdba2de03ff1df80ac261e39d9cf72fc","original_commit_id":"cc88ab16bdba2de03ff1df80ac261e39d9cf72fc","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Trailing whitespace detected.","created_at":"2018-02-05T02:09:44Z","updated_at":"2018-02-05T02:09:44Z","html_url":"https://github.com/emimaeda/basecamp3_slack_notify/pull/1#discussion_r165869656","pull_request_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/comments/165869656"},"html":{"href":"https://github.com/emimaeda/basecamp3_slack_notify/pull/1#discussion_r165869656"},"pull_request":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1","id":167043716,"html_url":"https://github.com/emimaeda/basecamp3_slack_notify/pull/1","diff_url":"https://github.com/emimaeda/basecamp3_slack_notify/pull/1.diff","patch_url":"https://github.com/emimaeda/basecamp3_slack_notify/pull/1.patch","issue_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/1","number":1,"state":"open","locked":false,"title":"Add dirty code","user":{"login":"emimaeda","id":35319264,"avatar_url":"https://avatars1.githubusercontent.com/u/35319264?v=4","gravatar_id":"","url":"https://api.github.com/users/emimaeda","html_url":"https://github.com/emimaeda","followers_url":"https://api.github.com/users/emimaeda/followers","following_url":"https://api.github.com/users/emimaeda/following{/other_user}","gists_url":"https://api.github.com/users/emimaeda/gists{/gist_id}","starred_url":"https://api.github.com/users/emimaeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emimaeda/subscriptions","organizations_url":"https://api.github.com/users/emimaeda/orgs","repos_url":"https://api.github.com/users/emimaeda/repos","events_url":"https://api.github.com/users/emimaeda/events{/privacy}","received_events_url":"https://api.github.com/users/emimaeda/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-05T01:59:30Z","updated_at":"2018-02-05T02:09:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a45f7f56358c80e2fcc4a7e02d14e9e5a562b057","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1/commits","review_comments_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1/comments","review_comment_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/1/comments","statuses_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/statuses/cc88ab16bdba2de03ff1df80ac261e39d9cf72fc","head":{"label":"emimaeda:dummy-0205","ref":"dummy-0205","sha":"cc88ab16bdba2de03ff1df80ac261e39d9cf72fc","user":{"login":"emimaeda","id":35319264,"avatar_url":"https://avatars1.githubusercontent.com/u/35319264?v=4","gravatar_id":"","url":"https://api.github.com/users/emimaeda","html_url":"https://github.com/emimaeda","followers_url":"https://api.github.com/users/emimaeda/followers","following_url":"https://api.github.com/users/emimaeda/following{/other_user}","gists_url":"https://api.github.com/users/emimaeda/gists{/gist_id}","starred_url":"https://api.github.com/users/emimaeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emimaeda/subscriptions","organizations_url":"https://api.github.com/users/emimaeda/orgs","repos_url":"https://api.github.com/users/emimaeda/repos","events_url":"https://api.github.com/users/emimaeda/events{/privacy}","received_events_url":"https://api.github.com/users/emimaeda/received_events","type":"User","site_admin":false},"repo":{"id":120241199,"name":"basecamp3_slack_notify","full_name":"emimaeda/basecamp3_slack_notify","owner":{"login":"emimaeda","id":35319264,"avatar_url":"https://avatars1.githubusercontent.com/u/35319264?v=4","gravatar_id":"","url":"https://api.github.com/users/emimaeda","html_url":"https://github.com/emimaeda","followers_url":"https://api.github.com/users/emimaeda/followers","following_url":"https://api.github.com/users/emimaeda/following{/other_user}","gists_url":"https://api.github.com/users/emimaeda/gists{/gist_id}","starred_url":"https://api.github.com/users/emimaeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emimaeda/subscriptions","organizations_url":"https://api.github.com/users/emimaeda/orgs","repos_url":"https://api.github.com/users/emimaeda/repos","events_url":"https://api.github.com/users/emimaeda/events{/privacy}","received_events_url":"https://api.github.com/users/emimaeda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emimaeda/basecamp3_slack_notify","description":"Very simple Basecamp3 to Slack notify app","fork":true,"url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify","forks_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/forks","keys_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/teams","hooks_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/hooks","issue_events_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/events{/number}","events_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/events","assignees_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/assignees{/user}","branches_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/branches{/branch}","tags_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/tags","blobs_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/refs{/sha}","trees_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/statuses/{sha}","languages_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/languages","stargazers_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/stargazers","contributors_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/contributors","subscribers_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/subscribers","subscription_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/subscription","commits_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/commits{/sha}","git_commits_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/commits{/sha}","comments_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/comments{/number}","issue_comment_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/comments{/number}","contents_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/contents/{+path}","compare_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/merges","archive_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/downloads","issues_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues{/number}","pulls_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls{/number}","milestones_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/milestones{/number}","notifications_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/labels{/name}","releases_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/releases{/id}","deployments_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/deployments","created_at":"2018-02-05T01:44:05Z","updated_at":"2018-02-05T01:44:07Z","pushed_at":"2018-02-05T02:09:39Z","git_url":"git://github.com/emimaeda/basecamp3_slack_notify.git","ssh_url":"git@github.com:emimaeda/basecamp3_slack_notify.git","clone_url":"https://github.com/emimaeda/basecamp3_slack_notify.git","svn_url":"https://github.com/emimaeda/basecamp3_slack_notify","homepage":"","size":75,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"emimaeda:master","ref":"master","sha":"4e91f1fcffc7b37dca070d9d4255c5778f3db8d3","user":{"login":"emimaeda","id":35319264,"avatar_url":"https://avatars1.githubusercontent.com/u/35319264?v=4","gravatar_id":"","url":"https://api.github.com/users/emimaeda","html_url":"https://github.com/emimaeda","followers_url":"https://api.github.com/users/emimaeda/followers","following_url":"https://api.github.com/users/emimaeda/following{/other_user}","gists_url":"https://api.github.com/users/emimaeda/gists{/gist_id}","starred_url":"https://api.github.com/users/emimaeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emimaeda/subscriptions","organizations_url":"https://api.github.com/users/emimaeda/orgs","repos_url":"https://api.github.com/users/emimaeda/repos","events_url":"https://api.github.com/users/emimaeda/events{/privacy}","received_events_url":"https://api.github.com/users/emimaeda/received_events","type":"User","site_admin":false},"repo":{"id":120241199,"name":"basecamp3_slack_notify","full_name":"emimaeda/basecamp3_slack_notify","owner":{"login":"emimaeda","id":35319264,"avatar_url":"https://avatars1.githubusercontent.com/u/35319264?v=4","gravatar_id":"","url":"https://api.github.com/users/emimaeda","html_url":"https://github.com/emimaeda","followers_url":"https://api.github.com/users/emimaeda/followers","following_url":"https://api.github.com/users/emimaeda/following{/other_user}","gists_url":"https://api.github.com/users/emimaeda/gists{/gist_id}","starred_url":"https://api.github.com/users/emimaeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emimaeda/subscriptions","organizations_url":"https://api.github.com/users/emimaeda/orgs","repos_url":"https://api.github.com/users/emimaeda/repos","events_url":"https://api.github.com/users/emimaeda/events{/privacy}","received_events_url":"https://api.github.com/users/emimaeda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emimaeda/basecamp3_slack_notify","description":"Very simple Basecamp3 to Slack notify app","fork":true,"url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify","forks_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/forks","keys_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/teams","hooks_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/hooks","issue_events_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/events{/number}","events_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/events","assignees_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/assignees{/user}","branches_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/branches{/branch}","tags_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/tags","blobs_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/refs{/sha}","trees_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/statuses/{sha}","languages_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/languages","stargazers_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/stargazers","contributors_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/contributors","subscribers_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/subscribers","subscription_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/subscription","commits_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/commits{/sha}","git_commits_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/git/commits{/sha}","comments_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/comments{/number}","issue_comment_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/comments{/number}","contents_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/contents/{+path}","compare_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/merges","archive_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/downloads","issues_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues{/number}","pulls_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls{/number}","milestones_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/milestones{/number}","notifications_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/labels{/name}","releases_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/releases{/id}","deployments_url":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/deployments","created_at":"2018-02-05T01:44:05Z","updated_at":"2018-02-05T01:44:07Z","pushed_at":"2018-02-05T02:09:39Z","git_url":"git://github.com/emimaeda/basecamp3_slack_notify.git","ssh_url":"git@github.com:emimaeda/basecamp3_slack_notify.git","clone_url":"https://github.com/emimaeda/basecamp3_slack_notify.git","svn_url":"https://github.com/emimaeda/basecamp3_slack_notify","homepage":"","size":75,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1"},"html":{"href":"https://github.com/emimaeda/basecamp3_slack_notify/pull/1"},"issue":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/1"},"comments":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/emimaeda/basecamp3_slack_notify/statuses/cc88ab16bdba2de03ff1df80ac261e39d9cf72fc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}