{"action":"closed","number":219,"pull_request":{"url":"https://api.github.com/repos/depcheck/depcheck/pulls/219","id":134279607,"node_id":"MDExOlB1bGxSZXF1ZXN0MTM0Mjc5NjA3","html_url":"https://github.com/depcheck/depcheck/pull/219","diff_url":"https://github.com/depcheck/depcheck/pull/219.diff","patch_url":"https://github.com/depcheck/depcheck/pull/219.patch","issue_url":"https://api.github.com/repos/depcheck/depcheck/issues/219","number":219,"state":"closed","locked":false,"title":"Friendly error messages for node < 4","user":{"login":"sudo-suhas","id":22251956,"node_id":"MDQ6VXNlcjIyMjUxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/22251956?v=4","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"body":"This sets up `please-upgrade-node` for bin executable to show friendly message to the user suggesting node upgrade instead of showing a stack trace:\r\n```shell\r\nλ node --version\r\nv0.12.18\r\n\r\n# BEFORE\r\nλ node .\\bin\\depcheck\r\nE:\\Projects\\repos\\depcheck\\node_modules\\yargs\\node_modules\\camelcase\\index.js:4\r\n        let isLastCharLower = false;\r\n        ^^^\r\nSyntaxError: Unexpected strict mode reserved word\r\n    at exports.runInThisContext (vm.js:73:16)\r\n    at Module._compile (module.js:443:25)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (E:\\Projects\\repos\\depcheck\\node_modules\\yargs\\lib\\command.js:3:19)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n\r\n# AFTER\r\nλ node .\\bin\\depcheck\r\ndepcheck requires at least version 4 of Node, please upgrade\r\n```\r\n","created_at":"2017-08-05T04:54:04Z","updated_at":"2018-09-10T04:28:33Z","closed_at":"2018-09-10T04:28:33Z","merged_at":"2018-09-10T04:28:33Z","merge_commit_sha":"8e32807d6336d59918bb771a35a89bf5ebbd3c77","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/depcheck/depcheck/pulls/219/commits","review_comments_url":"https://api.github.com/repos/depcheck/depcheck/pulls/219/comments","review_comment_url":"https://api.github.com/repos/depcheck/depcheck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/depcheck/depcheck/issues/219/comments","statuses_url":"https://api.github.com/repos/depcheck/depcheck/statuses/d15f2e09ab18dc7383ad31e7183751ce50da3f9e","head":{"label":"sudo-suhas:feat-please-upgrade-node","ref":"feat-please-upgrade-node","sha":"d15f2e09ab18dc7383ad31e7183751ce50da3f9e","user":{"login":"sudo-suhas","id":22251956,"node_id":"MDQ6VXNlcjIyMjUxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/22251956?v=4","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"repo":{"id":97549448,"node_id":"MDEwOlJlcG9zaXRvcnk5NzU0OTQ0OA==","name":"depcheck","full_name":"sudo-suhas/depcheck","owner":{"login":"sudo-suhas","id":22251956,"node_id":"MDQ6VXNlcjIyMjUxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/22251956?v=4","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudo-suhas/depcheck","description":"Check your npm module for unused dependencies","fork":true,"url":"https://api.github.com/repos/sudo-suhas/depcheck","forks_url":"https://api.github.com/repos/sudo-suhas/depcheck/forks","keys_url":"https://api.github.com/repos/sudo-suhas/depcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudo-suhas/depcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudo-suhas/depcheck/teams","hooks_url":"https://api.github.com/repos/sudo-suhas/depcheck/hooks","issue_events_url":"https://api.github.com/repos/sudo-suhas/depcheck/issues/events{/number}","events_url":"https://api.github.com/repos/sudo-suhas/depcheck/events","assignees_url":"https://api.github.com/repos/sudo-suhas/depcheck/assignees{/user}","branches_url":"https://api.github.com/repos/sudo-suhas/depcheck/branches{/branch}","tags_url":"https://api.github.com/repos/sudo-suhas/depcheck/tags","blobs_url":"https://api.github.com/repos/sudo-suhas/depcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudo-suhas/depcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudo-suhas/depcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudo-suhas/depcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudo-suhas/depcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/sudo-suhas/depcheck/languages","stargazers_url":"https://api.github.com/repos/sudo-suhas/depcheck/stargazers","contributors_url":"https://api.github.com/repos/sudo-suhas/depcheck/contributors","subscribers_url":"https://api.github.com/repos/sudo-suhas/depcheck/subscribers","subscription_url":"https://api.github.com/repos/sudo-suhas/depcheck/subscription","commits_url":"https://api.github.com/repos/sudo-suhas/depcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudo-suhas/depcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudo-suhas/depcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudo-suhas/depcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudo-suhas/depcheck/contents/{+path}","compare_url":"https://api.github.com/repos/sudo-suhas/depcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudo-suhas/depcheck/merges","archive_url":"https://api.github.com/repos/sudo-suhas/depcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudo-suhas/depcheck/downloads","issues_url":"https://api.github.com/repos/sudo-suhas/depcheck/issues{/number}","pulls_url":"https://api.github.com/repos/sudo-suhas/depcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/sudo-suhas/depcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/sudo-suhas/depcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudo-suhas/depcheck/labels{/name}","releases_url":"https://api.github.com/repos/sudo-suhas/depcheck/releases{/id}","deployments_url":"https://api.github.com/repos/sudo-suhas/depcheck/deployments","created_at":"2017-07-18T03:41:29Z","updated_at":"2017-07-18T03:41:31Z","pushed_at":"2018-09-10T04:12:51Z","git_url":"git://github.com/sudo-suhas/depcheck.git","ssh_url":"git@github.com:sudo-suhas/depcheck.git","clone_url":"https://github.com/sudo-suhas/depcheck.git","svn_url":"https://github.com/sudo-suhas/depcheck","homepage":"","size":605,"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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"depcheck:master","ref":"master","sha":"a5fea700a888e169f1d1f0e94eea71ac5caaac77","user":{"login":"depcheck","id":15626953,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NjI2OTUz","avatar_url":"https://avatars3.githubusercontent.com/u/15626953?v=4","gravatar_id":"","url":"https://api.github.com/users/depcheck","html_url":"https://github.com/depcheck","followers_url":"https://api.github.com/users/depcheck/followers","following_url":"https://api.github.com/users/depcheck/following{/other_user}","gists_url":"https://api.github.com/users/depcheck/gists{/gist_id}","starred_url":"https://api.github.com/users/depcheck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/depcheck/subscriptions","organizations_url":"https://api.github.com/users/depcheck/orgs","repos_url":"https://api.github.com/users/depcheck/repos","events_url":"https://api.github.com/users/depcheck/events{/privacy}","received_events_url":"https://api.github.com/users/depcheck/received_events","type":"Organization","site_admin":false},"repo":{"id":12973222,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk3MzIyMg==","name":"depcheck","full_name":"depcheck/depcheck","owner":{"login":"depcheck","id":15626953,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NjI2OTUz","avatar_url":"https://avatars3.githubusercontent.com/u/15626953?v=4","gravatar_id":"","url":"https://api.github.com/users/depcheck","html_url":"https://github.com/depcheck","followers_url":"https://api.github.com/users/depcheck/followers","following_url":"https://api.github.com/users/depcheck/following{/other_user}","gists_url":"https://api.github.com/users/depcheck/gists{/gist_id}","starred_url":"https://api.github.com/users/depcheck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/depcheck/subscriptions","organizations_url":"https://api.github.com/users/depcheck/orgs","repos_url":"https://api.github.com/users/depcheck/repos","events_url":"https://api.github.com/users/depcheck/events{/privacy}","received_events_url":"https://api.github.com/users/depcheck/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/depcheck/depcheck","description":"Check your npm module for unused dependencies","fork":false,"url":"https://api.github.com/repos/depcheck/depcheck","forks_url":"https://api.github.com/repos/depcheck/depcheck/forks","keys_url":"https://api.github.com/repos/depcheck/depcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/depcheck/depcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/depcheck/depcheck/teams","hooks_url":"https://api.github.com/repos/depcheck/depcheck/hooks","issue_events_url":"https://api.github.com/repos/depcheck/depcheck/issues/events{/number}","events_url":"https://api.github.com/repos/depcheck/depcheck/events","assignees_url":"https://api.github.com/repos/depcheck/depcheck/assignees{/user}","branches_url":"https://api.github.com/repos/depcheck/depcheck/branches{/branch}","tags_url":"https://api.github.com/repos/depcheck/depcheck/tags","blobs_url":"https://api.github.com/repos/depcheck/depcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/depcheck/depcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/depcheck/depcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/depcheck/depcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/depcheck/depcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/depcheck/depcheck/languages","stargazers_url":"https://api.github.com/repos/depcheck/depcheck/stargazers","contributors_url":"https://api.github.com/repos/depcheck/depcheck/contributors","subscribers_url":"https://api.github.com/repos/depcheck/depcheck/subscribers","subscription_url":"https://api.github.com/repos/depcheck/depcheck/subscription","commits_url":"https://api.github.com/repos/depcheck/depcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/depcheck/depcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/depcheck/depcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/depcheck/depcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/depcheck/depcheck/contents/{+path}","compare_url":"https://api.github.com/repos/depcheck/depcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/depcheck/depcheck/merges","archive_url":"https://api.github.com/repos/depcheck/depcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/depcheck/depcheck/downloads","issues_url":"https://api.github.com/repos/depcheck/depcheck/issues{/number}","pulls_url":"https://api.github.com/repos/depcheck/depcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/depcheck/depcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/depcheck/depcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/depcheck/depcheck/labels{/name}","releases_url":"https://api.github.com/repos/depcheck/depcheck/releases{/id}","deployments_url":"https://api.github.com/repos/depcheck/depcheck/deployments","created_at":"2013-09-20T12:47:55Z","updated_at":"2018-09-09T22:42:54Z","pushed_at":"2018-09-10T04:28:33Z","git_url":"git://github.com/depcheck/depcheck.git","ssh_url":"git@github.com:depcheck/depcheck.git","clone_url":"https://github.com/depcheck/depcheck.git","svn_url":"https://github.com/depcheck/depcheck","homepage":"","size":612,"stargazers_count":988,"watchers_count":988,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":null,"archived":false,"open_issues_count":59,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":77,"open_issues":59,"watchers":988,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/depcheck/depcheck/pulls/219"},"html":{"href":"https://github.com/depcheck/depcheck/pull/219"},"issue":{"href":"https://api.github.com/repos/depcheck/depcheck/issues/219"},"comments":{"href":"https://api.github.com/repos/depcheck/depcheck/issues/219/comments"},"review_comments":{"href":"https://api.github.com/repos/depcheck/depcheck/pulls/219/comments"},"review_comment":{"href":"https://api.github.com/repos/depcheck/depcheck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/depcheck/depcheck/pulls/219/commits"},"statuses":{"href":"https://api.github.com/repos/depcheck/depcheck/statuses/d15f2e09ab18dc7383ad31e7183751ce50da3f9e"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mnkhouri","id":6535396,"node_id":"MDQ6VXNlcjY1MzUzOTY=","avatar_url":"https://avatars0.githubusercontent.com/u/6535396?v=4","gravatar_id":"","url":"https://api.github.com/users/mnkhouri","html_url":"https://github.com/mnkhouri","followers_url":"https://api.github.com/users/mnkhouri/followers","following_url":"https://api.github.com/users/mnkhouri/following{/other_user}","gists_url":"https://api.github.com/users/mnkhouri/gists{/gist_id}","starred_url":"https://api.github.com/users/mnkhouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnkhouri/subscriptions","organizations_url":"https://api.github.com/users/mnkhouri/orgs","repos_url":"https://api.github.com/users/mnkhouri/repos","events_url":"https://api.github.com/users/mnkhouri/events{/privacy}","received_events_url":"https://api.github.com/users/mnkhouri/received_events","type":"User","site_admin":false},"comments":9,"review_comments":2,"maintainer_can_modify":false,"commits":2,"additions":42,"deletions":12,"changed_files":3}}
{"actor":{"display_login":"mnkhouri"}}