{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/origin/pulls/comments/34515571","id":34515571,"diff_hunk":"@@ -227,6 +227,11 @@ func (o ProjectOptions) RunProject() error {\n \t\t}\n \t} else {\n \t\tfmt.Fprintf(out, \"Now using project %q on server %q.\\n\", namespaceInUse, clientCfg.Host)\n+\n+\t\t// This means that we've just created a new project stanza.  take this opportunity to suggest oc status.\n+\t\tif contextNameIsGenerated {\n+\t\t\tfmt.Fprintln(out, \"See more about your project using 'oc status'.\")","path":"pkg/cmd/cli/cmd/project.go","position":7,"original_position":7,"commit_id":"bf1b65679ae7d4ed5fff9e4d771ca957c3ab7355","original_commit_id":"bf1b65679ae7d4ed5fff9e4d771ca957c3ab7355","user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"body":"You can cheat and say \"using the 'status' command\"\n\nOn Mon, Jul 13, 2015 at 2:37 PM, David Eads <notifications@github.com>\nwrote:\n\n> In pkg/cmd/cli/cmd/project.go\n> <https://github.com/openshift/origin/pull/3630#discussion_r34495913>:\n>\n> > @@ -227,6 +227,11 @@ func (o ProjectOptions) RunProject() error {\n> >  \t\t}\n> >  \t} else {\n> >  \t\tfmt.Fprintf(out, \"Now using project %q on server %q.\\n\", namespaceInUse, clientCfg.Host)\n> > +\n> > +\t\t// This means that we've just created a new project stanza.  take this opportunity to suggest oc status.\n> > +\t\tif contextNameIsGenerated {\n> > +\t\t\tfmt.Fprintln(out, \"See more about your project using 'oc status'.\")\n>\n> @smarterclayton <https://github.com/smarterclayton> some discussion about\n> trying to pass a proper name all the way through: #3630 (comment)\n> <https://github.com/openshift/origin/pull/3630#discussion_r34242336> . Is\n> it valuable enough to do? It feel a little weird to plumb it all the way\n> through into an Options style object. Constant for the preferred name?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/openshift/origin/pull/3630/files#r34495913>.\n>\n\n\n\n-- \nClayton Coleman | Lead Engineer, OpenShift\n","created_at":"2015-07-13T21:42:09Z","updated_at":"2015-07-13T21:42:09Z","html_url":"https://github.com/openshift/origin/pull/3630#discussion_r34515571","pull_request_url":"https://api.github.com/repos/openshift/origin/pulls/3630","_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments/34515571"},"html":{"href":"https://github.com/openshift/origin/pull/3630#discussion_r34515571"},"pull_request":{"href":"https://api.github.com/repos/openshift/origin/pulls/3630"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/3630","id":39500752,"html_url":"https://github.com/openshift/origin/pull/3630","diff_url":"https://github.com/openshift/origin/pull/3630.diff","patch_url":"https://github.com/openshift/origin/pull/3630.patch","issue_url":"https://api.github.com/repos/openshift/origin/issues/3630","number":3630,"state":"open","locked":false,"title":"oc project suggest oc status when new stanza created","user":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"body":"When a new context  stanza is created in `~/.kube/config` using `oc project` (or derivatives like `oc new-project`), the output suggests using `oc status` to take a look at your project.  \r\n\r\n`oc new-app` ends with a suggestion to look at `oc status` to see your app.\r\n\r\nHopefully these will help people find `oc status` which will also help them figure out when their builds or deployments aren't working how they want.\r\n\r\n```\r\n[deads@deads-dev-01 origin]$ oc new-project bar\r\nNow using project \"bar\" on server \"https://localhost:8443\".\r\nSee more about your project using `oc status`.\r\n```\r\n\r\n```\r\n[deads@deads-dev-01 origin]$ oc new-app https://github.com/openshift/ruby-hello-world -l app=ruby\r\nimagestreams/ruby-20-centos7\r\nimagestreams/ruby-hello-world\r\nbuildconfigs/ruby-hello-world\r\ndeploymentconfigs/ruby-hello-world\r\nservices/ruby-hello-world\r\nA build was created - you can run `oc start-build ruby-hello-world` to start it.\r\nService \"ruby-hello-world\" created at 172.30.212.160 with port mappings 8080.\r\nRun 'oc status' to view your app.\r\n```\r\n\r\n@ncdc ","created_at":"2015-07-08T17:13:30Z","updated_at":"2015-07-13T21:42:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cab76efeea97daf70c8d1a5f1579b8ba34fd5223","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin/pulls/3630/commits","review_comments_url":"https://api.github.com/repos/openshift/origin/pulls/3630/comments","review_comment_url":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin/issues/3630/comments","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/bf1b65679ae7d4ed5fff9e4d771ca957c3ab7355","head":{"label":"deads2k:suggest-oc-status","ref":"suggest-oc-status","sha":"bf1b65679ae7d4ed5fff9e4d771ca957c3ab7355","user":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"repo":{"id":24424126,"name":"origin","full_name":"deads2k/origin","owner":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deads2k/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":true,"url":"https://api.github.com/repos/deads2k/origin","forks_url":"https://api.github.com/repos/deads2k/origin/forks","keys_url":"https://api.github.com/repos/deads2k/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deads2k/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deads2k/origin/teams","hooks_url":"https://api.github.com/repos/deads2k/origin/hooks","issue_events_url":"https://api.github.com/repos/deads2k/origin/issues/events{/number}","events_url":"https://api.github.com/repos/deads2k/origin/events","assignees_url":"https://api.github.com/repos/deads2k/origin/assignees{/user}","branches_url":"https://api.github.com/repos/deads2k/origin/branches{/branch}","tags_url":"https://api.github.com/repos/deads2k/origin/tags","blobs_url":"https://api.github.com/repos/deads2k/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deads2k/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deads2k/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/deads2k/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deads2k/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/deads2k/origin/languages","stargazers_url":"https://api.github.com/repos/deads2k/origin/stargazers","contributors_url":"https://api.github.com/repos/deads2k/origin/contributors","subscribers_url":"https://api.github.com/repos/deads2k/origin/subscribers","subscription_url":"https://api.github.com/repos/deads2k/origin/subscription","commits_url":"https://api.github.com/repos/deads2k/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/deads2k/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/deads2k/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/deads2k/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/deads2k/origin/contents/{+path}","compare_url":"https://api.github.com/repos/deads2k/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deads2k/origin/merges","archive_url":"https://api.github.com/repos/deads2k/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deads2k/origin/downloads","issues_url":"https://api.github.com/repos/deads2k/origin/issues{/number}","pulls_url":"https://api.github.com/repos/deads2k/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/deads2k/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/deads2k/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deads2k/origin/labels{/name}","releases_url":"https://api.github.com/repos/deads2k/origin/releases{/id}","created_at":"2014-09-24T17:02:12Z","updated_at":"2015-05-08T15:45:28Z","pushed_at":"2015-07-13T19:57:37Z","git_url":"git://github.com/deads2k/origin.git","ssh_url":"git@github.com:deads2k/origin.git","clone_url":"https://github.com/deads2k/origin.git","svn_url":"https://github.com/deads2k/origin","homepage":"https://openshift.github.io","size":123565,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"a3f775b9b39e14802e2ba7ead5001cec712702dd","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":22442668,"name":"origin","full_name":"openshift/origin","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":false,"url":"https://api.github.com/repos/openshift/origin","forks_url":"https://api.github.com/repos/openshift/origin/forks","keys_url":"https://api.github.com/repos/openshift/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin/teams","hooks_url":"https://api.github.com/repos/openshift/origin/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin/events","assignees_url":"https://api.github.com/repos/openshift/origin/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin/tags","blobs_url":"https://api.github.com/repos/openshift/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin/languages","stargazers_url":"https://api.github.com/repos/openshift/origin/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin/subscription","commits_url":"https://api.github.com/repos/openshift/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin/merges","archive_url":"https://api.github.com/repos/openshift/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin/downloads","issues_url":"https://api.github.com/repos/openshift/origin/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin/releases{/id}","created_at":"2014-07-30T20:04:05Z","updated_at":"2015-07-13T18:17:23Z","pushed_at":"2015-07-13T21:31:25Z","git_url":"git://github.com/openshift/origin.git","ssh_url":"git@github.com:openshift/origin.git","clone_url":"https://github.com/openshift/origin.git","svn_url":"https://github.com/openshift/origin","homepage":"http://www.openshift.org","size":202110,"stargazers_count":544,"watchers_count":544,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":293,"mirror_url":null,"open_issues_count":412,"forks":293,"open_issues":412,"watchers":544,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/3630"},"html":{"href":"https://github.com/openshift/origin/pull/3630"},"issue":{"href":"https://api.github.com/repos/openshift/origin/issues/3630"},"comments":{"href":"https://api.github.com/repos/openshift/origin/issues/3630/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin/pulls/3630/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin/pulls/3630/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin/statuses/bf1b65679ae7d4ed5fff9e4d771ca957c3ab7355"}}}}