{"action":"opened","number":5694,"pull_request":{"url":"https://api.github.com/repos/yarnpkg/yarn/pulls/5694","id":182307026,"html_url":"https://github.com/yarnpkg/yarn/pull/5694","diff_url":"https://github.com/yarnpkg/yarn/pull/5694.diff","patch_url":"https://github.com/yarnpkg/yarn/pull/5694.patch","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/5694","number":5694,"state":"open","locked":false,"title":"fix run non-interactive prompts and error","user":{"login":"peijiesim","id":16813185,"avatar_url":"https://avatars1.githubusercontent.com/u/16813185?v=4","gravatar_id":"","url":"https://api.github.com/users/peijiesim","html_url":"https://github.com/peijiesim","followers_url":"https://api.github.com/users/peijiesim/followers","following_url":"https://api.github.com/users/peijiesim/following{/other_user}","gists_url":"https://api.github.com/users/peijiesim/gists{/gist_id}","starred_url":"https://api.github.com/users/peijiesim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peijiesim/subscriptions","organizations_url":"https://api.github.com/users/peijiesim/orgs","repos_url":"https://api.github.com/users/peijiesim/repos","events_url":"https://api.github.com/users/peijiesim/events{/privacy}","received_events_url":"https://api.github.com/users/peijiesim/received_events","type":"User","site_admin":false},"body":"**Summary**\r\n\r\nThis pr fixes a bug in which `yarn run --non-interactive` prints a `Error: No command specified` message and also suppresses the message `question Which command would you like to run?:` when running non-interactively. \r\n\r\n**Test plan**\r\n\r\n```\r\n> yarn-local run --non-interactive\r\nyarn run v1.6.0\r\ninfo Commands available from binary scripts: acorn, atob, babylon, browserslist, commitizen, detect-libc, errno, escodegen, esgenerate, eslint, esparse, esvalidate, flow, git-cz, git-release-notes, gulp, gunzip-maybe, handlebars, import-local-fixture, jest, jest-runtime, js-yaml, jsesc, jsinspect, json5, loose-envify, miller-rabin, mkdirp, node-pre-gyp, nopt, prettier, rc, regjsparser, rimraf, sane, semver, sha.js, shjs, sshpk-conv, sshpk-sign, sshpk-verify, strip-indent, strip-json-comments, uglifyjs, user-home, uuid, watch, webpack, which\r\ninfo Project commands\r\n   - build\r\n      gulp build\r\n   - build-bundle\r\n      node ./scripts/build-webpack.js\r\n   - build-chocolatey\r\n      powershell ./scripts/build-chocolatey.ps1\r\n   - build-deb\r\n      ./scripts/build-deb.sh\r\n   - build-dist\r\n      bash ./scripts/build-dist.sh\r\n   - build-win-installer\r\n      scripts\\build-windows-installer.bat\r\n   - changelog\r\n      git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md\r\n   - commit\r\n      git-cz\r\n   - dupe-check\r\n      yarn jsinspect ./src\r\n   - lint\r\n      eslint . && flow check\r\n   - pkg-tests\r\n      yarn --cwd packages/pkg-tests jest yarn.test.js\r\n   - prettier\r\n      eslint src __tests__ --fix\r\n   - release-branch\r\n      ./scripts/release-branch.sh\r\n   - test\r\n      yarn lint && yarn test-only\r\n   - test-coverage\r\n      node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose\r\n   - test-only\r\n      node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose\r\n   - watch\r\n      gulp watch\r\n✨  Done in 0.28s.\r\n```\r\n","created_at":"2018-04-17T21:43:09Z","updated_at":"2018-04-17T21:43:09Z","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/yarnpkg/yarn/pulls/5694/commits","review_comments_url":"https://api.github.com/repos/yarnpkg/yarn/pulls/5694/comments","review_comment_url":"https://api.github.com/repos/yarnpkg/yarn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/5694/comments","statuses_url":"https://api.github.com/repos/yarnpkg/yarn/statuses/20c929842e9a845838de14e56843775d9887c2a3","head":{"label":"peijiesim:pj","ref":"pj","sha":"20c929842e9a845838de14e56843775d9887c2a3","user":{"login":"peijiesim","id":16813185,"avatar_url":"https://avatars1.githubusercontent.com/u/16813185?v=4","gravatar_id":"","url":"https://api.github.com/users/peijiesim","html_url":"https://github.com/peijiesim","followers_url":"https://api.github.com/users/peijiesim/followers","following_url":"https://api.github.com/users/peijiesim/following{/other_user}","gists_url":"https://api.github.com/users/peijiesim/gists{/gist_id}","starred_url":"https://api.github.com/users/peijiesim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peijiesim/subscriptions","organizations_url":"https://api.github.com/users/peijiesim/orgs","repos_url":"https://api.github.com/users/peijiesim/repos","events_url":"https://api.github.com/users/peijiesim/events{/privacy}","received_events_url":"https://api.github.com/users/peijiesim/received_events","type":"User","site_admin":false},"repo":{"id":129959108,"name":"yarn","full_name":"peijiesim/yarn","owner":{"login":"peijiesim","id":16813185,"avatar_url":"https://avatars1.githubusercontent.com/u/16813185?v=4","gravatar_id":"","url":"https://api.github.com/users/peijiesim","html_url":"https://github.com/peijiesim","followers_url":"https://api.github.com/users/peijiesim/followers","following_url":"https://api.github.com/users/peijiesim/following{/other_user}","gists_url":"https://api.github.com/users/peijiesim/gists{/gist_id}","starred_url":"https://api.github.com/users/peijiesim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peijiesim/subscriptions","organizations_url":"https://api.github.com/users/peijiesim/orgs","repos_url":"https://api.github.com/users/peijiesim/repos","events_url":"https://api.github.com/users/peijiesim/events{/privacy}","received_events_url":"https://api.github.com/users/peijiesim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peijiesim/yarn","description":"📦🐈 Fast, reliable, and secure dependency management.","fork":true,"url":"https://api.github.com/repos/peijiesim/yarn","forks_url":"https://api.github.com/repos/peijiesim/yarn/forks","keys_url":"https://api.github.com/repos/peijiesim/yarn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peijiesim/yarn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peijiesim/yarn/teams","hooks_url":"https://api.github.com/repos/peijiesim/yarn/hooks","issue_events_url":"https://api.github.com/repos/peijiesim/yarn/issues/events{/number}","events_url":"https://api.github.com/repos/peijiesim/yarn/events","assignees_url":"https://api.github.com/repos/peijiesim/yarn/assignees{/user}","branches_url":"https://api.github.com/repos/peijiesim/yarn/branches{/branch}","tags_url":"https://api.github.com/repos/peijiesim/yarn/tags","blobs_url":"https://api.github.com/repos/peijiesim/yarn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peijiesim/yarn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peijiesim/yarn/git/refs{/sha}","trees_url":"https://api.github.com/repos/peijiesim/yarn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peijiesim/yarn/statuses/{sha}","languages_url":"https://api.github.com/repos/peijiesim/yarn/languages","stargazers_url":"https://api.github.com/repos/peijiesim/yarn/stargazers","contributors_url":"https://api.github.com/repos/peijiesim/yarn/contributors","subscribers_url":"https://api.github.com/repos/peijiesim/yarn/subscribers","subscription_url":"https://api.github.com/repos/peijiesim/yarn/subscription","commits_url":"https://api.github.com/repos/peijiesim/yarn/commits{/sha}","git_commits_url":"https://api.github.com/repos/peijiesim/yarn/git/commits{/sha}","comments_url":"https://api.github.com/repos/peijiesim/yarn/comments{/number}","issue_comment_url":"https://api.github.com/repos/peijiesim/yarn/issues/comments{/number}","contents_url":"https://api.github.com/repos/peijiesim/yarn/contents/{+path}","compare_url":"https://api.github.com/repos/peijiesim/yarn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peijiesim/yarn/merges","archive_url":"https://api.github.com/repos/peijiesim/yarn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peijiesim/yarn/downloads","issues_url":"https://api.github.com/repos/peijiesim/yarn/issues{/number}","pulls_url":"https://api.github.com/repos/peijiesim/yarn/pulls{/number}","milestones_url":"https://api.github.com/repos/peijiesim/yarn/milestones{/number}","notifications_url":"https://api.github.com/repos/peijiesim/yarn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peijiesim/yarn/labels{/name}","releases_url":"https://api.github.com/repos/peijiesim/yarn/releases{/id}","deployments_url":"https://api.github.com/repos/peijiesim/yarn/deployments","created_at":"2018-04-17T20:08:50Z","updated_at":"2018-04-17T20:08:57Z","pushed_at":"2018-04-17T21:38:25Z","git_url":"git://github.com/peijiesim/yarn.git","ssh_url":"git@github.com:peijiesim/yarn.git","clone_url":"https://github.com/peijiesim/yarn.git","svn_url":"https://github.com/peijiesim/yarn","homepage":"https://yarnpkg.com","size":115487,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"yarnpkg:master","ref":"master","sha":"bf05ad36cfc00073cc424e046b71d75eabd863cb","user":{"login":"yarnpkg","id":22247014,"avatar_url":"https://avatars3.githubusercontent.com/u/22247014?v=4","gravatar_id":"","url":"https://api.github.com/users/yarnpkg","html_url":"https://github.com/yarnpkg","followers_url":"https://api.github.com/users/yarnpkg/followers","following_url":"https://api.github.com/users/yarnpkg/following{/other_user}","gists_url":"https://api.github.com/users/yarnpkg/gists{/gist_id}","starred_url":"https://api.github.com/users/yarnpkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarnpkg/subscriptions","organizations_url":"https://api.github.com/users/yarnpkg/orgs","repos_url":"https://api.github.com/users/yarnpkg/repos","events_url":"https://api.github.com/users/yarnpkg/events{/privacy}","received_events_url":"https://api.github.com/users/yarnpkg/received_events","type":"Organization","site_admin":false},"repo":{"id":49970642,"name":"yarn","full_name":"yarnpkg/yarn","owner":{"login":"yarnpkg","id":22247014,"avatar_url":"https://avatars3.githubusercontent.com/u/22247014?v=4","gravatar_id":"","url":"https://api.github.com/users/yarnpkg","html_url":"https://github.com/yarnpkg","followers_url":"https://api.github.com/users/yarnpkg/followers","following_url":"https://api.github.com/users/yarnpkg/following{/other_user}","gists_url":"https://api.github.com/users/yarnpkg/gists{/gist_id}","starred_url":"https://api.github.com/users/yarnpkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarnpkg/subscriptions","organizations_url":"https://api.github.com/users/yarnpkg/orgs","repos_url":"https://api.github.com/users/yarnpkg/repos","events_url":"https://api.github.com/users/yarnpkg/events{/privacy}","received_events_url":"https://api.github.com/users/yarnpkg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yarnpkg/yarn","description":"📦🐈 Fast, reliable, and secure dependency management.","fork":false,"url":"https://api.github.com/repos/yarnpkg/yarn","forks_url":"https://api.github.com/repos/yarnpkg/yarn/forks","keys_url":"https://api.github.com/repos/yarnpkg/yarn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yarnpkg/yarn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yarnpkg/yarn/teams","hooks_url":"https://api.github.com/repos/yarnpkg/yarn/hooks","issue_events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/events{/number}","events_url":"https://api.github.com/repos/yarnpkg/yarn/events","assignees_url":"https://api.github.com/repos/yarnpkg/yarn/assignees{/user}","branches_url":"https://api.github.com/repos/yarnpkg/yarn/branches{/branch}","tags_url":"https://api.github.com/repos/yarnpkg/yarn/tags","blobs_url":"https://api.github.com/repos/yarnpkg/yarn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yarnpkg/yarn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yarnpkg/yarn/git/refs{/sha}","trees_url":"https://api.github.com/repos/yarnpkg/yarn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yarnpkg/yarn/statuses/{sha}","languages_url":"https://api.github.com/repos/yarnpkg/yarn/languages","stargazers_url":"https://api.github.com/repos/yarnpkg/yarn/stargazers","contributors_url":"https://api.github.com/repos/yarnpkg/yarn/contributors","subscribers_url":"https://api.github.com/repos/yarnpkg/yarn/subscribers","subscription_url":"https://api.github.com/repos/yarnpkg/yarn/subscription","commits_url":"https://api.github.com/repos/yarnpkg/yarn/commits{/sha}","git_commits_url":"https://api.github.com/repos/yarnpkg/yarn/git/commits{/sha}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/comments{/number}","issue_comment_url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments{/number}","contents_url":"https://api.github.com/repos/yarnpkg/yarn/contents/{+path}","compare_url":"https://api.github.com/repos/yarnpkg/yarn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yarnpkg/yarn/merges","archive_url":"https://api.github.com/repos/yarnpkg/yarn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yarnpkg/yarn/downloads","issues_url":"https://api.github.com/repos/yarnpkg/yarn/issues{/number}","pulls_url":"https://api.github.com/repos/yarnpkg/yarn/pulls{/number}","milestones_url":"https://api.github.com/repos/yarnpkg/yarn/milestones{/number}","notifications_url":"https://api.github.com/repos/yarnpkg/yarn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yarnpkg/yarn/labels{/name}","releases_url":"https://api.github.com/repos/yarnpkg/yarn/releases{/id}","deployments_url":"https://api.github.com/repos/yarnpkg/yarn/deployments","created_at":"2016-01-19T17:39:16Z","updated_at":"2018-04-17T21:23:10Z","pushed_at":"2018-04-17T16:56:12Z","git_url":"git://github.com/yarnpkg/yarn.git","ssh_url":"git@github.com:yarnpkg/yarn.git","clone_url":"https://github.com/yarnpkg/yarn.git","svn_url":"https://github.com/yarnpkg/yarn","homepage":"https://yarnpkg.com","size":115487,"stargazers_count":31232,"watchers_count":31232,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1726,"mirror_url":null,"archived":false,"open_issues_count":1112,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1726,"open_issues":1112,"watchers":31232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/5694"},"html":{"href":"https://github.com/yarnpkg/yarn/pull/5694"},"issue":{"href":"https://api.github.com/repos/yarnpkg/yarn/issues/5694"},"comments":{"href":"https://api.github.com/repos/yarnpkg/yarn/issues/5694/comments"},"review_comments":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/5694/comments"},"review_comment":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/5694/commits"},"statuses":{"href":"https://api.github.com/repos/yarnpkg/yarn/statuses/20c929842e9a845838de14e56843775d9887c2a3"}},"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":8,"deletions":19,"changed_files":3}}
{"actor":{"display_login":"peijiesim"}}