{"action":"created","comment":{"url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/comments/232869549","pull_request_review_id":174162567,"id":232869549,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjg2OTU0OQ==","diff_hunk":"@@ -1,10 +1,16 @@\n+require 'pry'\n class HomeController < ApplicationController\n   skip_before_filter :auth_check\n \n   def index\n     @teams = []\n+    @repos = []\n     if session[:token].present?\n       @teams = github_api.orgs.teams.list.sort_by { |team| team.name.downcase }\n+      @repos = github_api.repos.list.select do |repo|\n+        repo['owner']['type'] == 'User' ||\n+            !@teams.collect { |t| t['organization']['login'] }.include?(repo['owner']['login'])","path":"app/controllers/home_controller.rb","position":12,"original_position":12,"commit_id":"4b0bb84ac6b2803f4342ac0d9780207a115fd4d8","original_commit_id":"4b0bb84ac6b2803f4342ac0d9780207a115fd4d8","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"Layout/MultilineOperationIndentation: Use 2 (not 4) spaces for indenting an expression spanning multiple lines.<br>Style/CollectionMethods: Prefer map over collect.<br>Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.<br>Metrics/LineLength: Line is too long. [95/80]","created_at":"2018-11-13T01:36:47Z","updated_at":"2018-11-13T01:36:48Z","html_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard/pull/42#discussion_r232869549","pull_request_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/comments/232869549"},"html":{"href":"https://github.com/usbsnowcrash/ruby-deployments-dashboard/pull/42#discussion_r232869549"},"pull_request":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42","id":230320818,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMzIwODE4","html_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard/pull/42","diff_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard/pull/42.diff","patch_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard/pull/42.patch","issue_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/42","number":42,"state":"open","locked":false,"title":"remove dead features, fix repo display, handle non prod branch case","user":{"login":"usbsnowcrash","id":882850,"node_id":"MDQ6VXNlcjg4Mjg1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/882850?v=4","gravatar_id":"","url":"https://api.github.com/users/usbsnowcrash","html_url":"https://github.com/usbsnowcrash","followers_url":"https://api.github.com/users/usbsnowcrash/followers","following_url":"https://api.github.com/users/usbsnowcrash/following{/other_user}","gists_url":"https://api.github.com/users/usbsnowcrash/gists{/gist_id}","starred_url":"https://api.github.com/users/usbsnowcrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usbsnowcrash/subscriptions","organizations_url":"https://api.github.com/users/usbsnowcrash/orgs","repos_url":"https://api.github.com/users/usbsnowcrash/repos","events_url":"https://api.github.com/users/usbsnowcrash/events{/privacy}","received_events_url":"https://api.github.com/users/usbsnowcrash/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-13T01:36:27Z","updated_at":"2018-11-13T01:36:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf4d30b0e3ef162277b01a36cc1c311bcc74c3e0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42/commits","review_comments_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42/comments","review_comment_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/42/comments","statuses_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/statuses/4b0bb84ac6b2803f4342ac0d9780207a115fd4d8","head":{"label":"usbsnowcrash:fixes","ref":"fixes","sha":"4b0bb84ac6b2803f4342ac0d9780207a115fd4d8","user":{"login":"usbsnowcrash","id":882850,"node_id":"MDQ6VXNlcjg4Mjg1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/882850?v=4","gravatar_id":"","url":"https://api.github.com/users/usbsnowcrash","html_url":"https://github.com/usbsnowcrash","followers_url":"https://api.github.com/users/usbsnowcrash/followers","following_url":"https://api.github.com/users/usbsnowcrash/following{/other_user}","gists_url":"https://api.github.com/users/usbsnowcrash/gists{/gist_id}","starred_url":"https://api.github.com/users/usbsnowcrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usbsnowcrash/subscriptions","organizations_url":"https://api.github.com/users/usbsnowcrash/orgs","repos_url":"https://api.github.com/users/usbsnowcrash/repos","events_url":"https://api.github.com/users/usbsnowcrash/events{/privacy}","received_events_url":"https://api.github.com/users/usbsnowcrash/received_events","type":"User","site_admin":false},"repo":{"id":15139796,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzOTc5Ng==","name":"ruby-deployments-dashboard","full_name":"usbsnowcrash/ruby-deployments-dashboard","private":false,"owner":{"login":"usbsnowcrash","id":882850,"node_id":"MDQ6VXNlcjg4Mjg1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/882850?v=4","gravatar_id":"","url":"https://api.github.com/users/usbsnowcrash","html_url":"https://github.com/usbsnowcrash","followers_url":"https://api.github.com/users/usbsnowcrash/followers","following_url":"https://api.github.com/users/usbsnowcrash/following{/other_user}","gists_url":"https://api.github.com/users/usbsnowcrash/gists{/gist_id}","starred_url":"https://api.github.com/users/usbsnowcrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usbsnowcrash/subscriptions","organizations_url":"https://api.github.com/users/usbsnowcrash/orgs","repos_url":"https://api.github.com/users/usbsnowcrash/repos","events_url":"https://api.github.com/users/usbsnowcrash/events{/privacy}","received_events_url":"https://api.github.com/users/usbsnowcrash/received_events","type":"User","site_admin":false},"html_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard","description":"Track the deployment history of your ruby app","fork":false,"url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard","forks_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/forks","keys_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/teams","hooks_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/hooks","issue_events_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/events","assignees_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/tags","blobs_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/languages","stargazers_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/stargazers","contributors_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/contributors","subscribers_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/subscribers","subscription_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/subscription","commits_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/merges","archive_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/downloads","issues_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/deployments","created_at":"2013-12-12T15:37:25Z","updated_at":"2016-12-06T21:27:04Z","pushed_at":"2018-11-13T01:36:28Z","git_url":"git://github.com/usbsnowcrash/ruby-deployments-dashboard.git","ssh_url":"git@github.com:usbsnowcrash/ruby-deployments-dashboard.git","clone_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard.git","svn_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard","homepage":"","size":258,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"usbsnowcrash:master","ref":"master","sha":"c04966ffa91818e788ddd70b179fc396504c3f0b","user":{"login":"usbsnowcrash","id":882850,"node_id":"MDQ6VXNlcjg4Mjg1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/882850?v=4","gravatar_id":"","url":"https://api.github.com/users/usbsnowcrash","html_url":"https://github.com/usbsnowcrash","followers_url":"https://api.github.com/users/usbsnowcrash/followers","following_url":"https://api.github.com/users/usbsnowcrash/following{/other_user}","gists_url":"https://api.github.com/users/usbsnowcrash/gists{/gist_id}","starred_url":"https://api.github.com/users/usbsnowcrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usbsnowcrash/subscriptions","organizations_url":"https://api.github.com/users/usbsnowcrash/orgs","repos_url":"https://api.github.com/users/usbsnowcrash/repos","events_url":"https://api.github.com/users/usbsnowcrash/events{/privacy}","received_events_url":"https://api.github.com/users/usbsnowcrash/received_events","type":"User","site_admin":false},"repo":{"id":15139796,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzOTc5Ng==","name":"ruby-deployments-dashboard","full_name":"usbsnowcrash/ruby-deployments-dashboard","private":false,"owner":{"login":"usbsnowcrash","id":882850,"node_id":"MDQ6VXNlcjg4Mjg1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/882850?v=4","gravatar_id":"","url":"https://api.github.com/users/usbsnowcrash","html_url":"https://github.com/usbsnowcrash","followers_url":"https://api.github.com/users/usbsnowcrash/followers","following_url":"https://api.github.com/users/usbsnowcrash/following{/other_user}","gists_url":"https://api.github.com/users/usbsnowcrash/gists{/gist_id}","starred_url":"https://api.github.com/users/usbsnowcrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usbsnowcrash/subscriptions","organizations_url":"https://api.github.com/users/usbsnowcrash/orgs","repos_url":"https://api.github.com/users/usbsnowcrash/repos","events_url":"https://api.github.com/users/usbsnowcrash/events{/privacy}","received_events_url":"https://api.github.com/users/usbsnowcrash/received_events","type":"User","site_admin":false},"html_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard","description":"Track the deployment history of your ruby app","fork":false,"url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard","forks_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/forks","keys_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/teams","hooks_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/hooks","issue_events_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/events","assignees_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/tags","blobs_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/languages","stargazers_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/stargazers","contributors_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/contributors","subscribers_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/subscribers","subscription_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/subscription","commits_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/merges","archive_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/downloads","issues_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/deployments","created_at":"2013-12-12T15:37:25Z","updated_at":"2016-12-06T21:27:04Z","pushed_at":"2018-11-13T01:36:28Z","git_url":"git://github.com/usbsnowcrash/ruby-deployments-dashboard.git","ssh_url":"git@github.com:usbsnowcrash/ruby-deployments-dashboard.git","clone_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard.git","svn_url":"https://github.com/usbsnowcrash/ruby-deployments-dashboard","homepage":"","size":258,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42"},"html":{"href":"https://github.com/usbsnowcrash/ruby-deployments-dashboard/pull/42"},"issue":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/42"},"comments":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/usbsnowcrash/ruby-deployments-dashboard/statuses/4b0bb84ac6b2803f4342ac0d9780207a115fd4d8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}