{"action":"closed","number":373,"pull_request":{"url":"https://api.github.com/repos/blox/blox/pulls/373","id":168674892,"html_url":"https://github.com/blox/blox/pull/373","diff_url":"https://github.com/blox/blox/pull/373.diff","patch_url":"https://github.com/blox/blox/pull/373.patch","issue_url":"https://api.github.com/repos/blox/blox/issues/373","number":373,"state":"closed","locked":false,"title":"Fix NullPointerException for inactive environments in scheduler handler","user":{"login":"wjbuys","id":31602,"avatar_url":"https://avatars3.githubusercontent.com/u/31602?v=4","gravatar_id":"","url":"https://api.github.com/users/wjbuys","html_url":"https://github.com/wjbuys","followers_url":"https://api.github.com/users/wjbuys/followers","following_url":"https://api.github.com/users/wjbuys/following{/other_user}","gists_url":"https://api.github.com/users/wjbuys/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbuys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbuys/subscriptions","organizations_url":"https://api.github.com/users/wjbuys/orgs","repos_url":"https://api.github.com/users/wjbuys/repos","events_url":"https://api.github.com/users/wjbuys/events{/privacy}","received_events_url":"https://api.github.com/users/wjbuys/received_events","type":"User","site_admin":false},"body":"The scheduler handler incorrectly assumed that an environment will\r\nalways have an active environment revision. This is not true for\r\nnewly-created environments, and would cause scheduler invocations to\r\nfail with a NullPointerException.\r\n\r\nInstead, it now returns an empty SchedulerOutput as soon as it's clear\r\nthat the environment has no active revisions.\r\n\r\n#### Testing\r\nNew unit test passes.\r\n\r\n#### Licensing\r\nThis contribution is under the terms of the Apache 2.0 License: Yes\r\n","created_at":"2018-02-12T20:04:34Z","updated_at":"2018-02-12T20:29:17Z","closed_at":"2018-02-12T20:29:17Z","merged_at":"2018-02-12T20:29:17Z","merge_commit_sha":"357d9d24aeef36bbca6515cc0490341fdd46b513","assignee":{"login":"wjbuys","id":31602,"avatar_url":"https://avatars3.githubusercontent.com/u/31602?v=4","gravatar_id":"","url":"https://api.github.com/users/wjbuys","html_url":"https://github.com/wjbuys","followers_url":"https://api.github.com/users/wjbuys/followers","following_url":"https://api.github.com/users/wjbuys/following{/other_user}","gists_url":"https://api.github.com/users/wjbuys/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbuys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbuys/subscriptions","organizations_url":"https://api.github.com/users/wjbuys/orgs","repos_url":"https://api.github.com/users/wjbuys/repos","events_url":"https://api.github.com/users/wjbuys/events{/privacy}","received_events_url":"https://api.github.com/users/wjbuys/received_events","type":"User","site_admin":false},"assignees":[{"login":"wjbuys","id":31602,"avatar_url":"https://avatars3.githubusercontent.com/u/31602?v=4","gravatar_id":"","url":"https://api.github.com/users/wjbuys","html_url":"https://github.com/wjbuys","followers_url":"https://api.github.com/users/wjbuys/followers","following_url":"https://api.github.com/users/wjbuys/following{/other_user}","gists_url":"https://api.github.com/users/wjbuys/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbuys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbuys/subscriptions","organizations_url":"https://api.github.com/users/wjbuys/orgs","repos_url":"https://api.github.com/users/wjbuys/repos","events_url":"https://api.github.com/users/wjbuys/events{/privacy}","received_events_url":"https://api.github.com/users/wjbuys/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/blox/blox/pulls/373/commits","review_comments_url":"https://api.github.com/repos/blox/blox/pulls/373/comments","review_comment_url":"https://api.github.com/repos/blox/blox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blox/blox/issues/373/comments","statuses_url":"https://api.github.com/repos/blox/blox/statuses/5ab35426fc470d2b9125b628ca568c1d42c371a5","head":{"label":"wjbuys:bugs/scheduler-inactive-env","ref":"bugs/scheduler-inactive-env","sha":"5ab35426fc470d2b9125b628ca568c1d42c371a5","user":{"login":"wjbuys","id":31602,"avatar_url":"https://avatars3.githubusercontent.com/u/31602?v=4","gravatar_id":"","url":"https://api.github.com/users/wjbuys","html_url":"https://github.com/wjbuys","followers_url":"https://api.github.com/users/wjbuys/followers","following_url":"https://api.github.com/users/wjbuys/following{/other_user}","gists_url":"https://api.github.com/users/wjbuys/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbuys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbuys/subscriptions","organizations_url":"https://api.github.com/users/wjbuys/orgs","repos_url":"https://api.github.com/users/wjbuys/repos","events_url":"https://api.github.com/users/wjbuys/events{/privacy}","received_events_url":"https://api.github.com/users/wjbuys/received_events","type":"User","site_admin":false},"repo":{"id":99023740,"name":"blox","full_name":"wjbuys/blox","owner":{"login":"wjbuys","id":31602,"avatar_url":"https://avatars3.githubusercontent.com/u/31602?v=4","gravatar_id":"","url":"https://api.github.com/users/wjbuys","html_url":"https://github.com/wjbuys","followers_url":"https://api.github.com/users/wjbuys/followers","following_url":"https://api.github.com/users/wjbuys/following{/other_user}","gists_url":"https://api.github.com/users/wjbuys/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbuys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbuys/subscriptions","organizations_url":"https://api.github.com/users/wjbuys/orgs","repos_url":"https://api.github.com/users/wjbuys/repos","events_url":"https://api.github.com/users/wjbuys/events{/privacy}","received_events_url":"https://api.github.com/users/wjbuys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wjbuys/blox","description":"Open source tools for building custom schedulers on Amazon ECS","fork":true,"url":"https://api.github.com/repos/wjbuys/blox","forks_url":"https://api.github.com/repos/wjbuys/blox/forks","keys_url":"https://api.github.com/repos/wjbuys/blox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wjbuys/blox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wjbuys/blox/teams","hooks_url":"https://api.github.com/repos/wjbuys/blox/hooks","issue_events_url":"https://api.github.com/repos/wjbuys/blox/issues/events{/number}","events_url":"https://api.github.com/repos/wjbuys/blox/events","assignees_url":"https://api.github.com/repos/wjbuys/blox/assignees{/user}","branches_url":"https://api.github.com/repos/wjbuys/blox/branches{/branch}","tags_url":"https://api.github.com/repos/wjbuys/blox/tags","blobs_url":"https://api.github.com/repos/wjbuys/blox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wjbuys/blox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wjbuys/blox/git/refs{/sha}","trees_url":"https://api.github.com/repos/wjbuys/blox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wjbuys/blox/statuses/{sha}","languages_url":"https://api.github.com/repos/wjbuys/blox/languages","stargazers_url":"https://api.github.com/repos/wjbuys/blox/stargazers","contributors_url":"https://api.github.com/repos/wjbuys/blox/contributors","subscribers_url":"https://api.github.com/repos/wjbuys/blox/subscribers","subscription_url":"https://api.github.com/repos/wjbuys/blox/subscription","commits_url":"https://api.github.com/repos/wjbuys/blox/commits{/sha}","git_commits_url":"https://api.github.com/repos/wjbuys/blox/git/commits{/sha}","comments_url":"https://api.github.com/repos/wjbuys/blox/comments{/number}","issue_comment_url":"https://api.github.com/repos/wjbuys/blox/issues/comments{/number}","contents_url":"https://api.github.com/repos/wjbuys/blox/contents/{+path}","compare_url":"https://api.github.com/repos/wjbuys/blox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wjbuys/blox/merges","archive_url":"https://api.github.com/repos/wjbuys/blox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wjbuys/blox/downloads","issues_url":"https://api.github.com/repos/wjbuys/blox/issues{/number}","pulls_url":"https://api.github.com/repos/wjbuys/blox/pulls{/number}","milestones_url":"https://api.github.com/repos/wjbuys/blox/milestones{/number}","notifications_url":"https://api.github.com/repos/wjbuys/blox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wjbuys/blox/labels{/name}","releases_url":"https://api.github.com/repos/wjbuys/blox/releases{/id}","deployments_url":"https://api.github.com/repos/wjbuys/blox/deployments","created_at":"2017-08-01T16:53:01Z","updated_at":"2017-08-04T01:08:34Z","pushed_at":"2018-02-12T20:23:30Z","git_url":"git://github.com/wjbuys/blox.git","ssh_url":"git@github.com:wjbuys/blox.git","clone_url":"https://github.com/wjbuys/blox.git","svn_url":"https://github.com/wjbuys/blox","homepage":"","size":5786,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"blox:dev","ref":"dev","sha":"d274b5e4adec191f935f162f39a99c42a44f2af0","user":{"login":"blox","id":23270025,"avatar_url":"https://avatars1.githubusercontent.com/u/23270025?v=4","gravatar_id":"","url":"https://api.github.com/users/blox","html_url":"https://github.com/blox","followers_url":"https://api.github.com/users/blox/followers","following_url":"https://api.github.com/users/blox/following{/other_user}","gists_url":"https://api.github.com/users/blox/gists{/gist_id}","starred_url":"https://api.github.com/users/blox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blox/subscriptions","organizations_url":"https://api.github.com/users/blox/orgs","repos_url":"https://api.github.com/users/blox/repos","events_url":"https://api.github.com/users/blox/events{/privacy}","received_events_url":"https://api.github.com/users/blox/received_events","type":"Organization","site_admin":false},"repo":{"id":74169960,"name":"blox","full_name":"blox/blox","owner":{"login":"blox","id":23270025,"avatar_url":"https://avatars1.githubusercontent.com/u/23270025?v=4","gravatar_id":"","url":"https://api.github.com/users/blox","html_url":"https://github.com/blox","followers_url":"https://api.github.com/users/blox/followers","following_url":"https://api.github.com/users/blox/following{/other_user}","gists_url":"https://api.github.com/users/blox/gists{/gist_id}","starred_url":"https://api.github.com/users/blox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blox/subscriptions","organizations_url":"https://api.github.com/users/blox/orgs","repos_url":"https://api.github.com/users/blox/repos","events_url":"https://api.github.com/users/blox/events{/privacy}","received_events_url":"https://api.github.com/users/blox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blox/blox","description":"Open source tools for building custom schedulers on Amazon ECS","fork":false,"url":"https://api.github.com/repos/blox/blox","forks_url":"https://api.github.com/repos/blox/blox/forks","keys_url":"https://api.github.com/repos/blox/blox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blox/blox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blox/blox/teams","hooks_url":"https://api.github.com/repos/blox/blox/hooks","issue_events_url":"https://api.github.com/repos/blox/blox/issues/events{/number}","events_url":"https://api.github.com/repos/blox/blox/events","assignees_url":"https://api.github.com/repos/blox/blox/assignees{/user}","branches_url":"https://api.github.com/repos/blox/blox/branches{/branch}","tags_url":"https://api.github.com/repos/blox/blox/tags","blobs_url":"https://api.github.com/repos/blox/blox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blox/blox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blox/blox/git/refs{/sha}","trees_url":"https://api.github.com/repos/blox/blox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blox/blox/statuses/{sha}","languages_url":"https://api.github.com/repos/blox/blox/languages","stargazers_url":"https://api.github.com/repos/blox/blox/stargazers","contributors_url":"https://api.github.com/repos/blox/blox/contributors","subscribers_url":"https://api.github.com/repos/blox/blox/subscribers","subscription_url":"https://api.github.com/repos/blox/blox/subscription","commits_url":"https://api.github.com/repos/blox/blox/commits{/sha}","git_commits_url":"https://api.github.com/repos/blox/blox/git/commits{/sha}","comments_url":"https://api.github.com/repos/blox/blox/comments{/number}","issue_comment_url":"https://api.github.com/repos/blox/blox/issues/comments{/number}","contents_url":"https://api.github.com/repos/blox/blox/contents/{+path}","compare_url":"https://api.github.com/repos/blox/blox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blox/blox/merges","archive_url":"https://api.github.com/repos/blox/blox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blox/blox/downloads","issues_url":"https://api.github.com/repos/blox/blox/issues{/number}","pulls_url":"https://api.github.com/repos/blox/blox/pulls{/number}","milestones_url":"https://api.github.com/repos/blox/blox/milestones{/number}","notifications_url":"https://api.github.com/repos/blox/blox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blox/blox/labels{/name}","releases_url":"https://api.github.com/repos/blox/blox/releases{/id}","deployments_url":"https://api.github.com/repos/blox/blox/deployments","created_at":"2016-11-18T22:04:45Z","updated_at":"2018-02-09T21:45:52Z","pushed_at":"2018-02-12T20:29:17Z","git_url":"git://github.com/blox/blox.git","ssh_url":"git@github.com:blox/blox.git","clone_url":"https://github.com/blox/blox.git","svn_url":"https://github.com/blox/blox","homepage":"","size":5793,"stargazers_count":836,"watchers_count":836,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":77,"open_issues":32,"watchers":836,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/blox/blox/pulls/373"},"html":{"href":"https://github.com/blox/blox/pull/373"},"issue":{"href":"https://api.github.com/repos/blox/blox/issues/373"},"comments":{"href":"https://api.github.com/repos/blox/blox/issues/373/comments"},"review_comments":{"href":"https://api.github.com/repos/blox/blox/pulls/373/comments"},"review_comment":{"href":"https://api.github.com/repos/blox/blox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blox/blox/pulls/373/commits"},"statuses":{"href":"https://api.github.com/repos/blox/blox/statuses/5ab35426fc470d2b9125b628ca568c1d42c371a5"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"wjbuys","id":31602,"avatar_url":"https://avatars3.githubusercontent.com/u/31602?v=4","gravatar_id":"","url":"https://api.github.com/users/wjbuys","html_url":"https://github.com/wjbuys","followers_url":"https://api.github.com/users/wjbuys/followers","following_url":"https://api.github.com/users/wjbuys/following{/other_user}","gists_url":"https://api.github.com/users/wjbuys/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbuys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbuys/subscriptions","organizations_url":"https://api.github.com/users/wjbuys/orgs","repos_url":"https://api.github.com/users/wjbuys/repos","events_url":"https://api.github.com/users/wjbuys/events{/privacy}","received_events_url":"https://api.github.com/users/wjbuys/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"maintainer_can_modify":false,"commits":3,"additions":57,"deletions":28,"changed_files":2}}
{"actor":{"display_login":"wjbuys"}}