{"action":"created","comment":{"url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/comments/79866382","id":79866382,"diff_hunk":"@@ -108,6 +95,37 @@ class EnvApiClient {\n \t\t});\n \t}\n \n+\t/**\n+   * Converts the returned results from the env-api service into the expected format.\n+\t */\n+\tconvertK8sResult(config, result) {\n+\t\t// move the k8s values to the base object\n+\t\tif (config.k8s && typeof config.k8s === 'object') {\n+\t\t\tlet props = config.k8s;\n+\t\t\tObject.keys(props).forEach( (key) => {\n+\t\t\t\tresult[key] = props[key];\n+\t\t\t});\n+\t\t}\n+\t\treturn result;\n+\t}\n+\n+\t/**\n+   * Converts the returned results from the env-api service into the expected format.","path":"src/plugin/env-api-client.js","position":103,"original_position":103,"commit_id":"55c9db5cafbedcb13b5fa8a1f2cfa0d4afe53d17","original_commit_id":"55c9db5cafbedcb13b5fa8a1f2cfa0d4afe53d17","user":{"login":"chesleybrown","id":492166,"avatar_url":"https://avatars.githubusercontent.com/u/492166?v=3","gravatar_id":"","url":"https://api.github.com/users/chesleybrown","html_url":"https://github.com/chesleybrown","followers_url":"https://api.github.com/users/chesleybrown/followers","following_url":"https://api.github.com/users/chesleybrown/following{/other_user}","gists_url":"https://api.github.com/users/chesleybrown/gists{/gist_id}","starred_url":"https://api.github.com/users/chesleybrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chesleybrown/subscriptions","organizations_url":"https://api.github.com/users/chesleybrown/orgs","repos_url":"https://api.github.com/users/chesleybrown/repos","events_url":"https://api.github.com/users/chesleybrown/events{/privacy}","received_events_url":"https://api.github.com/users/chesleybrown/received_events","type":"User","site_admin":false},"body":"Same here.","created_at":"2016-09-21T15:48:37Z","updated_at":"2016-09-21T15:55:25Z","html_url":"https://github.com/InVisionApp/kit-deploymentizer/pull/20#discussion_r79866382","pull_request_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/comments/79866382"},"html":{"href":"https://github.com/InVisionApp/kit-deploymentizer/pull/20#discussion_r79866382"},"pull_request":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20","id":86043612,"html_url":"https://github.com/InVisionApp/kit-deploymentizer/pull/20","diff_url":"https://github.com/InVisionApp/kit-deploymentizer/pull/20.diff","patch_url":"https://github.com/InVisionApp/kit-deploymentizer/pull/20.patch","issue_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/20","number":20,"state":"open","locked":false,"title":"allow the k8s branch to set the branch to get env.yaml","user":{"login":"c1freitas","id":4039561,"avatar_url":"https://avatars.githubusercontent.com/u/4039561?v=3","gravatar_id":"","url":"https://api.github.com/users/c1freitas","html_url":"https://github.com/c1freitas","followers_url":"https://api.github.com/users/c1freitas/followers","following_url":"https://api.github.com/users/c1freitas/following{/other_user}","gists_url":"https://api.github.com/users/c1freitas/gists{/gist_id}","starred_url":"https://api.github.com/users/c1freitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c1freitas/subscriptions","organizations_url":"https://api.github.com/users/c1freitas/orgs","repos_url":"https://api.github.com/users/c1freitas/repos","events_url":"https://api.github.com/users/c1freitas/events{/privacy}","received_events_url":"https://api.github.com/users/c1freitas/received_events","type":"User","site_admin":false},"body":"# What\r\n\r\nBy setting the `altBranch: true` in the configuration of the plugin, the result of initial request to `env-api` will be queried and if a different branch is returned than current branch the `env-api` will be queried again to get the `env.yaml` values. This is a temp solution to follow the process outlined in: https://github.com/InVisionApp/engineering-notes/pull/259","created_at":"2016-09-20T19:47:07Z","updated_at":"2016-09-21T15:55:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ff4be0f67c39def1085039a104c73175ec4293f","assignee":{"login":"chesleybrown","id":492166,"avatar_url":"https://avatars.githubusercontent.com/u/492166?v=3","gravatar_id":"","url":"https://api.github.com/users/chesleybrown","html_url":"https://github.com/chesleybrown","followers_url":"https://api.github.com/users/chesleybrown/followers","following_url":"https://api.github.com/users/chesleybrown/following{/other_user}","gists_url":"https://api.github.com/users/chesleybrown/gists{/gist_id}","starred_url":"https://api.github.com/users/chesleybrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chesleybrown/subscriptions","organizations_url":"https://api.github.com/users/chesleybrown/orgs","repos_url":"https://api.github.com/users/chesleybrown/repos","events_url":"https://api.github.com/users/chesleybrown/events{/privacy}","received_events_url":"https://api.github.com/users/chesleybrown/received_events","type":"User","site_admin":false},"assignees":[{"login":"chesleybrown","id":492166,"avatar_url":"https://avatars.githubusercontent.com/u/492166?v=3","gravatar_id":"","url":"https://api.github.com/users/chesleybrown","html_url":"https://github.com/chesleybrown","followers_url":"https://api.github.com/users/chesleybrown/followers","following_url":"https://api.github.com/users/chesleybrown/following{/other_user}","gists_url":"https://api.github.com/users/chesleybrown/gists{/gist_id}","starred_url":"https://api.github.com/users/chesleybrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chesleybrown/subscriptions","organizations_url":"https://api.github.com/users/chesleybrown/orgs","repos_url":"https://api.github.com/users/chesleybrown/repos","events_url":"https://api.github.com/users/chesleybrown/events{/privacy}","received_events_url":"https://api.github.com/users/chesleybrown/received_events","type":"User","site_admin":false},{"login":"wincus","id":2779765,"avatar_url":"https://avatars.githubusercontent.com/u/2779765?v=3","gravatar_id":"","url":"https://api.github.com/users/wincus","html_url":"https://github.com/wincus","followers_url":"https://api.github.com/users/wincus/followers","following_url":"https://api.github.com/users/wincus/following{/other_user}","gists_url":"https://api.github.com/users/wincus/gists{/gist_id}","starred_url":"https://api.github.com/users/wincus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wincus/subscriptions","organizations_url":"https://api.github.com/users/wincus/orgs","repos_url":"https://api.github.com/users/wincus/repos","events_url":"https://api.github.com/users/wincus/events{/privacy}","received_events_url":"https://api.github.com/users/wincus/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20/commits","review_comments_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20/comments","review_comment_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/20/comments","statuses_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/statuses/55c9db5cafbedcb13b5fa8a1f2cfa0d4afe53d17","head":{"label":"InVisionApp:GENESIS-871/add-alt-branch","ref":"GENESIS-871/add-alt-branch","sha":"55c9db5cafbedcb13b5fa8a1f2cfa0d4afe53d17","user":{"login":"InVisionApp","id":1536893,"avatar_url":"https://avatars.githubusercontent.com/u/1536893?v=3","gravatar_id":"","url":"https://api.github.com/users/InVisionApp","html_url":"https://github.com/InVisionApp","followers_url":"https://api.github.com/users/InVisionApp/followers","following_url":"https://api.github.com/users/InVisionApp/following{/other_user}","gists_url":"https://api.github.com/users/InVisionApp/gists{/gist_id}","starred_url":"https://api.github.com/users/InVisionApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InVisionApp/subscriptions","organizations_url":"https://api.github.com/users/InVisionApp/orgs","repos_url":"https://api.github.com/users/InVisionApp/repos","events_url":"https://api.github.com/users/InVisionApp/events{/privacy}","received_events_url":"https://api.github.com/users/InVisionApp/received_events","type":"Organization","site_admin":false},"repo":{"id":60784056,"name":"kit-deploymentizer","full_name":"InVisionApp/kit-deploymentizer","owner":{"login":"InVisionApp","id":1536893,"avatar_url":"https://avatars.githubusercontent.com/u/1536893?v=3","gravatar_id":"","url":"https://api.github.com/users/InVisionApp","html_url":"https://github.com/InVisionApp","followers_url":"https://api.github.com/users/InVisionApp/followers","following_url":"https://api.github.com/users/InVisionApp/following{/other_user}","gists_url":"https://api.github.com/users/InVisionApp/gists{/gist_id}","starred_url":"https://api.github.com/users/InVisionApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InVisionApp/subscriptions","organizations_url":"https://api.github.com/users/InVisionApp/orgs","repos_url":"https://api.github.com/users/InVisionApp/repos","events_url":"https://api.github.com/users/InVisionApp/events{/privacy}","received_events_url":"https://api.github.com/users/InVisionApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/InVisionApp/kit-deploymentizer","description":"kit component to allow for better organization of kubernetes manifests for multiple clusters","fork":false,"url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer","forks_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/forks","keys_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/teams","hooks_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/hooks","issue_events_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/events{/number}","events_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/events","assignees_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/assignees{/user}","branches_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/branches{/branch}","tags_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/tags","blobs_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/statuses/{sha}","languages_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/languages","stargazers_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/stargazers","contributors_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/contributors","subscribers_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/subscribers","subscription_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/subscription","commits_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/contents/{+path}","compare_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/merges","archive_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/downloads","issues_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues{/number}","pulls_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls{/number}","milestones_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/milestones{/number}","notifications_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/labels{/name}","releases_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/releases{/id}","deployments_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/deployments","created_at":"2016-06-09T15:10:04Z","updated_at":"2016-09-07T17:11:53Z","pushed_at":"2016-09-20T19:47:07Z","git_url":"git://github.com/InVisionApp/kit-deploymentizer.git","ssh_url":"git@github.com:InVisionApp/kit-deploymentizer.git","clone_url":"https://github.com/InVisionApp/kit-deploymentizer.git","svn_url":"https://github.com/InVisionApp/kit-deploymentizer","homepage":"","size":240,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"InVisionApp:master","ref":"master","sha":"c8a8b8e15304ad87227fbaa3c460e942755abeb5","user":{"login":"InVisionApp","id":1536893,"avatar_url":"https://avatars.githubusercontent.com/u/1536893?v=3","gravatar_id":"","url":"https://api.github.com/users/InVisionApp","html_url":"https://github.com/InVisionApp","followers_url":"https://api.github.com/users/InVisionApp/followers","following_url":"https://api.github.com/users/InVisionApp/following{/other_user}","gists_url":"https://api.github.com/users/InVisionApp/gists{/gist_id}","starred_url":"https://api.github.com/users/InVisionApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InVisionApp/subscriptions","organizations_url":"https://api.github.com/users/InVisionApp/orgs","repos_url":"https://api.github.com/users/InVisionApp/repos","events_url":"https://api.github.com/users/InVisionApp/events{/privacy}","received_events_url":"https://api.github.com/users/InVisionApp/received_events","type":"Organization","site_admin":false},"repo":{"id":60784056,"name":"kit-deploymentizer","full_name":"InVisionApp/kit-deploymentizer","owner":{"login":"InVisionApp","id":1536893,"avatar_url":"https://avatars.githubusercontent.com/u/1536893?v=3","gravatar_id":"","url":"https://api.github.com/users/InVisionApp","html_url":"https://github.com/InVisionApp","followers_url":"https://api.github.com/users/InVisionApp/followers","following_url":"https://api.github.com/users/InVisionApp/following{/other_user}","gists_url":"https://api.github.com/users/InVisionApp/gists{/gist_id}","starred_url":"https://api.github.com/users/InVisionApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InVisionApp/subscriptions","organizations_url":"https://api.github.com/users/InVisionApp/orgs","repos_url":"https://api.github.com/users/InVisionApp/repos","events_url":"https://api.github.com/users/InVisionApp/events{/privacy}","received_events_url":"https://api.github.com/users/InVisionApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/InVisionApp/kit-deploymentizer","description":"kit component to allow for better organization of kubernetes manifests for multiple clusters","fork":false,"url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer","forks_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/forks","keys_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/teams","hooks_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/hooks","issue_events_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/events{/number}","events_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/events","assignees_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/assignees{/user}","branches_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/branches{/branch}","tags_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/tags","blobs_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/statuses/{sha}","languages_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/languages","stargazers_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/stargazers","contributors_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/contributors","subscribers_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/subscribers","subscription_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/subscription","commits_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/contents/{+path}","compare_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/merges","archive_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/downloads","issues_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues{/number}","pulls_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls{/number}","milestones_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/milestones{/number}","notifications_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/labels{/name}","releases_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/releases{/id}","deployments_url":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/deployments","created_at":"2016-06-09T15:10:04Z","updated_at":"2016-09-07T17:11:53Z","pushed_at":"2016-09-20T19:47:07Z","git_url":"git://github.com/InVisionApp/kit-deploymentizer.git","ssh_url":"git@github.com:InVisionApp/kit-deploymentizer.git","clone_url":"https://github.com/InVisionApp/kit-deploymentizer.git","svn_url":"https://github.com/InVisionApp/kit-deploymentizer","homepage":"","size":240,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20"},"html":{"href":"https://github.com/InVisionApp/kit-deploymentizer/pull/20"},"issue":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/20"},"comments":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/InVisionApp/kit-deploymentizer/statuses/55c9db5cafbedcb13b5fa8a1f2cfa0d4afe53d17"}}}}
{"actor":{"display_login":"chesleybrown"}}