{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/rorybot/pulls/comments/63723636","id":63723636,"diff_hunk":"@@ -0,0 +1,29 @@\n+require 'FileUtils'\n+\n+puts \"Enter the filetype you want to search (rb, erb, md, or html)\"\n+filetype = gets.chomp.to_s","path":"analytics-test.rb","position":null,"original_position":4,"commit_id":"7b475b98d34a8d1be16a0935da305693b15e0789","original_commit_id":"163d013a2be233d24efad28f608f0af6a737cf7f","user":{"login":"jules2689","id":3074765,"avatar_url":"https://avatars.githubusercontent.com/u/3074765?v=3","gravatar_id":"","url":"https://api.github.com/users/jules2689","html_url":"https://github.com/jules2689","followers_url":"https://api.github.com/users/jules2689/followers","following_url":"https://api.github.com/users/jules2689/following{/other_user}","gists_url":"https://api.github.com/users/jules2689/gists{/gist_id}","starred_url":"https://api.github.com/users/jules2689/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jules2689/subscriptions","organizations_url":"https://api.github.com/users/jules2689/orgs","repos_url":"https://api.github.com/users/jules2689/repos","events_url":"https://api.github.com/users/jules2689/events{/privacy}","received_events_url":"https://api.github.com/users/jules2689/received_events","type":"User","site_admin":false},"body":"```\r\nfile_type = nil\r\nwhile !%w( rd erb md html ).include?(file_type)\r\n  puts \"Enter the filetype you want to search (rb, erb, md, or html)\"\r\n  file_type = gets.chomp.to_s\r\nend\r\n```\r\n\r\nwill keep looping until you get an actual proper value. Also, use `file_type` instead of `filetype` - standard ruby style","created_at":"2016-05-18T15:18:34Z","updated_at":"2016-05-18T15:18:34Z","html_url":"https://github.com/Shopify/rorybot/pull/17#discussion_r63723636","pull_request_url":"https://api.github.com/repos/Shopify/rorybot/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/Shopify/rorybot/pulls/comments/63723636"},"html":{"href":"https://github.com/Shopify/rorybot/pull/17#discussion_r63723636"},"pull_request":{"href":"https://api.github.com/repos/Shopify/rorybot/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/rorybot/pulls/17","id":70459753,"html_url":"https://github.com/Shopify/rorybot/pull/17","diff_url":"https://github.com/Shopify/rorybot/pull/17.diff","patch_url":"https://github.com/Shopify/rorybot/pull/17.patch","issue_url":"https://api.github.com/repos/Shopify/rorybot/issues/17","number":17,"state":"open","locked":false,"title":"rorybot warning analytics test script [WIP]","user":{"login":"jeremyhansonfinger","id":16706135,"avatar_url":"https://avatars.githubusercontent.com/u/16706135?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyhansonfinger","html_url":"https://github.com/jeremyhansonfinger","followers_url":"https://api.github.com/users/jeremyhansonfinger/followers","following_url":"https://api.github.com/users/jeremyhansonfinger/following{/other_user}","gists_url":"https://api.github.com/users/jeremyhansonfinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyhansonfinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyhansonfinger/subscriptions","organizations_url":"https://api.github.com/users/jeremyhansonfinger/orgs","repos_url":"https://api.github.com/users/jeremyhansonfinger/repos","events_url":"https://api.github.com/users/jeremyhansonfinger/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyhansonfinger/received_events","type":"User","site_admin":false},"body":"At the moment this script asks you what file type you want to analyze, recursively runs Rorybot on every file of that type in your current directory, and outputs the frequency of each warning to a CSV file that you can manipulate further with Google Sheets.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/16706135/15345711/77efba14-1c7f-11e6-99ec-edd83c266c2d.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/16706135/15345475/5cfcf5de-1c7d-11e6-9ccf-68e039c5bb6a.png)\r\n","created_at":"2016-05-18T02:17:16Z","updated_at":"2016-05-18T15:18:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc522044bd3fa62e395d764086b06499437a16af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/rorybot/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Shopify/rorybot/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Shopify/rorybot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/rorybot/issues/17/comments","statuses_url":"https://api.github.com/repos/Shopify/rorybot/statuses/7b475b98d34a8d1be16a0935da305693b15e0789","head":{"label":"Shopify:analytics-test","ref":"analytics-test","sha":"7b475b98d34a8d1be16a0935da305693b15e0789","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":53090316,"name":"rorybot","full_name":"Shopify/rorybot","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/rorybot","description":"Catch writing that doesn't follow style guide rules.","fork":false,"url":"https://api.github.com/repos/Shopify/rorybot","forks_url":"https://api.github.com/repos/Shopify/rorybot/forks","keys_url":"https://api.github.com/repos/Shopify/rorybot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/rorybot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/rorybot/teams","hooks_url":"https://api.github.com/repos/Shopify/rorybot/hooks","issue_events_url":"https://api.github.com/repos/Shopify/rorybot/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/rorybot/events","assignees_url":"https://api.github.com/repos/Shopify/rorybot/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/rorybot/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/rorybot/tags","blobs_url":"https://api.github.com/repos/Shopify/rorybot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/rorybot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/rorybot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/rorybot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/rorybot/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/rorybot/languages","stargazers_url":"https://api.github.com/repos/Shopify/rorybot/stargazers","contributors_url":"https://api.github.com/repos/Shopify/rorybot/contributors","subscribers_url":"https://api.github.com/repos/Shopify/rorybot/subscribers","subscription_url":"https://api.github.com/repos/Shopify/rorybot/subscription","commits_url":"https://api.github.com/repos/Shopify/rorybot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/rorybot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/rorybot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/rorybot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/rorybot/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/rorybot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/rorybot/merges","archive_url":"https://api.github.com/repos/Shopify/rorybot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/rorybot/downloads","issues_url":"https://api.github.com/repos/Shopify/rorybot/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/rorybot/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/rorybot/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/rorybot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/rorybot/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/rorybot/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/rorybot/deployments","created_at":"2016-03-03T22:55:21Z","updated_at":"2016-05-18T10:44:55Z","pushed_at":"2016-05-18T14:56:09Z","git_url":"git://github.com/Shopify/rorybot.git","ssh_url":"git@github.com:Shopify/rorybot.git","clone_url":"https://github.com/Shopify/rorybot.git","svn_url":"https://github.com/Shopify/rorybot","homepage":null,"size":1419,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":4,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"e7a353b263ad2e7964e437ae0dbab934c71aa0bc","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":53090316,"name":"rorybot","full_name":"Shopify/rorybot","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/rorybot","description":"Catch writing that doesn't follow style guide rules.","fork":false,"url":"https://api.github.com/repos/Shopify/rorybot","forks_url":"https://api.github.com/repos/Shopify/rorybot/forks","keys_url":"https://api.github.com/repos/Shopify/rorybot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/rorybot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/rorybot/teams","hooks_url":"https://api.github.com/repos/Shopify/rorybot/hooks","issue_events_url":"https://api.github.com/repos/Shopify/rorybot/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/rorybot/events","assignees_url":"https://api.github.com/repos/Shopify/rorybot/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/rorybot/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/rorybot/tags","blobs_url":"https://api.github.com/repos/Shopify/rorybot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/rorybot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/rorybot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/rorybot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/rorybot/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/rorybot/languages","stargazers_url":"https://api.github.com/repos/Shopify/rorybot/stargazers","contributors_url":"https://api.github.com/repos/Shopify/rorybot/contributors","subscribers_url":"https://api.github.com/repos/Shopify/rorybot/subscribers","subscription_url":"https://api.github.com/repos/Shopify/rorybot/subscription","commits_url":"https://api.github.com/repos/Shopify/rorybot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/rorybot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/rorybot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/rorybot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/rorybot/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/rorybot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/rorybot/merges","archive_url":"https://api.github.com/repos/Shopify/rorybot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/rorybot/downloads","issues_url":"https://api.github.com/repos/Shopify/rorybot/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/rorybot/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/rorybot/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/rorybot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/rorybot/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/rorybot/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/rorybot/deployments","created_at":"2016-03-03T22:55:21Z","updated_at":"2016-05-18T10:44:55Z","pushed_at":"2016-05-18T14:56:09Z","git_url":"git://github.com/Shopify/rorybot.git","ssh_url":"git@github.com:Shopify/rorybot.git","clone_url":"https://github.com/Shopify/rorybot.git","svn_url":"https://github.com/Shopify/rorybot","homepage":null,"size":1419,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/rorybot/pulls/17"},"html":{"href":"https://github.com/Shopify/rorybot/pull/17"},"issue":{"href":"https://api.github.com/repos/Shopify/rorybot/issues/17"},"comments":{"href":"https://api.github.com/repos/Shopify/rorybot/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/rorybot/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/rorybot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/rorybot/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/rorybot/statuses/7b475b98d34a8d1be16a0935da305693b15e0789"}}}}