{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/autoscaler/pulls/comments/208190063","pull_request_review_id":143947465,"id":208190063,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODE5MDA2Mw==","diff_hunk":"@@ -200,6 +200,12 @@ func (gce *GceCloudProvider) Refresh() error {\n \treturn gce.gceManager.Refresh()\n }\n \n+// GetProjectInfo returns the project id, location and cluster name.\n+func (gce *GceCloudProvider) GetProjectInfo() (projectId, location, clusterName string) {\n+\tmanager := gce.gceManager","path":"cluster-autoscaler/cloudprovider/gce/gce_cloud_provider.go","position":6,"original_position":6,"commit_id":"649bf06abda932aaefe78c6a64fb7e1d385f2198","original_commit_id":"649bf06abda932aaefe78c6a64fb7e1d385f2198","user":{"login":"krzysztof-jastrzebski","id":29974120,"node_id":"MDQ6VXNlcjI5OTc0MTIw","avatar_url":"https://avatars0.githubusercontent.com/u/29974120?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysztof-jastrzebski","html_url":"https://github.com/krzysztof-jastrzebski","followers_url":"https://api.github.com/users/krzysztof-jastrzebski/followers","following_url":"https://api.github.com/users/krzysztof-jastrzebski/following{/other_user}","gists_url":"https://api.github.com/users/krzysztof-jastrzebski/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztof-jastrzebski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztof-jastrzebski/subscriptions","organizations_url":"https://api.github.com/users/krzysztof-jastrzebski/orgs","repos_url":"https://api.github.com/users/krzysztof-jastrzebski/repos","events_url":"https://api.github.com/users/krzysztof-jastrzebski/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztof-jastrzebski/received_events","type":"User","site_admin":false},"body":"You don't need to create local variable.","created_at":"2018-08-07T11:15:21Z","updated_at":"2018-08-07T11:15:21Z","html_url":"https://github.com/kubernetes/autoscaler/pull/1114#discussion_r208190063","pull_request_url":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/autoscaler/pulls/comments/208190063"},"html":{"href":"https://github.com/kubernetes/autoscaler/pull/1114#discussion_r208190063"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114","id":206374538,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2Mzc0NTM4","html_url":"https://github.com/kubernetes/autoscaler/pull/1114","diff_url":"https://github.com/kubernetes/autoscaler/pull/1114.diff","patch_url":"https://github.com/kubernetes/autoscaler/pull/1114.patch","issue_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/1114","number":1114,"state":"open","locked":false,"title":"Add AutoscalingStatusProcessor","user":{"login":"towca","id":15177203,"node_id":"MDQ6VXNlcjE1MTc3MjAz","avatar_url":"https://avatars2.githubusercontent.com/u/15177203?v=4","gravatar_id":"","url":"https://api.github.com/users/towca","html_url":"https://github.com/towca","followers_url":"https://api.github.com/users/towca/followers","following_url":"https://api.github.com/users/towca/following{/other_user}","gists_url":"https://api.github.com/users/towca/gists{/gist_id}","starred_url":"https://api.github.com/users/towca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towca/subscriptions","organizations_url":"https://api.github.com/users/towca/orgs","repos_url":"https://api.github.com/users/towca/repos","events_url":"https://api.github.com/users/towca/events{/privacy}","received_events_url":"https://api.github.com/users/towca/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-06T11:53:06Z","updated_at":"2018-08-07T11:15:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67b839a34ac6cee4c9c5019a094bb5753d0f6e73","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":586404823,"node_id":"MDU6TGFiZWw1ODY0MDQ4MjM=","url":"https://api.github.com/repos/kubernetes/autoscaler/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":675980930,"node_id":"MDU6TGFiZWw2NzU5ODA5MzA=","url":"https://api.github.com/repos/kubernetes/autoscaler/labels/size/L","name":"size/L","color":"ee9900","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114/commits","review_comments_url":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114/comments","review_comment_url":"https://api.github.com/repos/kubernetes/autoscaler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/1114/comments","statuses_url":"https://api.github.com/repos/kubernetes/autoscaler/statuses/649bf06abda932aaefe78c6a64fb7e1d385f2198","head":{"label":"towca:feat/jtuznik/autoscaling-status-processor","ref":"feat/jtuznik/autoscaling-status-processor","sha":"649bf06abda932aaefe78c6a64fb7e1d385f2198","user":{"login":"towca","id":15177203,"node_id":"MDQ6VXNlcjE1MTc3MjAz","avatar_url":"https://avatars2.githubusercontent.com/u/15177203?v=4","gravatar_id":"","url":"https://api.github.com/users/towca","html_url":"https://github.com/towca","followers_url":"https://api.github.com/users/towca/followers","following_url":"https://api.github.com/users/towca/following{/other_user}","gists_url":"https://api.github.com/users/towca/gists{/gist_id}","starred_url":"https://api.github.com/users/towca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towca/subscriptions","organizations_url":"https://api.github.com/users/towca/orgs","repos_url":"https://api.github.com/users/towca/repos","events_url":"https://api.github.com/users/towca/events{/privacy}","received_events_url":"https://api.github.com/users/towca/received_events","type":"User","site_admin":false},"repo":{"id":139829948,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk4Mjk5NDg=","name":"autoscaler","full_name":"towca/autoscaler","owner":{"login":"towca","id":15177203,"node_id":"MDQ6VXNlcjE1MTc3MjAz","avatar_url":"https://avatars2.githubusercontent.com/u/15177203?v=4","gravatar_id":"","url":"https://api.github.com/users/towca","html_url":"https://github.com/towca","followers_url":"https://api.github.com/users/towca/followers","following_url":"https://api.github.com/users/towca/following{/other_user}","gists_url":"https://api.github.com/users/towca/gists{/gist_id}","starred_url":"https://api.github.com/users/towca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towca/subscriptions","organizations_url":"https://api.github.com/users/towca/orgs","repos_url":"https://api.github.com/users/towca/repos","events_url":"https://api.github.com/users/towca/events{/privacy}","received_events_url":"https://api.github.com/users/towca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/towca/autoscaler","description":"Autoscaling components for Kubernetes","fork":true,"url":"https://api.github.com/repos/towca/autoscaler","forks_url":"https://api.github.com/repos/towca/autoscaler/forks","keys_url":"https://api.github.com/repos/towca/autoscaler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/towca/autoscaler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/towca/autoscaler/teams","hooks_url":"https://api.github.com/repos/towca/autoscaler/hooks","issue_events_url":"https://api.github.com/repos/towca/autoscaler/issues/events{/number}","events_url":"https://api.github.com/repos/towca/autoscaler/events","assignees_url":"https://api.github.com/repos/towca/autoscaler/assignees{/user}","branches_url":"https://api.github.com/repos/towca/autoscaler/branches{/branch}","tags_url":"https://api.github.com/repos/towca/autoscaler/tags","blobs_url":"https://api.github.com/repos/towca/autoscaler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/towca/autoscaler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/towca/autoscaler/git/refs{/sha}","trees_url":"https://api.github.com/repos/towca/autoscaler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/towca/autoscaler/statuses/{sha}","languages_url":"https://api.github.com/repos/towca/autoscaler/languages","stargazers_url":"https://api.github.com/repos/towca/autoscaler/stargazers","contributors_url":"https://api.github.com/repos/towca/autoscaler/contributors","subscribers_url":"https://api.github.com/repos/towca/autoscaler/subscribers","subscription_url":"https://api.github.com/repos/towca/autoscaler/subscription","commits_url":"https://api.github.com/repos/towca/autoscaler/commits{/sha}","git_commits_url":"https://api.github.com/repos/towca/autoscaler/git/commits{/sha}","comments_url":"https://api.github.com/repos/towca/autoscaler/comments{/number}","issue_comment_url":"https://api.github.com/repos/towca/autoscaler/issues/comments{/number}","contents_url":"https://api.github.com/repos/towca/autoscaler/contents/{+path}","compare_url":"https://api.github.com/repos/towca/autoscaler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/towca/autoscaler/merges","archive_url":"https://api.github.com/repos/towca/autoscaler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/towca/autoscaler/downloads","issues_url":"https://api.github.com/repos/towca/autoscaler/issues{/number}","pulls_url":"https://api.github.com/repos/towca/autoscaler/pulls{/number}","milestones_url":"https://api.github.com/repos/towca/autoscaler/milestones{/number}","notifications_url":"https://api.github.com/repos/towca/autoscaler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/towca/autoscaler/labels{/name}","releases_url":"https://api.github.com/repos/towca/autoscaler/releases{/id}","deployments_url":"https://api.github.com/repos/towca/autoscaler/deployments","created_at":"2018-07-05T09:54:44Z","updated_at":"2018-08-06T11:49:11Z","pushed_at":"2018-08-06T13:44:31Z","git_url":"git://github.com/towca/autoscaler.git","ssh_url":"git@github.com:towca/autoscaler.git","clone_url":"https://github.com/towca/autoscaler.git","svn_url":"https://github.com/towca/autoscaler","homepage":"","size":58473,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"81a3011c72577e4bb532e323ca6a715f240b241a","user":{"login":"kubernetes","id":13629408,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI5NDA4","avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":87990209,"node_id":"MDEwOlJlcG9zaXRvcnk4Nzk5MDIwOQ==","name":"autoscaler","full_name":"kubernetes/autoscaler","owner":{"login":"kubernetes","id":13629408,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI5NDA4","avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/autoscaler","description":"Autoscaling components for Kubernetes","fork":false,"url":"https://api.github.com/repos/kubernetes/autoscaler","forks_url":"https://api.github.com/repos/kubernetes/autoscaler/forks","keys_url":"https://api.github.com/repos/kubernetes/autoscaler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/autoscaler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/autoscaler/teams","hooks_url":"https://api.github.com/repos/kubernetes/autoscaler/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/autoscaler/events","assignees_url":"https://api.github.com/repos/kubernetes/autoscaler/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/autoscaler/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/autoscaler/tags","blobs_url":"https://api.github.com/repos/kubernetes/autoscaler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/autoscaler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/autoscaler/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/autoscaler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/autoscaler/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/autoscaler/languages","stargazers_url":"https://api.github.com/repos/kubernetes/autoscaler/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/autoscaler/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/autoscaler/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/autoscaler/subscription","commits_url":"https://api.github.com/repos/kubernetes/autoscaler/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/autoscaler/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/autoscaler/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/autoscaler/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/autoscaler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/autoscaler/merges","archive_url":"https://api.github.com/repos/kubernetes/autoscaler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/autoscaler/downloads","issues_url":"https://api.github.com/repos/kubernetes/autoscaler/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/autoscaler/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/autoscaler/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/autoscaler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/autoscaler/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/autoscaler/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/autoscaler/deployments","created_at":"2017-04-12T00:03:40Z","updated_at":"2018-08-07T08:39:43Z","pushed_at":"2018-08-07T09:59:23Z","git_url":"git://github.com/kubernetes/autoscaler.git","ssh_url":"git@github.com:kubernetes/autoscaler.git","clone_url":"https://github.com/kubernetes/autoscaler.git","svn_url":"https://github.com/kubernetes/autoscaler","homepage":"","size":58496,"stargazers_count":933,"watchers_count":933,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":405,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":405,"open_issues":68,"watchers":933,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114"},"html":{"href":"https://github.com/kubernetes/autoscaler/pull/1114"},"issue":{"href":"https://api.github.com/repos/kubernetes/autoscaler/issues/1114"},"comments":{"href":"https://api.github.com/repos/kubernetes/autoscaler/issues/1114/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/autoscaler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/autoscaler/pulls/1114/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/autoscaler/statuses/649bf06abda932aaefe78c6a64fb7e1d385f2198"}},"author_association":"NONE"}}
{"actor":{"display_login":"krzysztof-jastrzebski"}}