{"action":"closed","number":40,"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/40","id":49120674,"html_url":"https://github.com/UKHomeOffice/kb8or/pull/40","diff_url":"https://github.com/UKHomeOffice/kb8or/pull/40.diff","patch_url":"https://github.com/UKHomeOffice/kb8or/pull/40.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/40","number":40,"state":"closed","locked":false,"title":"Added fix for missing labels","user":{"login":"lewismarshall","id":2500933,"avatar_url":"https://avatars.githubusercontent.com/u/2500933?v=3","gravatar_id":"","url":"https://api.github.com/users/lewismarshall","html_url":"https://github.com/lewismarshall","followers_url":"https://api.github.com/users/lewismarshall/followers","following_url":"https://api.github.com/users/lewismarshall/following{/other_user}","gists_url":"https://api.github.com/users/lewismarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/lewismarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewismarshall/subscriptions","organizations_url":"https://api.github.com/users/lewismarshall/orgs","repos_url":"https://api.github.com/users/lewismarshall/repos","events_url":"https://api.github.com/users/lewismarshall/events{/privacy}","received_events_url":"https://api.github.com/users/lewismarshall/received_events","type":"User","site_admin":false},"body":"Can get the following when there are no labels defined for a controller:\r\n```shell\r\nKb8or bug:undefined method `[]=' for nil:NilClass\r\n[\"/var/lib/kb8or/libs/kb8_controller.rb:110:in `update_deployment_data'\", \"/var/lib/kb8or/libs/kb8_controller.rb:145:in `exist?'\", \"/var/lib/kb8or/libs/deployment_unit.rb:98:in `block in deploy'\", \"/var/lib/kb8or/libs/deployment_unit.rb:97:in `each'\", \"/var/lib/kb8or/libs/deployment_unit.rb:97:in `deploy'\", \"/var/lib/kb8or/libs/deploy.rb:69:in `block in deploy'\", \"/var/lib/kb8or/libs/deploy.rb:68:in `each'\", \"/var/lib/kb8or/libs/deploy.rb:68:in `deploy'\", \"/var/lib/kb8or/kb8or.rb:48:in `block in <class:Kb8or>'\", \"/usr/local/bundle/gems/methadone-1.9.1/lib/methadone/main.rb:390:in `call'\", \"/usr/local/bundle/gems/methadone-1.9.1/lib/methadone/main.rb:390:in `call_main'\", \"/usr/local/bundle/gems/methadone-1.9.1/lib/methadone/main.rb:167:in `go!'\", \"/var/lib/kb8or/kb8or.rb:119:in `<class:Kb8or>'\", \"/var/lib/kb8or/kb8or.rb:13:in `<main>'\"]\r\nE, [2015-10-29T10:03:10.878988 #1] ERROR -- : undefined method `[]=' for nil:NilClass\r\nE, [2015-10-29T10:03:10.879061 #1] ER...\r\n```\r\n\r\nEnsure an empty hash is created if no labels exist...","created_at":"2015-10-29T10:23:13Z","updated_at":"2015-10-30T12:06:59Z","closed_at":"2015-10-30T12:06:59Z","merged_at":"2015-10-30T12:06:59Z","merge_commit_sha":"4cb28851bcd81d624ee3212319c089f7c1105e0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/40/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/40/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/40/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/kb8or/statuses/abec6275320780c71b62bdd0f5d36f57df39f2d4","head":{"label":"UKHomeOffice:fix_no_labels","ref":"fix_no_labels","sha":"abec6275320780c71b62bdd0f5d36f57df39f2d4","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":38623495,"name":"kb8or","full_name":"UKHomeOffice/kb8or","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/kb8or","description":"CI Tool for deploying with kubernetes","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/kb8or","forks_url":"https://api.github.com/repos/UKHomeOffice/kb8or/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/kb8or/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/kb8or/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/kb8or/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/kb8or/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/kb8or/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/kb8or/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/kb8or/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/kb8or/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/kb8or/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/kb8or/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/kb8or/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/kb8or/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/kb8or/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/kb8or/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/kb8or/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/kb8or/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/kb8or/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/kb8or/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/kb8or/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/kb8or/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/kb8or/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/kb8or/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/kb8or/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/kb8or/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/kb8or/releases{/id}","created_at":"2015-07-06T14:20:28Z","updated_at":"2015-10-29T18:59:46Z","pushed_at":"2015-10-30T12:06:59Z","git_url":"git://github.com/UKHomeOffice/kb8or.git","ssh_url":"git@github.com:UKHomeOffice/kb8or.git","clone_url":"https://github.com/UKHomeOffice/kb8or.git","svn_url":"https://github.com/UKHomeOffice/kb8or","homepage":null,"size":564,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":4,"default_branch":"master"}},"base":{"label":"UKHomeOffice:master","ref":"master","sha":"1b318c08aaca2395cd8331195406f12d8040d1f8","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":38623495,"name":"kb8or","full_name":"UKHomeOffice/kb8or","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/kb8or","description":"CI Tool for deploying with kubernetes","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/kb8or","forks_url":"https://api.github.com/repos/UKHomeOffice/kb8or/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/kb8or/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/kb8or/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/kb8or/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/kb8or/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/kb8or/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/kb8or/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/kb8or/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/kb8or/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/kb8or/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/kb8or/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/kb8or/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/kb8or/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/kb8or/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/kb8or/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/kb8or/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/kb8or/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/kb8or/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/kb8or/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/kb8or/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/kb8or/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/kb8or/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/kb8or/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/kb8or/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/kb8or/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/kb8or/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/kb8or/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/kb8or/releases{/id}","created_at":"2015-07-06T14:20:28Z","updated_at":"2015-10-29T18:59:46Z","pushed_at":"2015-10-30T12:06:59Z","git_url":"git://github.com/UKHomeOffice/kb8or.git","ssh_url":"git@github.com:UKHomeOffice/kb8or.git","clone_url":"https://github.com/UKHomeOffice/kb8or.git","svn_url":"https://github.com/UKHomeOffice/kb8or","homepage":null,"size":564,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/40"},"html":{"href":"https://github.com/UKHomeOffice/kb8or/pull/40"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/40"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/kb8or/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/kb8or/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/kb8or/statuses/abec6275320780c71b62bdd0f5d36f57df39f2d4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lewismarshall","id":2500933,"avatar_url":"https://avatars.githubusercontent.com/u/2500933?v=3","gravatar_id":"","url":"https://api.github.com/users/lewismarshall","html_url":"https://github.com/lewismarshall","followers_url":"https://api.github.com/users/lewismarshall/followers","following_url":"https://api.github.com/users/lewismarshall/following{/other_user}","gists_url":"https://api.github.com/users/lewismarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/lewismarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewismarshall/subscriptions","organizations_url":"https://api.github.com/users/lewismarshall/orgs","repos_url":"https://api.github.com/users/lewismarshall/repos","events_url":"https://api.github.com/users/lewismarshall/events{/privacy}","received_events_url":"https://api.github.com/users/lewismarshall/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":2}}