{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/np/pulls/comments/64533309","id":64533309,"diff_hunk":"@@ -0,0 +1,42 @@\n+'use strict';\n+var semver = require('semver');\n+var execa = require('execa');\n+var del = require('del');\n+\n+var exec = function (cmd, args) {\n+\tconst result = execa.sync(cmd, args);\n+\n+\tif (result.stderr !== '') {\n+\t\tthrow new Error(result.stderr);\n+\t}\n+\n+\treturn result.stdout;\n+};\n+\n+module.exports = function (input) {\n+\tinput = input || 'patch';\n+\n+\tif (['patch', 'minor', 'major'].indexOf(input) === -1 && !semver.valid(input)) {\n+\t\tthrow new Error('Invalid version.');","path":"index.js","position":20,"original_position":20,"commit_id":"229d92c3dd320f703b1c064516b496f8a381fcff","original_commit_id":"229d92c3dd320f703b1c064516b496f8a381fcff","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"> Version should be either path, minor, major, or a valid semver version","created_at":"2016-05-25T08:27:28Z","updated_at":"2016-05-25T08:27:28Z","html_url":"https://github.com/sindresorhus/np/pull/24#discussion_r64533309","pull_request_url":"https://api.github.com/repos/sindresorhus/np/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/np/pulls/comments/64533309"},"html":{"href":"https://github.com/sindresorhus/np/pull/24#discussion_r64533309"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/np/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/np/pulls/24","id":71341786,"html_url":"https://github.com/sindresorhus/np/pull/24","diff_url":"https://github.com/sindresorhus/np/pull/24.diff","patch_url":"https://github.com/sindresorhus/np/pull/24.patch","issue_url":"https://api.github.com/repos/sindresorhus/np/issues/24","number":24,"state":"open","locked":false,"title":"nodeify","user":{"login":"SamVerschueren","id":1913805,"avatar_url":"https://avatars.githubusercontent.com/u/1913805?v=3","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"body":"Rewrote the module with Node. Any feedback is welcome. It's untested at the moment as I don't have a module at this time that should be released.\r\n\r\nShould we drop 0.12 and 0.10?\r\n\r\nCan you enable travis for this module?","created_at":"2016-05-25T07:24:29Z","updated_at":"2016-05-25T08:27:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"623b7e0bd51d1abcbe79413609f1d492010cf5b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/np/pulls/24/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/np/pulls/24/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/np/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/np/issues/24/comments","statuses_url":"https://api.github.com/repos/sindresorhus/np/statuses/229d92c3dd320f703b1c064516b496f8a381fcff","head":{"label":"sindresorhus:nodeify","ref":"nodeify","sha":"229d92c3dd320f703b1c064516b496f8a381fcff","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":40806530,"name":"np","full_name":"sindresorhus/np","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/np","description":"A better `npm publish`","fork":false,"url":"https://api.github.com/repos/sindresorhus/np","forks_url":"https://api.github.com/repos/sindresorhus/np/forks","keys_url":"https://api.github.com/repos/sindresorhus/np/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/np/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/np/teams","hooks_url":"https://api.github.com/repos/sindresorhus/np/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/np/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/np/events","assignees_url":"https://api.github.com/repos/sindresorhus/np/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/np/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/np/tags","blobs_url":"https://api.github.com/repos/sindresorhus/np/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/np/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/np/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/np/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/np/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/np/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/np/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/np/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/np/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/np/subscription","commits_url":"https://api.github.com/repos/sindresorhus/np/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/np/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/np/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/np/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/np/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/np/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/np/merges","archive_url":"https://api.github.com/repos/sindresorhus/np/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/np/downloads","issues_url":"https://api.github.com/repos/sindresorhus/np/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/np/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/np/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/np/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/np/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/np/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/np/deployments","created_at":"2015-08-16T09:06:06Z","updated_at":"2016-05-24T15:08:02Z","pushed_at":"2016-05-25T07:37:20Z","git_url":"git://github.com/sindresorhus/np.git","ssh_url":"git@github.com:sindresorhus/np.git","clone_url":"https://github.com/sindresorhus/np.git","svn_url":"https://github.com/sindresorhus/np","homepage":null,"size":17,"stargazers_count":229,"watchers_count":229,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":8,"forks":9,"open_issues":8,"watchers":229,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"d6a221c7e41fc77a9d1bc24d7425c8b85058a888","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":40806530,"name":"np","full_name":"sindresorhus/np","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/np","description":"A better `npm publish`","fork":false,"url":"https://api.github.com/repos/sindresorhus/np","forks_url":"https://api.github.com/repos/sindresorhus/np/forks","keys_url":"https://api.github.com/repos/sindresorhus/np/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/np/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/np/teams","hooks_url":"https://api.github.com/repos/sindresorhus/np/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/np/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/np/events","assignees_url":"https://api.github.com/repos/sindresorhus/np/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/np/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/np/tags","blobs_url":"https://api.github.com/repos/sindresorhus/np/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/np/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/np/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/np/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/np/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/np/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/np/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/np/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/np/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/np/subscription","commits_url":"https://api.github.com/repos/sindresorhus/np/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/np/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/np/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/np/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/np/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/np/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/np/merges","archive_url":"https://api.github.com/repos/sindresorhus/np/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/np/downloads","issues_url":"https://api.github.com/repos/sindresorhus/np/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/np/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/np/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/np/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/np/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/np/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/np/deployments","created_at":"2015-08-16T09:06:06Z","updated_at":"2016-05-24T15:08:02Z","pushed_at":"2016-05-25T07:37:20Z","git_url":"git://github.com/sindresorhus/np.git","ssh_url":"git@github.com:sindresorhus/np.git","clone_url":"https://github.com/sindresorhus/np.git","svn_url":"https://github.com/sindresorhus/np","homepage":null,"size":17,"stargazers_count":229,"watchers_count":229,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":8,"forks":9,"open_issues":8,"watchers":229,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/np/pulls/24"},"html":{"href":"https://github.com/sindresorhus/np/pull/24"},"issue":{"href":"https://api.github.com/repos/sindresorhus/np/issues/24"},"comments":{"href":"https://api.github.com/repos/sindresorhus/np/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/np/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/np/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/np/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/np/statuses/229d92c3dd320f703b1c064516b496f8a381fcff"}}}}
{"actor":{"display_login":"sindresorhus"}}