{"action":"created","comment":{"url":"https://api.github.com/repos/plangrid/hera/pulls/comments/47299554","id":47299554,"diff_hunk":"@@ -3,10 +3,12 @@\n from src.data_access.repository_access import GitHubController\n from time import sleep\n from conf.config import LABEL_TEAM_MAP, TARGET_REPOS\n+from conf import config\n \n-class IssuePoller():\n+\n+class IssuePoller(object):","path":"bin/issue_poller.py","position":8,"original_position":8,"commit_id":"d605cba10a36bff13ab538cbeb9347209830b8c3","original_commit_id":"d605cba10a36bff13ab538cbeb9347209830b8c3","user":{"login":"eleddy","id":310133,"avatar_url":"https://avatars.githubusercontent.com/u/310133?v=3","gravatar_id":"","url":"https://api.github.com/users/eleddy","html_url":"https://github.com/eleddy","followers_url":"https://api.github.com/users/eleddy/followers","following_url":"https://api.github.com/users/eleddy/following{/other_user}","gists_url":"https://api.github.com/users/eleddy/gists{/gist_id}","starred_url":"https://api.github.com/users/eleddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleddy/subscriptions","organizations_url":"https://api.github.com/users/eleddy/orgs","repos_url":"https://api.github.com/users/eleddy/repos","events_url":"https://api.github.com/users/eleddy/events{/privacy}","received_events_url":"https://api.github.com/users/eleddy/received_events","type":"User","site_admin":false},"body":"Python 2 says we should be explicit about new style classes. Its a good habit, and your editor should yell if you don't. See 2nd answer at http://stackoverflow.com/questions/4015417/python-class-inherits-object","created_at":"2015-12-10T22:56:11Z","updated_at":"2015-12-10T22:56:11Z","html_url":"https://github.com/plangrid/hera/pull/16#discussion_r47299554","pull_request_url":"https://api.github.com/repos/plangrid/hera/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/plangrid/hera/pulls/comments/47299554"},"html":{"href":"https://github.com/plangrid/hera/pull/16#discussion_r47299554"},"pull_request":{"href":"https://api.github.com/repos/plangrid/hera/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/plangrid/hera/pulls/16","id":53204484,"html_url":"https://github.com/plangrid/hera/pull/16","diff_url":"https://github.com/plangrid/hera/pull/16.diff","patch_url":"https://github.com/plangrid/hera/pull/16.patch","issue_url":"https://api.github.com/repos/plangrid/hera/issues/16","number":16,"state":"open","locked":false,"title":"Add 2 tier reviews for x% of PRs. Assigns to owner","user":{"login":"eleddy","id":310133,"avatar_url":"https://avatars.githubusercontent.com/u/310133?v=3","gravatar_id":"","url":"https://api.github.com/users/eleddy","html_url":"https://github.com/eleddy","followers_url":"https://api.github.com/users/eleddy/followers","following_url":"https://api.github.com/users/eleddy/following{/other_user}","gists_url":"https://api.github.com/users/eleddy/gists{/gist_id}","starred_url":"https://api.github.com/users/eleddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleddy/subscriptions","organizations_url":"https://api.github.com/users/eleddy/orgs","repos_url":"https://api.github.com/users/eleddy/repos","events_url":"https://api.github.com/users/eleddy/events{/privacy}","received_events_url":"https://api.github.com/users/eleddy/received_events","type":"User","site_admin":false},"body":"This will assign a PR approved for merge to a component owner X% of the time, where x < 50%. A little hacky but should get the job done. We could make a separate label for further review if this is confusing to people.","created_at":"2015-12-10T01:33:25Z","updated_at":"2015-12-10T22:56:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e59aecab89fa5229406e5a6a08dbd678217d6625","assignee":{"login":"eleddy","id":310133,"avatar_url":"https://avatars.githubusercontent.com/u/310133?v=3","gravatar_id":"","url":"https://api.github.com/users/eleddy","html_url":"https://github.com/eleddy","followers_url":"https://api.github.com/users/eleddy/followers","following_url":"https://api.github.com/users/eleddy/following{/other_user}","gists_url":"https://api.github.com/users/eleddy/gists{/gist_id}","starred_url":"https://api.github.com/users/eleddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleddy/subscriptions","organizations_url":"https://api.github.com/users/eleddy/orgs","repos_url":"https://api.github.com/users/eleddy/repos","events_url":"https://api.github.com/users/eleddy/events{/privacy}","received_events_url":"https://api.github.com/users/eleddy/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/plangrid/hera/pulls/16/commits","review_comments_url":"https://api.github.com/repos/plangrid/hera/pulls/16/comments","review_comment_url":"https://api.github.com/repos/plangrid/hera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plangrid/hera/issues/16/comments","statuses_url":"https://api.github.com/repos/plangrid/hera/statuses/d605cba10a36bff13ab538cbeb9347209830b8c3","head":{"label":"plangrid:secondary_reviews","ref":"secondary_reviews","sha":"d605cba10a36bff13ab538cbeb9347209830b8c3","user":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"repo":{"id":39615892,"name":"hera","full_name":"plangrid/hera","owner":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plangrid/hera","description":"Mythical PR management","fork":false,"url":"https://api.github.com/repos/plangrid/hera","forks_url":"https://api.github.com/repos/plangrid/hera/forks","keys_url":"https://api.github.com/repos/plangrid/hera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plangrid/hera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plangrid/hera/teams","hooks_url":"https://api.github.com/repos/plangrid/hera/hooks","issue_events_url":"https://api.github.com/repos/plangrid/hera/issues/events{/number}","events_url":"https://api.github.com/repos/plangrid/hera/events","assignees_url":"https://api.github.com/repos/plangrid/hera/assignees{/user}","branches_url":"https://api.github.com/repos/plangrid/hera/branches{/branch}","tags_url":"https://api.github.com/repos/plangrid/hera/tags","blobs_url":"https://api.github.com/repos/plangrid/hera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plangrid/hera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plangrid/hera/git/refs{/sha}","trees_url":"https://api.github.com/repos/plangrid/hera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plangrid/hera/statuses/{sha}","languages_url":"https://api.github.com/repos/plangrid/hera/languages","stargazers_url":"https://api.github.com/repos/plangrid/hera/stargazers","contributors_url":"https://api.github.com/repos/plangrid/hera/contributors","subscribers_url":"https://api.github.com/repos/plangrid/hera/subscribers","subscription_url":"https://api.github.com/repos/plangrid/hera/subscription","commits_url":"https://api.github.com/repos/plangrid/hera/commits{/sha}","git_commits_url":"https://api.github.com/repos/plangrid/hera/git/commits{/sha}","comments_url":"https://api.github.com/repos/plangrid/hera/comments{/number}","issue_comment_url":"https://api.github.com/repos/plangrid/hera/issues/comments{/number}","contents_url":"https://api.github.com/repos/plangrid/hera/contents/{+path}","compare_url":"https://api.github.com/repos/plangrid/hera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plangrid/hera/merges","archive_url":"https://api.github.com/repos/plangrid/hera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plangrid/hera/downloads","issues_url":"https://api.github.com/repos/plangrid/hera/issues{/number}","pulls_url":"https://api.github.com/repos/plangrid/hera/pulls{/number}","milestones_url":"https://api.github.com/repos/plangrid/hera/milestones{/number}","notifications_url":"https://api.github.com/repos/plangrid/hera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plangrid/hera/labels{/name}","releases_url":"https://api.github.com/repos/plangrid/hera/releases{/id}","created_at":"2015-07-24T06:36:02Z","updated_at":"2015-09-04T19:52:21Z","pushed_at":"2015-12-10T01:33:25Z","git_url":"git://github.com/plangrid/hera.git","ssh_url":"git@github.com:plangrid/hera.git","clone_url":"https://github.com/plangrid/hera.git","svn_url":"https://github.com/plangrid/hera","homepage":"","size":44,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":7,"default_branch":"master"}},"base":{"label":"plangrid:master","ref":"master","sha":"37822bf4790d3b1f9c473e06bbf30a9fdb5aa5b1","user":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"repo":{"id":39615892,"name":"hera","full_name":"plangrid/hera","owner":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plangrid/hera","description":"Mythical PR management","fork":false,"url":"https://api.github.com/repos/plangrid/hera","forks_url":"https://api.github.com/repos/plangrid/hera/forks","keys_url":"https://api.github.com/repos/plangrid/hera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plangrid/hera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plangrid/hera/teams","hooks_url":"https://api.github.com/repos/plangrid/hera/hooks","issue_events_url":"https://api.github.com/repos/plangrid/hera/issues/events{/number}","events_url":"https://api.github.com/repos/plangrid/hera/events","assignees_url":"https://api.github.com/repos/plangrid/hera/assignees{/user}","branches_url":"https://api.github.com/repos/plangrid/hera/branches{/branch}","tags_url":"https://api.github.com/repos/plangrid/hera/tags","blobs_url":"https://api.github.com/repos/plangrid/hera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plangrid/hera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plangrid/hera/git/refs{/sha}","trees_url":"https://api.github.com/repos/plangrid/hera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plangrid/hera/statuses/{sha}","languages_url":"https://api.github.com/repos/plangrid/hera/languages","stargazers_url":"https://api.github.com/repos/plangrid/hera/stargazers","contributors_url":"https://api.github.com/repos/plangrid/hera/contributors","subscribers_url":"https://api.github.com/repos/plangrid/hera/subscribers","subscription_url":"https://api.github.com/repos/plangrid/hera/subscription","commits_url":"https://api.github.com/repos/plangrid/hera/commits{/sha}","git_commits_url":"https://api.github.com/repos/plangrid/hera/git/commits{/sha}","comments_url":"https://api.github.com/repos/plangrid/hera/comments{/number}","issue_comment_url":"https://api.github.com/repos/plangrid/hera/issues/comments{/number}","contents_url":"https://api.github.com/repos/plangrid/hera/contents/{+path}","compare_url":"https://api.github.com/repos/plangrid/hera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plangrid/hera/merges","archive_url":"https://api.github.com/repos/plangrid/hera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plangrid/hera/downloads","issues_url":"https://api.github.com/repos/plangrid/hera/issues{/number}","pulls_url":"https://api.github.com/repos/plangrid/hera/pulls{/number}","milestones_url":"https://api.github.com/repos/plangrid/hera/milestones{/number}","notifications_url":"https://api.github.com/repos/plangrid/hera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plangrid/hera/labels{/name}","releases_url":"https://api.github.com/repos/plangrid/hera/releases{/id}","created_at":"2015-07-24T06:36:02Z","updated_at":"2015-09-04T19:52:21Z","pushed_at":"2015-12-10T01:33:25Z","git_url":"git://github.com/plangrid/hera.git","ssh_url":"git@github.com:plangrid/hera.git","clone_url":"https://github.com/plangrid/hera.git","svn_url":"https://github.com/plangrid/hera","homepage":"","size":44,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plangrid/hera/pulls/16"},"html":{"href":"https://github.com/plangrid/hera/pull/16"},"issue":{"href":"https://api.github.com/repos/plangrid/hera/issues/16"},"comments":{"href":"https://api.github.com/repos/plangrid/hera/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/plangrid/hera/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/plangrid/hera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plangrid/hera/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/plangrid/hera/statuses/d605cba10a36bff13ab538cbeb9347209830b8c3"}}}}