{"action":"created","comment":{"url":"https://api.github.com/repos/lerna/lerna-changelog/pulls/comments/96513102","pull_request_review_id":17096785,"id":96513102,"diff_hunk":"@@ -1,13 +1,26 @@\n #!/usr/bin/env node\n \n var chalk = require(\"chalk\");\n-var lib = require(\".\");\n+var argv = require(\"yargs\").argv;\n+var Changelog = require(\".\").Changelog;\n+var ConfigurationError = require(\".\").ConfigurationError;\n \n-var Changelog = lib.Changelog;\n-var ConfigurationError = lib.ConfigurationError;\n+if (argv.help) {","path":"cli.js","position":11,"original_position":11,"commit_id":"eb6c290be439ac19db762e12771f2698bbf9fab0","original_commit_id":"eb6c290be439ac19db762e12771f2698bbf9fab0","user":{"login":"evocateur","id":5605,"avatar_url":"https://avatars.githubusercontent.com/u/5605?v=3","gravatar_id":"","url":"https://api.github.com/users/evocateur","html_url":"https://github.com/evocateur","followers_url":"https://api.github.com/users/evocateur/followers","following_url":"https://api.github.com/users/evocateur/following{/other_user}","gists_url":"https://api.github.com/users/evocateur/gists{/gist_id}","starred_url":"https://api.github.com/users/evocateur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evocateur/subscriptions","organizations_url":"https://api.github.com/users/evocateur/orgs","repos_url":"https://api.github.com/users/evocateur/repos","events_url":"https://api.github.com/users/evocateur/events{/privacy}","received_events_url":"https://api.github.com/users/evocateur/received_events","type":"User","site_admin":false},"body":"It is a _ridiculously_ long README, that is true. :)","created_at":"2017-01-17T21:20:46Z","updated_at":"2017-01-17T21:20:46Z","html_url":"https://github.com/lerna/lerna-changelog/pull/31#discussion_r96513102","pull_request_url":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/lerna/lerna-changelog/pulls/comments/96513102"},"html":{"href":"https://github.com/lerna/lerna-changelog/pull/31#discussion_r96513102"},"pull_request":{"href":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31","id":101614289,"html_url":"https://github.com/lerna/lerna-changelog/pull/31","diff_url":"https://github.com/lerna/lerna-changelog/pull/31.diff","patch_url":"https://github.com/lerna/lerna-changelog/pull/31.patch","issue_url":"https://api.github.com/repos/lerna/lerna-changelog/issues/31","number":31,"state":"open","locked":false,"title":"New CLI options, custom tags range and tests.","user":{"login":"emmenko","id":1110551,"avatar_url":"https://avatars.githubusercontent.com/u/1110551?v=3","gravatar_id":"","url":"https://api.github.com/users/emmenko","html_url":"https://github.com/emmenko","followers_url":"https://api.github.com/users/emmenko/followers","following_url":"https://api.github.com/users/emmenko/following{/other_user}","gists_url":"https://api.github.com/users/emmenko/gists{/gist_id}","starred_url":"https://api.github.com/users/emmenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmenko/subscriptions","organizations_url":"https://api.github.com/users/emmenko/orgs","repos_url":"https://api.github.com/users/emmenko/repos","events_url":"https://api.github.com/users/emmenko/events{/privacy}","received_events_url":"https://api.github.com/users/emmenko/received_events","type":"User","site_admin":false},"body":"Closes #17, #19, #25\r\n\r\n### Summary\r\nThis PR mainly introduces a way of querying commits for a custom tags range (at the moment only commits after the last available tag are taken into consideration) and to group them by tag.\r\n\r\n### Description\r\n> There are quite some changes in the diff, most of them are just about formatting and code improvements though. I'll point out in the diff the places to look at, regarding the actual changes.\r\nThose changes also should not break anything, as far as I can tell the old behaviour is still preserved.\r\n\r\n1. CLI options\r\nTo be able to query the commits for a custom range of tags, there are 2 options that we can use:\r\n\r\n```bash\r\n--tagFrom <tag> # default is the latest available tag\r\n--tagTo <tag>\r\n\r\n# --tagTo should be a tag after --tagFrom\r\n```\r\n\r\n2. Lerna.json options\r\nA new option `ignoreCommitters` can be used in `lerna.json` to ignore matching committers. This is particularly useful for commiters such as `greenkeeper` or any kind of bot accounts.\r\n\r\n3. Changelog entries grouped by tag\r\nAs briefly discussed in #25, having a list of commits possibly spread across multiple tags should result in multiple changelog entries for each tag.\r\n\r\n```\r\n## Unreleased (2017-01-15)\r\n\r\n#### :rocket: New Feature\r\n* `pkg-1`, `pkg-2`\r\n  * This is the commit title for the issue (#4). ([@test-user](https://github.com/test-user))\r\n  * This is the commit title for the issue (#3). ([@test-user](https://github.com/test-user))\r\n\r\n#### Committers: 1\r\n- Test User ([test-user](https://github.com/test-user))\r\n\r\n\r\n## v0.2.0 (2017-01-01)\r\n\r\n#### :rocket: New Feature\r\n* `pkg-1`,\r\n  * This is the commit title for the issue (#2). ([@test-user](https://github.com/test-user))\r\n  * This is the commit title for the issue (#1). ([@test-user](https://github.com/test-user))\r\n\r\n#### Committers: 1\r\n- Test User ([test-user](https://github.com/test-user))\r\n\r\n\r\n## v0.1.0 (2017-01-01)\r\n\r\n#### Committers: 0\r\n```\r\n\r\n4. Tests\r\nSome basic tests have been added, including mocked modules.\r\n\r\n### TODO\r\n- [ ] setup travis build\r\n- [ ] document how changelog is generated (closes #30)\r\n- [ ] make npm aware of executables (move `cli.js` into `bin` folder)\r\n- [ ] `verbose` option to print information while processing the commits\r\n","created_at":"2017-01-15T23:22:44Z","updated_at":"2017-01-17T21:20:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3d87afb7a928464c71113c1ed1e51f6d55b4ec5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31/commits","review_comments_url":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31/comments","review_comment_url":"https://api.github.com/repos/lerna/lerna-changelog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lerna/lerna-changelog/issues/31/comments","statuses_url":"https://api.github.com/repos/lerna/lerna-changelog/statuses/eb6c290be439ac19db762e12771f2698bbf9fab0","head":{"label":"emmenko:historical-logs-multi-tags","ref":"historical-logs-multi-tags","sha":"eb6c290be439ac19db762e12771f2698bbf9fab0","user":{"login":"emmenko","id":1110551,"avatar_url":"https://avatars.githubusercontent.com/u/1110551?v=3","gravatar_id":"","url":"https://api.github.com/users/emmenko","html_url":"https://github.com/emmenko","followers_url":"https://api.github.com/users/emmenko/followers","following_url":"https://api.github.com/users/emmenko/following{/other_user}","gists_url":"https://api.github.com/users/emmenko/gists{/gist_id}","starred_url":"https://api.github.com/users/emmenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmenko/subscriptions","organizations_url":"https://api.github.com/users/emmenko/orgs","repos_url":"https://api.github.com/users/emmenko/repos","events_url":"https://api.github.com/users/emmenko/events{/privacy}","received_events_url":"https://api.github.com/users/emmenko/received_events","type":"User","site_admin":false},"repo":{"id":78931433,"name":"lerna-changelog","full_name":"emmenko/lerna-changelog","owner":{"login":"emmenko","id":1110551,"avatar_url":"https://avatars.githubusercontent.com/u/1110551?v=3","gravatar_id":"","url":"https://api.github.com/users/emmenko","html_url":"https://github.com/emmenko","followers_url":"https://api.github.com/users/emmenko/followers","following_url":"https://api.github.com/users/emmenko/following{/other_user}","gists_url":"https://api.github.com/users/emmenko/gists{/gist_id}","starred_url":"https://api.github.com/users/emmenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmenko/subscriptions","organizations_url":"https://api.github.com/users/emmenko/orgs","repos_url":"https://api.github.com/users/emmenko/repos","events_url":"https://api.github.com/users/emmenko/events{/privacy}","received_events_url":"https://api.github.com/users/emmenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emmenko/lerna-changelog","description":":book: Generate a changelog for a Lerna repo","fork":true,"url":"https://api.github.com/repos/emmenko/lerna-changelog","forks_url":"https://api.github.com/repos/emmenko/lerna-changelog/forks","keys_url":"https://api.github.com/repos/emmenko/lerna-changelog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emmenko/lerna-changelog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emmenko/lerna-changelog/teams","hooks_url":"https://api.github.com/repos/emmenko/lerna-changelog/hooks","issue_events_url":"https://api.github.com/repos/emmenko/lerna-changelog/issues/events{/number}","events_url":"https://api.github.com/repos/emmenko/lerna-changelog/events","assignees_url":"https://api.github.com/repos/emmenko/lerna-changelog/assignees{/user}","branches_url":"https://api.github.com/repos/emmenko/lerna-changelog/branches{/branch}","tags_url":"https://api.github.com/repos/emmenko/lerna-changelog/tags","blobs_url":"https://api.github.com/repos/emmenko/lerna-changelog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emmenko/lerna-changelog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emmenko/lerna-changelog/git/refs{/sha}","trees_url":"https://api.github.com/repos/emmenko/lerna-changelog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emmenko/lerna-changelog/statuses/{sha}","languages_url":"https://api.github.com/repos/emmenko/lerna-changelog/languages","stargazers_url":"https://api.github.com/repos/emmenko/lerna-changelog/stargazers","contributors_url":"https://api.github.com/repos/emmenko/lerna-changelog/contributors","subscribers_url":"https://api.github.com/repos/emmenko/lerna-changelog/subscribers","subscription_url":"https://api.github.com/repos/emmenko/lerna-changelog/subscription","commits_url":"https://api.github.com/repos/emmenko/lerna-changelog/commits{/sha}","git_commits_url":"https://api.github.com/repos/emmenko/lerna-changelog/git/commits{/sha}","comments_url":"https://api.github.com/repos/emmenko/lerna-changelog/comments{/number}","issue_comment_url":"https://api.github.com/repos/emmenko/lerna-changelog/issues/comments{/number}","contents_url":"https://api.github.com/repos/emmenko/lerna-changelog/contents/{+path}","compare_url":"https://api.github.com/repos/emmenko/lerna-changelog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emmenko/lerna-changelog/merges","archive_url":"https://api.github.com/repos/emmenko/lerna-changelog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emmenko/lerna-changelog/downloads","issues_url":"https://api.github.com/repos/emmenko/lerna-changelog/issues{/number}","pulls_url":"https://api.github.com/repos/emmenko/lerna-changelog/pulls{/number}","milestones_url":"https://api.github.com/repos/emmenko/lerna-changelog/milestones{/number}","notifications_url":"https://api.github.com/repos/emmenko/lerna-changelog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emmenko/lerna-changelog/labels{/name}","releases_url":"https://api.github.com/repos/emmenko/lerna-changelog/releases{/id}","deployments_url":"https://api.github.com/repos/emmenko/lerna-changelog/deployments","created_at":"2017-01-14T09:31:04Z","updated_at":"2017-01-14T09:31:06Z","pushed_at":"2017-01-16T17:48:17Z","git_url":"git://github.com/emmenko/lerna-changelog.git","ssh_url":"git@github.com:emmenko/lerna-changelog.git","clone_url":"https://github.com/emmenko/lerna-changelog.git","svn_url":"https://github.com/emmenko/lerna-changelog","homepage":"","size":42,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lerna:master","ref":"master","sha":"ed8b7d422f80318c87d34a67508b86b0b4b37d93","user":{"login":"lerna","id":19333396,"avatar_url":"https://avatars.githubusercontent.com/u/19333396?v=3","gravatar_id":"","url":"https://api.github.com/users/lerna","html_url":"https://github.com/lerna","followers_url":"https://api.github.com/users/lerna/followers","following_url":"https://api.github.com/users/lerna/following{/other_user}","gists_url":"https://api.github.com/users/lerna/gists{/gist_id}","starred_url":"https://api.github.com/users/lerna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerna/subscriptions","organizations_url":"https://api.github.com/users/lerna/orgs","repos_url":"https://api.github.com/users/lerna/repos","events_url":"https://api.github.com/users/lerna/events{/privacy}","received_events_url":"https://api.github.com/users/lerna/received_events","type":"Organization","site_admin":false},"repo":{"id":59603130,"name":"lerna-changelog","full_name":"lerna/lerna-changelog","owner":{"login":"lerna","id":19333396,"avatar_url":"https://avatars.githubusercontent.com/u/19333396?v=3","gravatar_id":"","url":"https://api.github.com/users/lerna","html_url":"https://github.com/lerna","followers_url":"https://api.github.com/users/lerna/followers","following_url":"https://api.github.com/users/lerna/following{/other_user}","gists_url":"https://api.github.com/users/lerna/gists{/gist_id}","starred_url":"https://api.github.com/users/lerna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerna/subscriptions","organizations_url":"https://api.github.com/users/lerna/orgs","repos_url":"https://api.github.com/users/lerna/repos","events_url":"https://api.github.com/users/lerna/events{/privacy}","received_events_url":"https://api.github.com/users/lerna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lerna/lerna-changelog","description":":book: Generate a changelog for a Lerna repo","fork":false,"url":"https://api.github.com/repos/lerna/lerna-changelog","forks_url":"https://api.github.com/repos/lerna/lerna-changelog/forks","keys_url":"https://api.github.com/repos/lerna/lerna-changelog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lerna/lerna-changelog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lerna/lerna-changelog/teams","hooks_url":"https://api.github.com/repos/lerna/lerna-changelog/hooks","issue_events_url":"https://api.github.com/repos/lerna/lerna-changelog/issues/events{/number}","events_url":"https://api.github.com/repos/lerna/lerna-changelog/events","assignees_url":"https://api.github.com/repos/lerna/lerna-changelog/assignees{/user}","branches_url":"https://api.github.com/repos/lerna/lerna-changelog/branches{/branch}","tags_url":"https://api.github.com/repos/lerna/lerna-changelog/tags","blobs_url":"https://api.github.com/repos/lerna/lerna-changelog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lerna/lerna-changelog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lerna/lerna-changelog/git/refs{/sha}","trees_url":"https://api.github.com/repos/lerna/lerna-changelog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lerna/lerna-changelog/statuses/{sha}","languages_url":"https://api.github.com/repos/lerna/lerna-changelog/languages","stargazers_url":"https://api.github.com/repos/lerna/lerna-changelog/stargazers","contributors_url":"https://api.github.com/repos/lerna/lerna-changelog/contributors","subscribers_url":"https://api.github.com/repos/lerna/lerna-changelog/subscribers","subscription_url":"https://api.github.com/repos/lerna/lerna-changelog/subscription","commits_url":"https://api.github.com/repos/lerna/lerna-changelog/commits{/sha}","git_commits_url":"https://api.github.com/repos/lerna/lerna-changelog/git/commits{/sha}","comments_url":"https://api.github.com/repos/lerna/lerna-changelog/comments{/number}","issue_comment_url":"https://api.github.com/repos/lerna/lerna-changelog/issues/comments{/number}","contents_url":"https://api.github.com/repos/lerna/lerna-changelog/contents/{+path}","compare_url":"https://api.github.com/repos/lerna/lerna-changelog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lerna/lerna-changelog/merges","archive_url":"https://api.github.com/repos/lerna/lerna-changelog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lerna/lerna-changelog/downloads","issues_url":"https://api.github.com/repos/lerna/lerna-changelog/issues{/number}","pulls_url":"https://api.github.com/repos/lerna/lerna-changelog/pulls{/number}","milestones_url":"https://api.github.com/repos/lerna/lerna-changelog/milestones{/number}","notifications_url":"https://api.github.com/repos/lerna/lerna-changelog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lerna/lerna-changelog/labels{/name}","releases_url":"https://api.github.com/repos/lerna/lerna-changelog/releases{/id}","deployments_url":"https://api.github.com/repos/lerna/lerna-changelog/deployments","created_at":"2016-05-24T19:41:40Z","updated_at":"2017-01-15T03:51:12Z","pushed_at":"2017-01-16T17:48:18Z","git_url":"git://github.com/lerna/lerna-changelog.git","ssh_url":"git@github.com:lerna/lerna-changelog.git","clone_url":"https://github.com/lerna/lerna-changelog.git","svn_url":"https://github.com/lerna/lerna-changelog","homepage":"","size":32,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":17,"forks":8,"open_issues":17,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31"},"html":{"href":"https://github.com/lerna/lerna-changelog/pull/31"},"issue":{"href":"https://api.github.com/repos/lerna/lerna-changelog/issues/31"},"comments":{"href":"https://api.github.com/repos/lerna/lerna-changelog/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/lerna/lerna-changelog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lerna/lerna-changelog/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/lerna/lerna-changelog/statuses/eb6c290be439ac19db762e12771f2698bbf9fab0"}}}}
{"actor":{"display_login":"evocateur"}}