{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/10485","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/10485/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/10485/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/10485/events","html_url":"https://github.com/openshift/origin/pull/10485","id":171678904,"number":10485,"title":"return error in `oc set env RESOURCE` when no env args are provided","user":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-17T14:54:26Z","updated_at":"2016-08-17T15:52:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/10485","html_url":"https://github.com/openshift/origin/pull/10485","diff_url":"https://github.com/openshift/origin/pull/10485.diff","patch_url":"https://github.com/openshift/origin/pull/10485.patch"},"body":"Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1366559\r\n\r\nThe command `oc set RESOURCE` prompts a user that the resource has been\r\nupdated even when no other args are provided:\r\n\r\n```\r\n$ oc set env dc/database\r\ndeploymentconfig \"database\" updated\r\n```\r\n\r\nThis patch makes sure that at least one pair of environment variable\r\narguments are passed before returning a successful message:\r\n\r\n```\r\n$ oc set env dc/database\r\nerror: at least one environment variable must be provided in the form of\r\nKEY=VALUE\r\n```\r\n\r\ncc @fabianofranz "},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/240456835","html_url":"https://github.com/openshift/origin/pull/10485#issuecomment-240456835","issue_url":"https://api.github.com/repos/openshift/origin/issues/10485","id":240456835,"user":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T15:52:26Z","updated_at":"2016-08-17T15:52:26Z","body":"[test]"}}
{"actor":{"display_login":"juanvallejo"}}