{"action":"created","comment":{"url":"https://api.github.com/repos/redhat-developer/odo/pulls/comments/207956901","pull_request_review_id":143672668,"id":207956901,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzk1NjkwMQ==","diff_hunk":"@@ -171,9 +166,20 @@ A full list of component types that can be deployed is available using: 'odo com\n \t\t\tfmt.Printf(\"Please wait, creating %s component ...\\n\", componentName)\n \t\t\terr = component.Build(client, componentName, applicationName, false, true, stdout)\n \t\t\tcheckError(err, \"\")\n-\t\t\tfmt.Printf(\"Component '%s' was created.\\n\", componentName)\n-\t\t\tfmt.Printf(\"To push source code to the component run 'odo push'\\n\")\n \t\t}\n+\n+\t\tports, err := component.GetComponentPorts(client, componentName, applicationName)\n+\t\tcheckError(err, \"\")\n+\t\tfmt.Printf(\"Component '%s' was created\", componentName)\n+\n+\t\tif len(ports) > 1 {\n+\t\t\tfmt.Printf(\" and ports %s were opened\\n\", strings.Join(ports, \",\"))\n+\t\t} else if len(ports) == 1 {\n+\t\t\tfmt.Printf(\" and port %s was opened\\n\", ports[0])\n+\t\t}\n+\n+\t\tfmt.Printf(\"To push source code to the component run 'odo push'\\n\")","path":"cmd/create.go","position":44,"original_position":44,"commit_id":"554465a33fff3931b455a884875fcb64e1ac65c8","original_commit_id":"554465a33fff3931b455a884875fcb64e1ac65c8","user":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"body":"Ack","created_at":"2018-08-06T16:42:22Z","updated_at":"2018-08-06T16:42:23Z","html_url":"https://github.com/redhat-developer/odo/pull/610#discussion_r207956901","pull_request_url":"https://api.github.com/repos/redhat-developer/odo/pulls/610","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/comments/207956901"},"html":{"href":"https://github.com/redhat-developer/odo/pull/610#discussion_r207956901"},"pull_request":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/610"}},"in_reply_to_id":207826474},"pull_request":{"url":"https://api.github.com/repos/redhat-developer/odo/pulls/610","id":205357264,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1MzU3MjY0","html_url":"https://github.com/redhat-developer/odo/pull/610","diff_url":"https://github.com/redhat-developer/odo/pull/610.diff","patch_url":"https://github.com/redhat-developer/odo/pull/610.patch","issue_url":"https://api.github.com/repos/redhat-developer/odo/issues/610","number":610,"state":"open","locked":false,"title":"Add information about ports to `odo create` output","user":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"body":"This PR adds message of the form:\r\n\"Component $componentName was created and ports $containerPort/$containerProtocol,.... were opened.\"\r\n\r\nfixes #608\r\nSigned-off-by: anmolbabu <anmolbudugutta@gmail.com>","created_at":"2018-08-01T09:09:46Z","updated_at":"2018-08-06T16:42:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dca8f1500804eea97cf533d1c7100c337eea1c9e","assignee":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"assignees":[{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"syamgk","id":5830238,"node_id":"MDQ6VXNlcjU4MzAyMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/5830238?v=4","gravatar_id":"","url":"https://api.github.com/users/syamgk","html_url":"https://github.com/syamgk","followers_url":"https://api.github.com/users/syamgk/followers","following_url":"https://api.github.com/users/syamgk/following{/other_user}","gists_url":"https://api.github.com/users/syamgk/gists{/gist_id}","starred_url":"https://api.github.com/users/syamgk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syamgk/subscriptions","organizations_url":"https://api.github.com/users/syamgk/orgs","repos_url":"https://api.github.com/users/syamgk/repos","events_url":"https://api.github.com/users/syamgk/events{/privacy}","received_events_url":"https://api.github.com/users/syamgk/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/redhat-developer/odo/pulls/610/commits","review_comments_url":"https://api.github.com/repos/redhat-developer/odo/pulls/610/comments","review_comment_url":"https://api.github.com/repos/redhat-developer/odo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhat-developer/odo/issues/610/comments","statuses_url":"https://api.github.com/repos/redhat-developer/odo/statuses/554465a33fff3931b455a884875fcb64e1ac65c8","head":{"label":"anmolbabu:issue#608","ref":"issue#608","sha":"554465a33fff3931b455a884875fcb64e1ac65c8","user":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"repo":{"id":141098025,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEwOTgwMjU=","name":"odo","full_name":"anmolbabu/odo","owner":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anmolbabu/odo","description":"OpenShift Command line for Developers","fork":true,"url":"https://api.github.com/repos/anmolbabu/odo","forks_url":"https://api.github.com/repos/anmolbabu/odo/forks","keys_url":"https://api.github.com/repos/anmolbabu/odo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anmolbabu/odo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anmolbabu/odo/teams","hooks_url":"https://api.github.com/repos/anmolbabu/odo/hooks","issue_events_url":"https://api.github.com/repos/anmolbabu/odo/issues/events{/number}","events_url":"https://api.github.com/repos/anmolbabu/odo/events","assignees_url":"https://api.github.com/repos/anmolbabu/odo/assignees{/user}","branches_url":"https://api.github.com/repos/anmolbabu/odo/branches{/branch}","tags_url":"https://api.github.com/repos/anmolbabu/odo/tags","blobs_url":"https://api.github.com/repos/anmolbabu/odo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anmolbabu/odo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anmolbabu/odo/git/refs{/sha}","trees_url":"https://api.github.com/repos/anmolbabu/odo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anmolbabu/odo/statuses/{sha}","languages_url":"https://api.github.com/repos/anmolbabu/odo/languages","stargazers_url":"https://api.github.com/repos/anmolbabu/odo/stargazers","contributors_url":"https://api.github.com/repos/anmolbabu/odo/contributors","subscribers_url":"https://api.github.com/repos/anmolbabu/odo/subscribers","subscription_url":"https://api.github.com/repos/anmolbabu/odo/subscription","commits_url":"https://api.github.com/repos/anmolbabu/odo/commits{/sha}","git_commits_url":"https://api.github.com/repos/anmolbabu/odo/git/commits{/sha}","comments_url":"https://api.github.com/repos/anmolbabu/odo/comments{/number}","issue_comment_url":"https://api.github.com/repos/anmolbabu/odo/issues/comments{/number}","contents_url":"https://api.github.com/repos/anmolbabu/odo/contents/{+path}","compare_url":"https://api.github.com/repos/anmolbabu/odo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anmolbabu/odo/merges","archive_url":"https://api.github.com/repos/anmolbabu/odo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anmolbabu/odo/downloads","issues_url":"https://api.github.com/repos/anmolbabu/odo/issues{/number}","pulls_url":"https://api.github.com/repos/anmolbabu/odo/pulls{/number}","milestones_url":"https://api.github.com/repos/anmolbabu/odo/milestones{/number}","notifications_url":"https://api.github.com/repos/anmolbabu/odo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anmolbabu/odo/labels{/name}","releases_url":"https://api.github.com/repos/anmolbabu/odo/releases{/id}","deployments_url":"https://api.github.com/repos/anmolbabu/odo/deployments","created_at":"2018-07-16T06:50:21Z","updated_at":"2018-07-16T06:50:23Z","pushed_at":"2018-08-06T13:19:21Z","git_url":"git://github.com/anmolbabu/odo.git","ssh_url":"git@github.com:anmolbabu/odo.git","clone_url":"https://github.com/anmolbabu/odo.git","svn_url":"https://github.com/anmolbabu/odo","homepage":"","size":77329,"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":"redhat-developer:master","ref":"master","sha":"7b67c7f9866ea66d1e6c11130d768d37db5d4544","user":{"login":"redhat-developer","id":11033755,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDMzNzU1","avatar_url":"https://avatars0.githubusercontent.com/u/11033755?v=4","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"repo":{"id":118630356,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg2MzAzNTY=","name":"odo","full_name":"redhat-developer/odo","owner":{"login":"redhat-developer","id":11033755,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDMzNzU1","avatar_url":"https://avatars0.githubusercontent.com/u/11033755?v=4","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redhat-developer/odo","description":"OpenShift Command line for Developers","fork":false,"url":"https://api.github.com/repos/redhat-developer/odo","forks_url":"https://api.github.com/repos/redhat-developer/odo/forks","keys_url":"https://api.github.com/repos/redhat-developer/odo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhat-developer/odo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhat-developer/odo/teams","hooks_url":"https://api.github.com/repos/redhat-developer/odo/hooks","issue_events_url":"https://api.github.com/repos/redhat-developer/odo/issues/events{/number}","events_url":"https://api.github.com/repos/redhat-developer/odo/events","assignees_url":"https://api.github.com/repos/redhat-developer/odo/assignees{/user}","branches_url":"https://api.github.com/repos/redhat-developer/odo/branches{/branch}","tags_url":"https://api.github.com/repos/redhat-developer/odo/tags","blobs_url":"https://api.github.com/repos/redhat-developer/odo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhat-developer/odo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhat-developer/odo/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhat-developer/odo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhat-developer/odo/statuses/{sha}","languages_url":"https://api.github.com/repos/redhat-developer/odo/languages","stargazers_url":"https://api.github.com/repos/redhat-developer/odo/stargazers","contributors_url":"https://api.github.com/repos/redhat-developer/odo/contributors","subscribers_url":"https://api.github.com/repos/redhat-developer/odo/subscribers","subscription_url":"https://api.github.com/repos/redhat-developer/odo/subscription","commits_url":"https://api.github.com/repos/redhat-developer/odo/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhat-developer/odo/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhat-developer/odo/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhat-developer/odo/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhat-developer/odo/contents/{+path}","compare_url":"https://api.github.com/repos/redhat-developer/odo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhat-developer/odo/merges","archive_url":"https://api.github.com/repos/redhat-developer/odo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhat-developer/odo/downloads","issues_url":"https://api.github.com/repos/redhat-developer/odo/issues{/number}","pulls_url":"https://api.github.com/repos/redhat-developer/odo/pulls{/number}","milestones_url":"https://api.github.com/repos/redhat-developer/odo/milestones{/number}","notifications_url":"https://api.github.com/repos/redhat-developer/odo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhat-developer/odo/labels{/name}","releases_url":"https://api.github.com/repos/redhat-developer/odo/releases{/id}","deployments_url":"https://api.github.com/repos/redhat-developer/odo/deployments","created_at":"2018-01-23T15:36:17Z","updated_at":"2018-08-06T07:11:46Z","pushed_at":"2018-08-06T13:32:14Z","git_url":"git://github.com/redhat-developer/odo.git","ssh_url":"git@github.com:redhat-developer/odo.git","clone_url":"https://github.com/redhat-developer/odo.git","svn_url":"https://github.com/redhat-developer/odo","homepage":"","size":77315,"stargazers_count":49,"watchers_count":49,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":25,"mirror_url":null,"archived":false,"open_issues_count":123,"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":25,"open_issues":123,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/610"},"html":{"href":"https://github.com/redhat-developer/odo/pull/610"},"issue":{"href":"https://api.github.com/repos/redhat-developer/odo/issues/610"},"comments":{"href":"https://api.github.com/repos/redhat-developer/odo/issues/610/comments"},"review_comments":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/610/comments"},"review_comment":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/610/commits"},"statuses":{"href":"https://api.github.com/repos/redhat-developer/odo/statuses/554465a33fff3931b455a884875fcb64e1ac65c8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"anmolbabu"}}