{"action":"created","issue":{"url":"https://api.github.com/repos/skywinder/github-changelog-generator/issues/291","repository_url":"https://api.github.com/repos/skywinder/github-changelog-generator","labels_url":"https://api.github.com/repos/skywinder/github-changelog-generator/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/skywinder/github-changelog-generator/issues/291/comments","events_url":"https://api.github.com/repos/skywinder/github-changelog-generator/issues/291/events","html_url":"https://github.com/skywinder/github-changelog-generator/issues/291","id":110825319,"number":291,"title":"Last tag contains too many PRs","user":{"login":"SteveEasley","id":1674792,"avatar_url":"https://avatars.githubusercontent.com/u/1674792?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveEasley","html_url":"https://github.com/SteveEasley","followers_url":"https://api.github.com/users/SteveEasley/followers","following_url":"https://api.github.com/users/SteveEasley/following{/other_user}","gists_url":"https://api.github.com/users/SteveEasley/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveEasley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveEasley/subscriptions","organizations_url":"https://api.github.com/users/SteveEasley/orgs","repos_url":"https://api.github.com/users/SteveEasley/repos","events_url":"https://api.github.com/users/SteveEasley/events{/privacy}","received_events_url":"https://api.github.com/users/SteveEasley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-10-11T00:19:20Z","updated_at":"2016-09-01T10:42:59Z","closed_at":null,"body":"Running into an issue with the output file. I am running with `github_changelog_generator -t ... --max-issues=250` on a private repo. It is successfully appending the output of my HISTORY.md. This HISTORY file was generated with github_changelog_generator earlier (and the most recent 30 days of tags removed for testing). The issue is the first tag that is put on top of the HISTORY.md content after running the above command contains more PRs that it should. Its basically a copy of all PRs that didnt match the earlier tags. i.e. If the earlier tags matched up to 100 PRs, then the last tag contains 150 PRs (250-100=150)\r\n\r\nThe reason I am wanting to use HISTORY.md this way is because our private repo is large. It contains 1800+ PRs (and growing), and 250+ tags. As it is I cant run without the `max-issues` param because the thread/async code used by github_changelog_generator instantly gives github API rate limit warnings. Not to mention its very slow to run the command. So my plan was once a month \"move\" CHANGELOG.md to HISTORY.md in order to limit the scope of what it needs to do. Does that sound like a covered use case?\r\n\r\nHere is the output of the command:\r\n```\r\n{:tag1=>nil,\r\n :tag2=>nil,\r\n :date_format=>\"%Y-%m-%d\",\r\n :output=>\"CHANGELOG.md\",\r\n :base=>\"HISTORY.md\",\r\n :issues=>true,\r\n :add_issues_wo_labels=>true,\r\n :add_pr_wo_labels=>true,\r\n :pulls=>true,\r\n :filter_issues_by_milestone=>true,\r\n :author=>true,\r\n :unreleased=>true,\r\n :unreleased_label=>\"Unreleased\",\r\n :compare_link=>true,\r\n :enhancement_labels=>[\"enhancement\", \"Enhancement\"],\r\n :bug_labels=>[\"bug\", \"Bug\"],\r\n :exclude_labels=>\r\n  [\"duplicate\",\r\n   \"question\",\r\n   \"invalid\",\r\n   \"wontfix\",\r\n   \"Duplicate\",\r\n   \"Question\",\r\n   \"Invalid\",\r\n   \"Wontfix\"],\r\n :max_issues=>250,\r\n :simple_list=>false,\r\n :verbose=>true,\r\n :header=>\"# Change Log\",\r\n :merge_prefix=>\"**Merged pull requests:**\",\r\n :issue_prefix=>\"**Closed issues:**\",\r\n :bug_prefix=>\"**Fixed bugs:**\",\r\n :enhancement_prefix=>\"**Implemented enhancements:**\",\r\n :git_remote=>\"origin\",\r\n :token=>\"hidden value\",\r\n :user=>\"...\",\r\n :project=>\"phoenix\"}\r\n\r\nFound 285 tags                                                         \r\nFetching tags dates: 31/31       \r\nSorting tags...\r\nReceived issues: 270                                                   \r\nFetching merged dates: 1817                                            \r\nFiltered pull requests: 243\r\nFiltered issues: 1\r\nFetching events for issues and PR: 244                                 \r\nFetching closed dates for issues: Done!\r\nGenerating log...\r\nDone!\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/skywinder/github-changelog-generator/issues/comments/244042498","html_url":"https://github.com/skywinder/github-changelog-generator/issues/291#issuecomment-244042498","issue_url":"https://api.github.com/repos/skywinder/github-changelog-generator/issues/291","id":244042498,"user":{"login":"Sloy","id":545251,"avatar_url":"https://avatars.githubusercontent.com/u/545251?v=3","gravatar_id":"","url":"https://api.github.com/users/Sloy","html_url":"https://github.com/Sloy","followers_url":"https://api.github.com/users/Sloy/followers","following_url":"https://api.github.com/users/Sloy/following{/other_user}","gists_url":"https://api.github.com/users/Sloy/gists{/gist_id}","starred_url":"https://api.github.com/users/Sloy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sloy/subscriptions","organizations_url":"https://api.github.com/users/Sloy/orgs","repos_url":"https://api.github.com/users/Sloy/repos","events_url":"https://api.github.com/users/Sloy/events{/privacy}","received_events_url":"https://api.github.com/users/Sloy/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T10:42:58Z","updated_at":"2016-09-01T10:42:58Z","body":"Same here. I'm not using `--max-issues` but rather `--since-tag`. It's including all PRs in the first tag."}}
{"actor":{"display_login":"Sloy"}}