{"action":"opened","number":5786,"pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/5786","id":177300690,"html_url":"https://github.com/WordPress/gutenberg/pull/5786","diff_url":"https://github.com/WordPress/gutenberg/pull/5786.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/5786.patch","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5786","number":5786,"state":"open","locked":false,"title":"Properly detect NVM path on macOS using homebrew","user":{"login":"gravityrail","id":51896,"avatar_url":"https://avatars0.githubusercontent.com/u/51896?v=4","gravatar_id":"","url":"https://api.github.com/users/gravityrail","html_url":"https://github.com/gravityrail","followers_url":"https://api.github.com/users/gravityrail/followers","following_url":"https://api.github.com/users/gravityrail/following{/other_user}","gists_url":"https://api.github.com/users/gravityrail/gists{/gist_id}","starred_url":"https://api.github.com/users/gravityrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravityrail/subscriptions","organizations_url":"https://api.github.com/users/gravityrail/orgs","repos_url":"https://api.github.com/users/gravityrail/repos","events_url":"https://api.github.com/users/gravityrail/events{/privacy}","received_events_url":"https://api.github.com/users/gravityrail/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nWhen attempting to build the plugin on macOS, I encountered the following error:\r\n\r\n```\r\n(path to plugins)/gutenberg (master)$ ./bin/setup-local-env.sh\r\n./bin/install-node-nvm.sh: line 13: /Users/me/.nvm/nvm.sh: No such file or directory\r\n```\r\n\r\nBy detecting homebrew and using the `--prefix` command, we can find the true path to nvm.sh on macOS systems.\r\n\r\n## How Has This Been Tested?\r\nBy running ./bin/setup-local-env.sh and seeing that it completes without error. Hopefully my `else` clause allows this to work properly on Linux machines, which I have NOT tested.\r\n\r\n## Types of changes\r\nCheck for `brew` command and use to find `nvm.sh`\r\n\r\n## Checklist:\r\n- [x] My code is tested.\r\n- [x] My code follows the WordPress code style.\r\n- [x] My code has proper inline documentation.\r\n","created_at":"2018-03-25T17:25:30Z","updated_at":"2018-03-25T17:25:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WordPress/gutenberg/pulls/5786/commits","review_comments_url":"https://api.github.com/repos/WordPress/gutenberg/pulls/5786/comments","review_comment_url":"https://api.github.com/repos/WordPress/gutenberg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5786/comments","statuses_url":"https://api.github.com/repos/WordPress/gutenberg/statuses/e859b5e0641734383a5f00eca67673becd4823b4","head":{"label":"gravityrail:fix/nvm-osx-not-found","ref":"fix/nvm-osx-not-found","sha":"e859b5e0641734383a5f00eca67673becd4823b4","user":{"login":"gravityrail","id":51896,"avatar_url":"https://avatars0.githubusercontent.com/u/51896?v=4","gravatar_id":"","url":"https://api.github.com/users/gravityrail","html_url":"https://github.com/gravityrail","followers_url":"https://api.github.com/users/gravityrail/followers","following_url":"https://api.github.com/users/gravityrail/following{/other_user}","gists_url":"https://api.github.com/users/gravityrail/gists{/gist_id}","starred_url":"https://api.github.com/users/gravityrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravityrail/subscriptions","organizations_url":"https://api.github.com/users/gravityrail/orgs","repos_url":"https://api.github.com/users/gravityrail/repos","events_url":"https://api.github.com/users/gravityrail/events{/privacy}","received_events_url":"https://api.github.com/users/gravityrail/received_events","type":"User","site_admin":false},"repo":{"id":126720489,"name":"gutenberg","full_name":"gravityrail/gutenberg","owner":{"login":"gravityrail","id":51896,"avatar_url":"https://avatars0.githubusercontent.com/u/51896?v=4","gravatar_id":"","url":"https://api.github.com/users/gravityrail","html_url":"https://github.com/gravityrail","followers_url":"https://api.github.com/users/gravityrail/followers","following_url":"https://api.github.com/users/gravityrail/following{/other_user}","gists_url":"https://api.github.com/users/gravityrail/gists{/gist_id}","starred_url":"https://api.github.com/users/gravityrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravityrail/subscriptions","organizations_url":"https://api.github.com/users/gravityrail/orgs","repos_url":"https://api.github.com/users/gravityrail/repos","events_url":"https://api.github.com/users/gravityrail/events{/privacy}","received_events_url":"https://api.github.com/users/gravityrail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gravityrail/gutenberg","description":"Printing since 1440. Development hub for the editor focus in core. Beta plugin is available from the official WordPress repository.","fork":true,"url":"https://api.github.com/repos/gravityrail/gutenberg","forks_url":"https://api.github.com/repos/gravityrail/gutenberg/forks","keys_url":"https://api.github.com/repos/gravityrail/gutenberg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravityrail/gutenberg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravityrail/gutenberg/teams","hooks_url":"https://api.github.com/repos/gravityrail/gutenberg/hooks","issue_events_url":"https://api.github.com/repos/gravityrail/gutenberg/issues/events{/number}","events_url":"https://api.github.com/repos/gravityrail/gutenberg/events","assignees_url":"https://api.github.com/repos/gravityrail/gutenberg/assignees{/user}","branches_url":"https://api.github.com/repos/gravityrail/gutenberg/branches{/branch}","tags_url":"https://api.github.com/repos/gravityrail/gutenberg/tags","blobs_url":"https://api.github.com/repos/gravityrail/gutenberg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravityrail/gutenberg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravityrail/gutenberg/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravityrail/gutenberg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravityrail/gutenberg/statuses/{sha}","languages_url":"https://api.github.com/repos/gravityrail/gutenberg/languages","stargazers_url":"https://api.github.com/repos/gravityrail/gutenberg/stargazers","contributors_url":"https://api.github.com/repos/gravityrail/gutenberg/contributors","subscribers_url":"https://api.github.com/repos/gravityrail/gutenberg/subscribers","subscription_url":"https://api.github.com/repos/gravityrail/gutenberg/subscription","commits_url":"https://api.github.com/repos/gravityrail/gutenberg/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravityrail/gutenberg/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravityrail/gutenberg/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravityrail/gutenberg/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravityrail/gutenberg/contents/{+path}","compare_url":"https://api.github.com/repos/gravityrail/gutenberg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravityrail/gutenberg/merges","archive_url":"https://api.github.com/repos/gravityrail/gutenberg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravityrail/gutenberg/downloads","issues_url":"https://api.github.com/repos/gravityrail/gutenberg/issues{/number}","pulls_url":"https://api.github.com/repos/gravityrail/gutenberg/pulls{/number}","milestones_url":"https://api.github.com/repos/gravityrail/gutenberg/milestones{/number}","notifications_url":"https://api.github.com/repos/gravityrail/gutenberg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravityrail/gutenberg/labels{/name}","releases_url":"https://api.github.com/repos/gravityrail/gutenberg/releases{/id}","deployments_url":"https://api.github.com/repos/gravityrail/gutenberg/deployments","created_at":"2018-03-25T17:10:51Z","updated_at":"2018-03-25T17:10:56Z","pushed_at":"2018-03-25T17:22:00Z","git_url":"git://github.com/gravityrail/gutenberg.git","ssh_url":"git@github.com:gravityrail/gutenberg.git","clone_url":"https://github.com/gravityrail/gutenberg.git","svn_url":"https://github.com/gravityrail/gutenberg","homepage":"https://wordpress.org/plugins/gutenberg/ ","size":11766,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WordPress:master","ref":"master","sha":"b616d710d46516c5b252754b33d661ccb6964161","user":{"login":"WordPress","id":276006,"avatar_url":"https://avatars0.githubusercontent.com/u/276006?v=4","gravatar_id":"","url":"https://api.github.com/users/WordPress","html_url":"https://github.com/WordPress","followers_url":"https://api.github.com/users/WordPress/followers","following_url":"https://api.github.com/users/WordPress/following{/other_user}","gists_url":"https://api.github.com/users/WordPress/gists{/gist_id}","starred_url":"https://api.github.com/users/WordPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WordPress/subscriptions","organizations_url":"https://api.github.com/users/WordPress/orgs","repos_url":"https://api.github.com/users/WordPress/repos","events_url":"https://api.github.com/users/WordPress/events{/privacy}","received_events_url":"https://api.github.com/users/WordPress/received_events","type":"Organization","site_admin":false},"repo":{"id":80862584,"name":"gutenberg","full_name":"WordPress/gutenberg","owner":{"login":"WordPress","id":276006,"avatar_url":"https://avatars0.githubusercontent.com/u/276006?v=4","gravatar_id":"","url":"https://api.github.com/users/WordPress","html_url":"https://github.com/WordPress","followers_url":"https://api.github.com/users/WordPress/followers","following_url":"https://api.github.com/users/WordPress/following{/other_user}","gists_url":"https://api.github.com/users/WordPress/gists{/gist_id}","starred_url":"https://api.github.com/users/WordPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WordPress/subscriptions","organizations_url":"https://api.github.com/users/WordPress/orgs","repos_url":"https://api.github.com/users/WordPress/repos","events_url":"https://api.github.com/users/WordPress/events{/privacy}","received_events_url":"https://api.github.com/users/WordPress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WordPress/gutenberg","description":"Printing since 1440. Development hub for the editor focus in core. Beta plugin is available from the official WordPress repository.","fork":false,"url":"https://api.github.com/repos/WordPress/gutenberg","forks_url":"https://api.github.com/repos/WordPress/gutenberg/forks","keys_url":"https://api.github.com/repos/WordPress/gutenberg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WordPress/gutenberg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WordPress/gutenberg/teams","hooks_url":"https://api.github.com/repos/WordPress/gutenberg/hooks","issue_events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/events{/number}","events_url":"https://api.github.com/repos/WordPress/gutenberg/events","assignees_url":"https://api.github.com/repos/WordPress/gutenberg/assignees{/user}","branches_url":"https://api.github.com/repos/WordPress/gutenberg/branches{/branch}","tags_url":"https://api.github.com/repos/WordPress/gutenberg/tags","blobs_url":"https://api.github.com/repos/WordPress/gutenberg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WordPress/gutenberg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WordPress/gutenberg/git/refs{/sha}","trees_url":"https://api.github.com/repos/WordPress/gutenberg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WordPress/gutenberg/statuses/{sha}","languages_url":"https://api.github.com/repos/WordPress/gutenberg/languages","stargazers_url":"https://api.github.com/repos/WordPress/gutenberg/stargazers","contributors_url":"https://api.github.com/repos/WordPress/gutenberg/contributors","subscribers_url":"https://api.github.com/repos/WordPress/gutenberg/subscribers","subscription_url":"https://api.github.com/repos/WordPress/gutenberg/subscription","commits_url":"https://api.github.com/repos/WordPress/gutenberg/commits{/sha}","git_commits_url":"https://api.github.com/repos/WordPress/gutenberg/git/commits{/sha}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/comments{/number}","issue_comment_url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments{/number}","contents_url":"https://api.github.com/repos/WordPress/gutenberg/contents/{+path}","compare_url":"https://api.github.com/repos/WordPress/gutenberg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WordPress/gutenberg/merges","archive_url":"https://api.github.com/repos/WordPress/gutenberg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WordPress/gutenberg/downloads","issues_url":"https://api.github.com/repos/WordPress/gutenberg/issues{/number}","pulls_url":"https://api.github.com/repos/WordPress/gutenberg/pulls{/number}","milestones_url":"https://api.github.com/repos/WordPress/gutenberg/milestones{/number}","notifications_url":"https://api.github.com/repos/WordPress/gutenberg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WordPress/gutenberg/labels{/name}","releases_url":"https://api.github.com/repos/WordPress/gutenberg/releases{/id}","deployments_url":"https://api.github.com/repos/WordPress/gutenberg/deployments","created_at":"2017-02-03T19:34:19Z","updated_at":"2018-03-25T11:52:16Z","pushed_at":"2018-03-25T14:53:23Z","git_url":"git://github.com/WordPress/gutenberg.git","ssh_url":"git@github.com:WordPress/gutenberg.git","clone_url":"https://github.com/WordPress/gutenberg.git","svn_url":"https://github.com/WordPress/gutenberg","homepage":"https://wordpress.org/plugins/gutenberg/ ","size":11766,"stargazers_count":2177,"watchers_count":2177,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":513,"mirror_url":null,"archived":false,"open_issues_count":803,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":513,"open_issues":803,"watchers":2177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/5786"},"html":{"href":"https://github.com/WordPress/gutenberg/pull/5786"},"issue":{"href":"https://api.github.com/repos/WordPress/gutenberg/issues/5786"},"comments":{"href":"https://api.github.com/repos/WordPress/gutenberg/issues/5786/comments"},"review_comments":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/5786/comments"},"review_comment":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/5786/commits"},"statuses":{"href":"https://api.github.com/repos/WordPress/gutenberg/statuses/e859b5e0641734383a5f00eca67673becd4823b4"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":6,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"gravityrail"}}