{"action":"created","comment":{"url":"https://api.github.com/repos/resin-io/versionist/pulls/comments/196734639","pull_request_review_id":130342660,"id":196734639,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjczNDYzOQ==","diff_hunk":"@@ -118,8 +128,13 @@ async.waterfall([\n \n       return documentedVersions;\n     });\n+    const latest = semver.getGreaterVersion(versions);\n+    if (argv['get-current']) {\n+      console.log(latest);\n+      return callback(STOP);","path":"bin/cli.js","position":36,"original_position":36,"commit_id":"8dcc3b65ae014f13c17846e7db376d6d667044c7","original_commit_id":"8dcc3b65ae014f13c17846e7db376d6d667044c7","user":{"login":"nazrhom","id":6810908,"node_id":"MDQ6VXNlcjY4MTA5MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/6810908?v=4","gravatar_id":"","url":"https://api.github.com/users/nazrhom","html_url":"https://github.com/nazrhom","followers_url":"https://api.github.com/users/nazrhom/followers","following_url":"https://api.github.com/users/nazrhom/following{/other_user}","gists_url":"https://api.github.com/users/nazrhom/gists{/gist_id}","starred_url":"https://api.github.com/users/nazrhom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazrhom/subscriptions","organizations_url":"https://api.github.com/users/nazrhom/orgs","repos_url":"https://api.github.com/users/nazrhom/repos","events_url":"https://api.github.com/users/nazrhom/events{/privacy}","received_events_url":"https://api.github.com/users/nazrhom/received_events","type":"User","site_admin":false},"body":"This is to avoid printing`Done` at the end, since we want to use this feature in automation it doesn't make sense to add extra input we have to throw away. ","created_at":"2018-06-20T11:08:00Z","updated_at":"2018-06-20T11:08:00Z","html_url":"https://github.com/resin-io/versionist/pull/117#discussion_r196734639","pull_request_url":"https://api.github.com/repos/resin-io/versionist/pulls/117","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/resin-io/versionist/pulls/comments/196734639"},"html":{"href":"https://github.com/resin-io/versionist/pull/117#discussion_r196734639"},"pull_request":{"href":"https://api.github.com/repos/resin-io/versionist/pulls/117"}},"in_reply_to_id":196709089},"pull_request":{"url":"https://api.github.com/repos/resin-io/versionist/pulls/117","id":195866066,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1ODY2MDY2","html_url":"https://github.com/resin-io/versionist/pull/117","diff_url":"https://github.com/resin-io/versionist/pull/117.diff","patch_url":"https://github.com/resin-io/versionist/pull/117.patch","issue_url":"https://api.github.com/repos/resin-io/versionist/issues/117","number":117,"state":"open","locked":false,"title":"Add get-current option","user":{"login":"nazrhom","id":6810908,"node_id":"MDQ6VXNlcjY4MTA5MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/6810908?v=4","gravatar_id":"","url":"https://api.github.com/users/nazrhom","html_url":"https://github.com/nazrhom","followers_url":"https://api.github.com/users/nazrhom/followers","following_url":"https://api.github.com/users/nazrhom/following{/other_user}","gists_url":"https://api.github.com/users/nazrhom/gists{/gist_id}","starred_url":"https://api.github.com/users/nazrhom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazrhom/subscriptions","organizations_url":"https://api.github.com/users/nazrhom/orgs","repos_url":"https://api.github.com/users/nazrhom/repos","events_url":"https://api.github.com/users/nazrhom/events{/privacy}","received_events_url":"https://api.github.com/users/nazrhom/received_events","type":"User","site_admin":false},"body":"Returns what is considered the latest documented version.\r\n\r\nConnects-to: #116 \r\nchange-type: minor\n---- Autogenerated Waffleboard Connection: Connects to #116","created_at":"2018-06-19T15:22:53Z","updated_at":"2018-06-20T11:08:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62bfb1cb370e89084e63c00f5e69f9211b41d425","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jviotti","id":2192773,"node_id":"MDQ6VXNlcjIxOTI3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/2192773?v=4","gravatar_id":"","url":"https://api.github.com/users/jviotti","html_url":"https://github.com/jviotti","followers_url":"https://api.github.com/users/jviotti/followers","following_url":"https://api.github.com/users/jviotti/following{/other_user}","gists_url":"https://api.github.com/users/jviotti/gists{/gist_id}","starred_url":"https://api.github.com/users/jviotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jviotti/subscriptions","organizations_url":"https://api.github.com/users/jviotti/orgs","repos_url":"https://api.github.com/users/jviotti/repos","events_url":"https://api.github.com/users/jviotti/events{/privacy}","received_events_url":"https://api.github.com/users/jviotti/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/resin-io/versionist/pulls/117/commits","review_comments_url":"https://api.github.com/repos/resin-io/versionist/pulls/117/comments","review_comment_url":"https://api.github.com/repos/resin-io/versionist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io/versionist/issues/117/comments","statuses_url":"https://api.github.com/repos/resin-io/versionist/statuses/8dcc3b65ae014f13c17846e7db376d6d667044c7","head":{"label":"resin-io:get-current-version","ref":"get-current-version","sha":"8dcc3b65ae014f13c17846e7db376d6d667044c7","user":{"login":"resin-io","id":6157842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTc4NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6157842?v=4","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":62744911,"node_id":"MDEwOlJlcG9zaXRvcnk2Mjc0NDkxMQ==","name":"versionist","full_name":"resin-io/versionist","owner":{"login":"resin-io","id":6157842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTc4NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6157842?v=4","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/versionist","description":"Flexible CHANGELOG generation toolkit that adapts to your commit conventions","fork":false,"url":"https://api.github.com/repos/resin-io/versionist","forks_url":"https://api.github.com/repos/resin-io/versionist/forks","keys_url":"https://api.github.com/repos/resin-io/versionist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/versionist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/versionist/teams","hooks_url":"https://api.github.com/repos/resin-io/versionist/hooks","issue_events_url":"https://api.github.com/repos/resin-io/versionist/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/versionist/events","assignees_url":"https://api.github.com/repos/resin-io/versionist/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/versionist/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/versionist/tags","blobs_url":"https://api.github.com/repos/resin-io/versionist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/versionist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/versionist/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/versionist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/versionist/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/versionist/languages","stargazers_url":"https://api.github.com/repos/resin-io/versionist/stargazers","contributors_url":"https://api.github.com/repos/resin-io/versionist/contributors","subscribers_url":"https://api.github.com/repos/resin-io/versionist/subscribers","subscription_url":"https://api.github.com/repos/resin-io/versionist/subscription","commits_url":"https://api.github.com/repos/resin-io/versionist/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/versionist/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/versionist/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/versionist/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/versionist/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/versionist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/versionist/merges","archive_url":"https://api.github.com/repos/resin-io/versionist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/versionist/downloads","issues_url":"https://api.github.com/repos/resin-io/versionist/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/versionist/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/versionist/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/versionist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/versionist/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/versionist/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/versionist/deployments","created_at":"2016-07-06T18:40:36Z","updated_at":"2018-05-30T05:14:36Z","pushed_at":"2018-06-19T15:29:33Z","git_url":"git://github.com/resin-io/versionist.git","ssh_url":"git@github.com:resin-io/versionist.git","clone_url":"https://github.com/resin-io/versionist.git","svn_url":"https://github.com/resin-io/versionist","homepage":null,"size":162,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":29,"license":null,"forks":9,"open_issues":29,"watchers":24,"default_branch":"master"}},"base":{"label":"resin-io:master","ref":"master","sha":"63611f877dd32a8a2f5a6d759fe0f1198acb4161","user":{"login":"resin-io","id":6157842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTc4NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6157842?v=4","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":62744911,"node_id":"MDEwOlJlcG9zaXRvcnk2Mjc0NDkxMQ==","name":"versionist","full_name":"resin-io/versionist","owner":{"login":"resin-io","id":6157842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTc4NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6157842?v=4","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/versionist","description":"Flexible CHANGELOG generation toolkit that adapts to your commit conventions","fork":false,"url":"https://api.github.com/repos/resin-io/versionist","forks_url":"https://api.github.com/repos/resin-io/versionist/forks","keys_url":"https://api.github.com/repos/resin-io/versionist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/versionist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/versionist/teams","hooks_url":"https://api.github.com/repos/resin-io/versionist/hooks","issue_events_url":"https://api.github.com/repos/resin-io/versionist/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/versionist/events","assignees_url":"https://api.github.com/repos/resin-io/versionist/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/versionist/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/versionist/tags","blobs_url":"https://api.github.com/repos/resin-io/versionist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/versionist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/versionist/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/versionist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/versionist/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/versionist/languages","stargazers_url":"https://api.github.com/repos/resin-io/versionist/stargazers","contributors_url":"https://api.github.com/repos/resin-io/versionist/contributors","subscribers_url":"https://api.github.com/repos/resin-io/versionist/subscribers","subscription_url":"https://api.github.com/repos/resin-io/versionist/subscription","commits_url":"https://api.github.com/repos/resin-io/versionist/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/versionist/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/versionist/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/versionist/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/versionist/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/versionist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/versionist/merges","archive_url":"https://api.github.com/repos/resin-io/versionist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/versionist/downloads","issues_url":"https://api.github.com/repos/resin-io/versionist/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/versionist/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/versionist/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/versionist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/versionist/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/versionist/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/versionist/deployments","created_at":"2016-07-06T18:40:36Z","updated_at":"2018-05-30T05:14:36Z","pushed_at":"2018-06-19T15:29:33Z","git_url":"git://github.com/resin-io/versionist.git","ssh_url":"git@github.com:resin-io/versionist.git","clone_url":"https://github.com/resin-io/versionist.git","svn_url":"https://github.com/resin-io/versionist","homepage":null,"size":162,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":29,"license":null,"forks":9,"open_issues":29,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io/versionist/pulls/117"},"html":{"href":"https://github.com/resin-io/versionist/pull/117"},"issue":{"href":"https://api.github.com/repos/resin-io/versionist/issues/117"},"comments":{"href":"https://api.github.com/repos/resin-io/versionist/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io/versionist/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io/versionist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io/versionist/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io/versionist/statuses/8dcc3b65ae014f13c17846e7db376d6d667044c7"}},"author_association":"NONE"}}
{"actor":{"display_login":"nazrhom"}}