{"action":"opened","number":397,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/397","id":94704578,"html_url":"https://github.com/ARMmbed/mbed-cli/pull/397","diff_url":"https://github.com/ARMmbed/mbed-cli/pull/397.diff","patch_url":"https://github.com/ARMmbed/mbed-cli/pull/397.patch","issue_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/397","number":397,"state":"open","locked":false,"title":"Allowing root directory configuration","user":{"login":"bridadan","id":3123977,"avatar_url":"https://avatars.githubusercontent.com/u/3123977?v=3","gravatar_id":"","url":"https://api.github.com/users/bridadan","html_url":"https://github.com/bridadan","followers_url":"https://api.github.com/users/bridadan/followers","following_url":"https://api.github.com/users/bridadan/following{/other_user}","gists_url":"https://api.github.com/users/bridadan/gists{/gist_id}","starred_url":"https://api.github.com/users/bridadan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bridadan/subscriptions","organizations_url":"https://api.github.com/users/bridadan/orgs","repos_url":"https://api.github.com/users/bridadan/repos","events_url":"https://api.github.com/users/bridadan/events{/privacy}","received_events_url":"https://api.github.com/users/bridadan/received_events","type":"User","site_admin":false},"body":"As of 1.0.0, you can no longer set the root directory of program that doesn't already have a `.mbed` file, which kind of defeats the purpose of the option :)\r\n\r\nThis patch lets all local changes to the `ROOT` config option through the config check.\r\n\r\nIt also changes the error message printed for any other variable that is trying to be modified to include this way forward.\r\n\r\nThe error before was the following:\r\n```\r\nC:\\Users\\bridan01\\Documents\\dev\\m_mbed\\mbed>mbed target K64F\r\n[mbed] ERROR: Could not find mbed program in current path \"C:\\Users\\bridan01\\Documents\\dev\\m_mbed\\mbed\".\r\n[mbed] ERROR: Change the current directory to a valid mbed program or use the '--global' option to set global configuration.\r\n```\r\n\r\nNow it is the following:\r\n```\r\nC:\\Users\\bridan01\\Documents\\dev\\m_mbed\\mbed>mbed target K64F\r\n[mbed] ERROR: Could not find mbed program in current path \"C:\\Users\\bridan01\\Documents\\dev\\m_mbed\\mbed\".\r\n[mbed] ERROR: Change the current directory to a valid mbed program, set the current directory as an mbed program with 'mbed config root .', or use the '--global' option to set global configuration.\r\n```\r\n\r\nPlease review @screamerbg ","created_at":"2016-11-21T21:55:22Z","updated_at":"2016-11-21T21:55:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/397/commits","review_comments_url":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/397/comments","review_comment_url":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/397/comments","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-cli/statuses/32f2c236cec805d80fb3a3b5a12cb0258a1276f0","head":{"label":"bridadan:fix-config-root-error","ref":"fix-config-root-error","sha":"32f2c236cec805d80fb3a3b5a12cb0258a1276f0","user":{"login":"bridadan","id":3123977,"avatar_url":"https://avatars.githubusercontent.com/u/3123977?v=3","gravatar_id":"","url":"https://api.github.com/users/bridadan","html_url":"https://github.com/bridadan","followers_url":"https://api.github.com/users/bridadan/followers","following_url":"https://api.github.com/users/bridadan/following{/other_user}","gists_url":"https://api.github.com/users/bridadan/gists{/gist_id}","starred_url":"https://api.github.com/users/bridadan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bridadan/subscriptions","organizations_url":"https://api.github.com/users/bridadan/orgs","repos_url":"https://api.github.com/users/bridadan/repos","events_url":"https://api.github.com/users/bridadan/events{/privacy}","received_events_url":"https://api.github.com/users/bridadan/received_events","type":"User","site_admin":false},"repo":{"id":64863038,"name":"mbed-cli","full_name":"bridadan/mbed-cli","owner":{"login":"bridadan","id":3123977,"avatar_url":"https://avatars.githubusercontent.com/u/3123977?v=3","gravatar_id":"","url":"https://api.github.com/users/bridadan","html_url":"https://github.com/bridadan","followers_url":"https://api.github.com/users/bridadan/followers","following_url":"https://api.github.com/users/bridadan/following{/other_user}","gists_url":"https://api.github.com/users/bridadan/gists{/gist_id}","starred_url":"https://api.github.com/users/bridadan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bridadan/subscriptions","organizations_url":"https://api.github.com/users/bridadan/orgs","repos_url":"https://api.github.com/users/bridadan/repos","events_url":"https://api.github.com/users/bridadan/events{/privacy}","received_events_url":"https://api.github.com/users/bridadan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bridadan/mbed-cli","description":"ARM mbed Command Line Interface","fork":true,"url":"https://api.github.com/repos/bridadan/mbed-cli","forks_url":"https://api.github.com/repos/bridadan/mbed-cli/forks","keys_url":"https://api.github.com/repos/bridadan/mbed-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bridadan/mbed-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bridadan/mbed-cli/teams","hooks_url":"https://api.github.com/repos/bridadan/mbed-cli/hooks","issue_events_url":"https://api.github.com/repos/bridadan/mbed-cli/issues/events{/number}","events_url":"https://api.github.com/repos/bridadan/mbed-cli/events","assignees_url":"https://api.github.com/repos/bridadan/mbed-cli/assignees{/user}","branches_url":"https://api.github.com/repos/bridadan/mbed-cli/branches{/branch}","tags_url":"https://api.github.com/repos/bridadan/mbed-cli/tags","blobs_url":"https://api.github.com/repos/bridadan/mbed-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bridadan/mbed-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bridadan/mbed-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/bridadan/mbed-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bridadan/mbed-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/bridadan/mbed-cli/languages","stargazers_url":"https://api.github.com/repos/bridadan/mbed-cli/stargazers","contributors_url":"https://api.github.com/repos/bridadan/mbed-cli/contributors","subscribers_url":"https://api.github.com/repos/bridadan/mbed-cli/subscribers","subscription_url":"https://api.github.com/repos/bridadan/mbed-cli/subscription","commits_url":"https://api.github.com/repos/bridadan/mbed-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/bridadan/mbed-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/bridadan/mbed-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/bridadan/mbed-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/bridadan/mbed-cli/contents/{+path}","compare_url":"https://api.github.com/repos/bridadan/mbed-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bridadan/mbed-cli/merges","archive_url":"https://api.github.com/repos/bridadan/mbed-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bridadan/mbed-cli/downloads","issues_url":"https://api.github.com/repos/bridadan/mbed-cli/issues{/number}","pulls_url":"https://api.github.com/repos/bridadan/mbed-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/bridadan/mbed-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/bridadan/mbed-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bridadan/mbed-cli/labels{/name}","releases_url":"https://api.github.com/repos/bridadan/mbed-cli/releases{/id}","deployments_url":"https://api.github.com/repos/bridadan/mbed-cli/deployments","created_at":"2016-08-03T16:53:37Z","updated_at":"2016-08-03T16:53:38Z","pushed_at":"2016-11-21T21:46:36Z","git_url":"git://github.com/bridadan/mbed-cli.git","ssh_url":"git@github.com:bridadan/mbed-cli.git","clone_url":"https://github.com/bridadan/mbed-cli.git","svn_url":"https://github.com/bridadan/mbed-cli","homepage":"https://developer.mbed.org","size":552,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"ARMmbed:master","ref":"master","sha":"e25da20743223be4781318dc96c3696aa1728270","user":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars.githubusercontent.com/u/8916057?v=3","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"repo":{"id":55262718,"name":"mbed-cli","full_name":"ARMmbed/mbed-cli","owner":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars.githubusercontent.com/u/8916057?v=3","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARMmbed/mbed-cli","description":"ARM mbed Command Line Interface","fork":false,"url":"https://api.github.com/repos/ARMmbed/mbed-cli","forks_url":"https://api.github.com/repos/ARMmbed/mbed-cli/forks","keys_url":"https://api.github.com/repos/ARMmbed/mbed-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARMmbed/mbed-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARMmbed/mbed-cli/teams","hooks_url":"https://api.github.com/repos/ARMmbed/mbed-cli/hooks","issue_events_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ARMmbed/mbed-cli/events","assignees_url":"https://api.github.com/repos/ARMmbed/mbed-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ARMmbed/mbed-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ARMmbed/mbed-cli/tags","blobs_url":"https://api.github.com/repos/ARMmbed/mbed-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARMmbed/mbed-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARMmbed/mbed-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARMmbed/mbed-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ARMmbed/mbed-cli/languages","stargazers_url":"https://api.github.com/repos/ARMmbed/mbed-cli/stargazers","contributors_url":"https://api.github.com/repos/ARMmbed/mbed-cli/contributors","subscribers_url":"https://api.github.com/repos/ARMmbed/mbed-cli/subscribers","subscription_url":"https://api.github.com/repos/ARMmbed/mbed-cli/subscription","commits_url":"https://api.github.com/repos/ARMmbed/mbed-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARMmbed/mbed-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARMmbed/mbed-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ARMmbed/mbed-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARMmbed/mbed-cli/merges","archive_url":"https://api.github.com/repos/ARMmbed/mbed-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARMmbed/mbed-cli/downloads","issues_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ARMmbed/mbed-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ARMmbed/mbed-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARMmbed/mbed-cli/labels{/name}","releases_url":"https://api.github.com/repos/ARMmbed/mbed-cli/releases{/id}","deployments_url":"https://api.github.com/repos/ARMmbed/mbed-cli/deployments","created_at":"2016-04-01T21:13:26Z","updated_at":"2016-11-21T01:44:49Z","pushed_at":"2016-11-21T16:23:02Z","git_url":"git://github.com/ARMmbed/mbed-cli.git","ssh_url":"git@github.com:ARMmbed/mbed-cli.git","clone_url":"https://github.com/ARMmbed/mbed-cli.git","svn_url":"https://github.com/ARMmbed/mbed-cli","homepage":"https://developer.mbed.org","size":853,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":47,"forks":15,"open_issues":47,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/397"},"html":{"href":"https://github.com/ARMmbed/mbed-cli/pull/397"},"issue":{"href":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/397"},"comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/397/comments"},"review_comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/397/comments"},"review_comment":{"href":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARMmbed/mbed-cli/pulls/397/commits"},"statuses":{"href":"https://api.github.com/repos/ARMmbed/mbed-cli/statuses/32f2c236cec805d80fb3a3b5a12cb0258a1276f0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"bridadan"}}