{"action":"created","comment":{"url":"https://api.github.com/repos/pulumi/pulumi/pulls/comments/227521432","pull_request_review_id":167582928,"id":227521432,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzUyMTQzMg==","diff_hunk":"@@ -204,3 +203,49 @@ func createTestRepo(e *ptesting.Environment) {\n \te.RunCommand(\"git\", \"branch\", \"my/content\")\n \te.RunCommand(\"git\", \"tag\", \"my\")\n }\n+\n+func TestTryGetVCSInfoFromSSHRemote(t *testing.T) {","path":"pkg/util/gitutil/git_test.go","position":16,"original_position":16,"commit_id":"36b4a64b244d0acc34f84a049c8b2b254591dff8","original_commit_id":"36b4a64b244d0acc34f84a049c8b2b254591dff8","user":{"login":"praneetloke","id":1466314,"node_id":"MDQ6VXNlcjE0NjYzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1466314?v=4","gravatar_id":"","url":"https://api.github.com/users/praneetloke","html_url":"https://github.com/praneetloke","followers_url":"https://api.github.com/users/praneetloke/followers","following_url":"https://api.github.com/users/praneetloke/following{/other_user}","gists_url":"https://api.github.com/users/praneetloke/gists{/gist_id}","starred_url":"https://api.github.com/users/praneetloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praneetloke/subscriptions","organizations_url":"https://api.github.com/users/praneetloke/orgs","repos_url":"https://api.github.com/users/praneetloke/repos","events_url":"https://api.github.com/users/praneetloke/events{/privacy}","received_events_url":"https://api.github.com/users/praneetloke/received_events","type":"User","site_admin":false},"body":"I like this. I'll make this change.","created_at":"2018-10-23T18:53:56Z","updated_at":"2018-10-23T18:53:56Z","html_url":"https://github.com/pulumi/pulumi/pull/2090#discussion_r227521432","pull_request_url":"https://api.github.com/repos/pulumi/pulumi/pulls/2090","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/comments/227521432"},"html":{"href":"https://github.com/pulumi/pulumi/pull/2090#discussion_r227521432"},"pull_request":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/2090"}},"in_reply_to_id":227466598},"pull_request":{"url":"https://api.github.com/repos/pulumi/pulumi/pulls/2090","id":224802210,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODAyMjEw","html_url":"https://github.com/pulumi/pulumi/pull/2090","diff_url":"https://github.com/pulumi/pulumi/pull/2090.diff","patch_url":"https://github.com/pulumi/pulumi/pull/2090.patch","issue_url":"https://api.github.com/repos/pulumi/pulumi/issues/2090","number":2090,"state":"open","locked":false,"title":"Add gitlab metadata - Part 1","user":{"login":"praneetloke","id":1466314,"node_id":"MDQ6VXNlcjE0NjYzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1466314?v=4","gravatar_id":"","url":"https://api.github.com/users/praneetloke","html_url":"https://github.com/praneetloke","followers_url":"https://api.github.com/users/praneetloke/followers","following_url":"https://api.github.com/users/praneetloke/following{/other_user}","gists_url":"https://api.github.com/users/praneetloke/gists{/gist_id}","starred_url":"https://api.github.com/users/praneetloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praneetloke/subscriptions","organizations_url":"https://api.github.com/users/praneetloke/orgs","repos_url":"https://api.github.com/users/praneetloke/repos","events_url":"https://api.github.com/users/praneetloke/events{/privacy}","received_events_url":"https://api.github.com/users/praneetloke/received_events","type":"User","site_admin":false},"body":"**Note**: Do not merge yet.\r\n\r\n- Fix #2063 \r\n- Added new stack tag constants for GitLab, as well as added new keys for use with `UpdateMetadata`.\r\n- Refactored some of the logic around git repo detection and how we extract metadata from the repo.\r\n- Updated the stack tag manipulation code to use the new way of working with the git repo instead of calling the all encompassing `GetGitHubProjectForOrigin` func from `util/gitutil/git.go`, which always assumed GitHub as the cloud source control provider.\r\n- Also, note that this is just the first part of the change to show metadata for gitlab. The UI needs to be updated to use the metadata keys to build the necessary URLs.","created_at":"2018-10-22T20:23:18Z","updated_at":"2018-10-23T18:53:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4809542643ac5e3121e02e2d79547c174e075aff","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pulumi/pulumi/pulls/2090/commits","review_comments_url":"https://api.github.com/repos/pulumi/pulumi/pulls/2090/comments","review_comment_url":"https://api.github.com/repos/pulumi/pulumi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulumi/pulumi/issues/2090/comments","statuses_url":"https://api.github.com/repos/pulumi/pulumi/statuses/36b4a64b244d0acc34f84a049c8b2b254591dff8","head":{"label":"pulumi:features/praneetloke/gitlabmetadata","ref":"features/praneetloke/gitlabmetadata","sha":"36b4a64b244d0acc34f84a049c8b2b254591dff8","user":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"repo":{"id":72477752,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQ3Nzc1Mg==","name":"pulumi","full_name":"pulumi/pulumi","private":false,"owner":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pulumi/pulumi","description":"Pulumi is an SDK for cloud native infrastructure as code. Use your favorite language to deploy apps and infrastructure to any cloud, no YAML required.","fork":false,"url":"https://api.github.com/repos/pulumi/pulumi","forks_url":"https://api.github.com/repos/pulumi/pulumi/forks","keys_url":"https://api.github.com/repos/pulumi/pulumi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulumi/pulumi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulumi/pulumi/teams","hooks_url":"https://api.github.com/repos/pulumi/pulumi/hooks","issue_events_url":"https://api.github.com/repos/pulumi/pulumi/issues/events{/number}","events_url":"https://api.github.com/repos/pulumi/pulumi/events","assignees_url":"https://api.github.com/repos/pulumi/pulumi/assignees{/user}","branches_url":"https://api.github.com/repos/pulumi/pulumi/branches{/branch}","tags_url":"https://api.github.com/repos/pulumi/pulumi/tags","blobs_url":"https://api.github.com/repos/pulumi/pulumi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulumi/pulumi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulumi/pulumi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulumi/pulumi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulumi/pulumi/statuses/{sha}","languages_url":"https://api.github.com/repos/pulumi/pulumi/languages","stargazers_url":"https://api.github.com/repos/pulumi/pulumi/stargazers","contributors_url":"https://api.github.com/repos/pulumi/pulumi/contributors","subscribers_url":"https://api.github.com/repos/pulumi/pulumi/subscribers","subscription_url":"https://api.github.com/repos/pulumi/pulumi/subscription","commits_url":"https://api.github.com/repos/pulumi/pulumi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulumi/pulumi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulumi/pulumi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulumi/pulumi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulumi/pulumi/contents/{+path}","compare_url":"https://api.github.com/repos/pulumi/pulumi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulumi/pulumi/merges","archive_url":"https://api.github.com/repos/pulumi/pulumi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulumi/pulumi/downloads","issues_url":"https://api.github.com/repos/pulumi/pulumi/issues{/number}","pulls_url":"https://api.github.com/repos/pulumi/pulumi/pulls{/number}","milestones_url":"https://api.github.com/repos/pulumi/pulumi/milestones{/number}","notifications_url":"https://api.github.com/repos/pulumi/pulumi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulumi/pulumi/labels{/name}","releases_url":"https://api.github.com/repos/pulumi/pulumi/releases{/id}","deployments_url":"https://api.github.com/repos/pulumi/pulumi/deployments","created_at":"2016-10-31T21:02:47Z","updated_at":"2018-10-23T17:23:33Z","pushed_at":"2018-10-23T17:23:31Z","git_url":"git://github.com/pulumi/pulumi.git","ssh_url":"git@github.com:pulumi/pulumi.git","clone_url":"https://github.com/pulumi/pulumi.git","svn_url":"https://github.com/pulumi/pulumi","homepage":"https://pulumi.io","size":19357,"stargazers_count":1537,"watchers_count":1537,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"archived":false,"open_issues_count":272,"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":59,"open_issues":272,"watchers":1537,"default_branch":"master"}},"base":{"label":"pulumi:master","ref":"master","sha":"f465fc0a489e69a6aa4409f148016570c645d20e","user":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"repo":{"id":72477752,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQ3Nzc1Mg==","name":"pulumi","full_name":"pulumi/pulumi","private":false,"owner":{"login":"pulumi","id":21992475,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTkyNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/21992475?v=4","gravatar_id":"","url":"https://api.github.com/users/pulumi","html_url":"https://github.com/pulumi","followers_url":"https://api.github.com/users/pulumi/followers","following_url":"https://api.github.com/users/pulumi/following{/other_user}","gists_url":"https://api.github.com/users/pulumi/gists{/gist_id}","starred_url":"https://api.github.com/users/pulumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulumi/subscriptions","organizations_url":"https://api.github.com/users/pulumi/orgs","repos_url":"https://api.github.com/users/pulumi/repos","events_url":"https://api.github.com/users/pulumi/events{/privacy}","received_events_url":"https://api.github.com/users/pulumi/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pulumi/pulumi","description":"Pulumi is an SDK for cloud native infrastructure as code. Use your favorite language to deploy apps and infrastructure to any cloud, no YAML required.","fork":false,"url":"https://api.github.com/repos/pulumi/pulumi","forks_url":"https://api.github.com/repos/pulumi/pulumi/forks","keys_url":"https://api.github.com/repos/pulumi/pulumi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulumi/pulumi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulumi/pulumi/teams","hooks_url":"https://api.github.com/repos/pulumi/pulumi/hooks","issue_events_url":"https://api.github.com/repos/pulumi/pulumi/issues/events{/number}","events_url":"https://api.github.com/repos/pulumi/pulumi/events","assignees_url":"https://api.github.com/repos/pulumi/pulumi/assignees{/user}","branches_url":"https://api.github.com/repos/pulumi/pulumi/branches{/branch}","tags_url":"https://api.github.com/repos/pulumi/pulumi/tags","blobs_url":"https://api.github.com/repos/pulumi/pulumi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulumi/pulumi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulumi/pulumi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulumi/pulumi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulumi/pulumi/statuses/{sha}","languages_url":"https://api.github.com/repos/pulumi/pulumi/languages","stargazers_url":"https://api.github.com/repos/pulumi/pulumi/stargazers","contributors_url":"https://api.github.com/repos/pulumi/pulumi/contributors","subscribers_url":"https://api.github.com/repos/pulumi/pulumi/subscribers","subscription_url":"https://api.github.com/repos/pulumi/pulumi/subscription","commits_url":"https://api.github.com/repos/pulumi/pulumi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulumi/pulumi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulumi/pulumi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulumi/pulumi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulumi/pulumi/contents/{+path}","compare_url":"https://api.github.com/repos/pulumi/pulumi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulumi/pulumi/merges","archive_url":"https://api.github.com/repos/pulumi/pulumi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulumi/pulumi/downloads","issues_url":"https://api.github.com/repos/pulumi/pulumi/issues{/number}","pulls_url":"https://api.github.com/repos/pulumi/pulumi/pulls{/number}","milestones_url":"https://api.github.com/repos/pulumi/pulumi/milestones{/number}","notifications_url":"https://api.github.com/repos/pulumi/pulumi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulumi/pulumi/labels{/name}","releases_url":"https://api.github.com/repos/pulumi/pulumi/releases{/id}","deployments_url":"https://api.github.com/repos/pulumi/pulumi/deployments","created_at":"2016-10-31T21:02:47Z","updated_at":"2018-10-23T17:23:33Z","pushed_at":"2018-10-23T17:23:31Z","git_url":"git://github.com/pulumi/pulumi.git","ssh_url":"git@github.com:pulumi/pulumi.git","clone_url":"https://github.com/pulumi/pulumi.git","svn_url":"https://github.com/pulumi/pulumi","homepage":"https://pulumi.io","size":19357,"stargazers_count":1537,"watchers_count":1537,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"archived":false,"open_issues_count":272,"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":59,"open_issues":272,"watchers":1537,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/2090"},"html":{"href":"https://github.com/pulumi/pulumi/pull/2090"},"issue":{"href":"https://api.github.com/repos/pulumi/pulumi/issues/2090"},"comments":{"href":"https://api.github.com/repos/pulumi/pulumi/issues/2090/comments"},"review_comments":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/2090/comments"},"review_comment":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulumi/pulumi/pulls/2090/commits"},"statuses":{"href":"https://api.github.com/repos/pulumi/pulumi/statuses/36b4a64b244d0acc34f84a049c8b2b254591dff8"}},"author_association":"NONE"}}
{"actor":{"display_login":"praneetloke"}}