{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/deis/workflow/pulls/42","id":52424023,"html_url":"https://github.com/deis/workflow/pull/42","diff_url":"https://github.com/deis/workflow/pull/42.diff","patch_url":"https://github.com/deis/workflow/pull/42.patch","issue_url":"https://api.github.com/repos/deis/workflow/issues/42","number":42,"state":"open","locked":false,"title":"ref(k8s): tidy up Python logic in k8s scheduler","user":{"login":"helgi","id":70530,"avatar_url":"https://avatars.githubusercontent.com/u/70530?v=3","gravatar_id":"","url":"https://api.github.com/users/helgi","html_url":"https://github.com/helgi","followers_url":"https://api.github.com/users/helgi/followers","following_url":"https://api.github.com/users/helgi/following{/other_user}","gists_url":"https://api.github.com/users/helgi/gists{/gist_id}","starred_url":"https://api.github.com/users/helgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgi/subscriptions","organizations_url":"https://api.github.com/users/helgi/orgs","repos_url":"https://api.github.com/users/helgi/repos","events_url":"https://api.github.com/users/helgi/events{/privacy}","received_events_url":"https://api.github.com/users/helgi/received_events","type":"User","site_admin":false},"body":"Consolidate code and unify a bit more under single quote (as much of the code already is).\nRename raise_err to error to be clearer about its functionality\n\nClean up logic in _delete_pod and have waiting work in it.\n\nMore to come, split out to simplify review","created_at":"2015-12-02T17:03:54Z","updated_at":"2015-12-02T17:03:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deis/workflow/pulls/42/commits","review_comments_url":"https://api.github.com/repos/deis/workflow/pulls/42/comments","review_comment_url":"https://api.github.com/repos/deis/workflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deis/workflow/issues/42/comments","statuses_url":"https://api.github.com/repos/deis/workflow/statuses/2092510cd460377d80271acbbd8c482669966883","head":{"label":"helgi:k8s_simplify","ref":"k8s_simplify","sha":"2092510cd460377d80271acbbd8c482669966883","user":{"login":"helgi","id":70530,"avatar_url":"https://avatars.githubusercontent.com/u/70530?v=3","gravatar_id":"","url":"https://api.github.com/users/helgi","html_url":"https://github.com/helgi","followers_url":"https://api.github.com/users/helgi/followers","following_url":"https://api.github.com/users/helgi/following{/other_user}","gists_url":"https://api.github.com/users/helgi/gists{/gist_id}","starred_url":"https://api.github.com/users/helgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgi/subscriptions","organizations_url":"https://api.github.com/users/helgi/orgs","repos_url":"https://api.github.com/users/helgi/repos","events_url":"https://api.github.com/users/helgi/events{/privacy}","received_events_url":"https://api.github.com/users/helgi/received_events","type":"User","site_admin":false},"repo":{"id":47214840,"name":"workflow","full_name":"helgi/workflow","owner":{"login":"helgi","id":70530,"avatar_url":"https://avatars.githubusercontent.com/u/70530?v=3","gravatar_id":"","url":"https://api.github.com/users/helgi","html_url":"https://github.com/helgi","followers_url":"https://api.github.com/users/helgi/followers","following_url":"https://api.github.com/users/helgi/following{/other_user}","gists_url":"https://api.github.com/users/helgi/gists{/gist_id}","starred_url":"https://api.github.com/users/helgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgi/subscriptions","organizations_url":"https://api.github.com/users/helgi/orgs","repos_url":"https://api.github.com/users/helgi/repos","events_url":"https://api.github.com/users/helgi/events{/privacy}","received_events_url":"https://api.github.com/users/helgi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/helgi/workflow","description":"PaaS workflow controller and client for Deis v2","fork":true,"url":"https://api.github.com/repos/helgi/workflow","forks_url":"https://api.github.com/repos/helgi/workflow/forks","keys_url":"https://api.github.com/repos/helgi/workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helgi/workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helgi/workflow/teams","hooks_url":"https://api.github.com/repos/helgi/workflow/hooks","issue_events_url":"https://api.github.com/repos/helgi/workflow/issues/events{/number}","events_url":"https://api.github.com/repos/helgi/workflow/events","assignees_url":"https://api.github.com/repos/helgi/workflow/assignees{/user}","branches_url":"https://api.github.com/repos/helgi/workflow/branches{/branch}","tags_url":"https://api.github.com/repos/helgi/workflow/tags","blobs_url":"https://api.github.com/repos/helgi/workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helgi/workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helgi/workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/helgi/workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helgi/workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/helgi/workflow/languages","stargazers_url":"https://api.github.com/repos/helgi/workflow/stargazers","contributors_url":"https://api.github.com/repos/helgi/workflow/contributors","subscribers_url":"https://api.github.com/repos/helgi/workflow/subscribers","subscription_url":"https://api.github.com/repos/helgi/workflow/subscription","commits_url":"https://api.github.com/repos/helgi/workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/helgi/workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/helgi/workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/helgi/workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/helgi/workflow/contents/{+path}","compare_url":"https://api.github.com/repos/helgi/workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helgi/workflow/merges","archive_url":"https://api.github.com/repos/helgi/workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helgi/workflow/downloads","issues_url":"https://api.github.com/repos/helgi/workflow/issues{/number}","pulls_url":"https://api.github.com/repos/helgi/workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/helgi/workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/helgi/workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helgi/workflow/labels{/name}","releases_url":"https://api.github.com/repos/helgi/workflow/releases{/id}","created_at":"2015-12-01T20:16:13Z","updated_at":"2015-12-01T20:16:15Z","pushed_at":"2015-12-02T16:52:22Z","git_url":"git://github.com/helgi/workflow.git","ssh_url":"git@github.com:helgi/workflow.git","clone_url":"https://github.com/helgi/workflow.git","svn_url":"https://github.com/helgi/workflow","homepage":"http://deis.io","size":14399,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"deis:master","ref":"master","sha":"c148d122905e4d3477ce779b98292d0519da49a1","user":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"repo":{"id":45704630,"name":"workflow","full_name":"deis/workflow","owner":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deis/workflow","description":"PaaS workflow controller and client for Deis v2","fork":false,"url":"https://api.github.com/repos/deis/workflow","forks_url":"https://api.github.com/repos/deis/workflow/forks","keys_url":"https://api.github.com/repos/deis/workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deis/workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deis/workflow/teams","hooks_url":"https://api.github.com/repos/deis/workflow/hooks","issue_events_url":"https://api.github.com/repos/deis/workflow/issues/events{/number}","events_url":"https://api.github.com/repos/deis/workflow/events","assignees_url":"https://api.github.com/repos/deis/workflow/assignees{/user}","branches_url":"https://api.github.com/repos/deis/workflow/branches{/branch}","tags_url":"https://api.github.com/repos/deis/workflow/tags","blobs_url":"https://api.github.com/repos/deis/workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deis/workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deis/workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/deis/workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deis/workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/deis/workflow/languages","stargazers_url":"https://api.github.com/repos/deis/workflow/stargazers","contributors_url":"https://api.github.com/repos/deis/workflow/contributors","subscribers_url":"https://api.github.com/repos/deis/workflow/subscribers","subscription_url":"https://api.github.com/repos/deis/workflow/subscription","commits_url":"https://api.github.com/repos/deis/workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/deis/workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/deis/workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/deis/workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/deis/workflow/contents/{+path}","compare_url":"https://api.github.com/repos/deis/workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deis/workflow/merges","archive_url":"https://api.github.com/repos/deis/workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deis/workflow/downloads","issues_url":"https://api.github.com/repos/deis/workflow/issues{/number}","pulls_url":"https://api.github.com/repos/deis/workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/deis/workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/deis/workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deis/workflow/labels{/name}","releases_url":"https://api.github.com/repos/deis/workflow/releases{/id}","created_at":"2015-11-06T20:06:05Z","updated_at":"2015-11-25T16:32:16Z","pushed_at":"2015-12-02T16:56:48Z","git_url":"git://github.com/deis/workflow.git","ssh_url":"git@github.com:deis/workflow.git","clone_url":"https://github.com/deis/workflow.git","svn_url":"https://github.com/deis/workflow","homepage":"http://deis.io","size":14484,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":24,"forks":7,"open_issues":24,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deis/workflow/pulls/42"},"html":{"href":"https://github.com/deis/workflow/pull/42"},"issue":{"href":"https://api.github.com/repos/deis/workflow/issues/42"},"comments":{"href":"https://api.github.com/repos/deis/workflow/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/deis/workflow/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/deis/workflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deis/workflow/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/deis/workflow/statuses/2092510cd460377d80271acbbd8c482669966883"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":122,"deletions":73,"changed_files":1}}