{"action":"created","issue":{"url":"https://api.github.com/repos/CookPete/auto-changelog/issues/40","repository_url":"https://api.github.com/repos/CookPete/auto-changelog","labels_url":"https://api.github.com/repos/CookPete/auto-changelog/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/CookPete/auto-changelog/issues/40/comments","events_url":"https://api.github.com/repos/CookPete/auto-changelog/issues/40/events","html_url":"https://github.com/CookPete/auto-changelog/pull/40","id":315593204,"number":40,"title":"Feat: match template helper","user":{"login":"w33ble","id":404731,"avatar_url":"https://avatars3.githubusercontent.com/u/404731?v=4","gravatar_id":"","url":"https://api.github.com/users/w33ble","html_url":"https://github.com/w33ble","followers_url":"https://api.github.com/users/w33ble/followers","following_url":"https://api.github.com/users/w33ble/following{/other_user}","gists_url":"https://api.github.com/users/w33ble/gists{/gist_id}","starred_url":"https://api.github.com/users/w33ble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w33ble/subscriptions","organizations_url":"https://api.github.com/users/w33ble/orgs","repos_url":"https://api.github.com/users/w33ble/repos","events_url":"https://api.github.com/users/w33ble/events{/privacy}","received_events_url":"https://api.github.com/users/w33ble/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-18T18:30:42Z","updated_at":"2018-04-27T13:41:38Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/CookPete/auto-changelog/pulls/40","html_url":"https://github.com/CookPete/auto-changelog/pull/40","diff_url":"https://github.com/CookPete/auto-changelog/pull/40.diff","patch_url":"https://github.com/CookPete/auto-changelog/pull/40.patch"},"body":"Adds a `matches` helper to the handlebars runtime, which allows for matching a value from the commit objects based on some pattern. It uses `RegExp` behind the scenes.\r\n\r\n> `{{#matches message \"BREAKING\"}}**BREAKING**{{/matches}}`\r\n\r\nYou can also optionally pass flags into `RegExp` constructor.\r\n\r\n> `{{#matches message \"breaking\" flags=\"i\"}}**BREAKING**{{/matches}}`\r\n\r\nIt also supports inverse matching, in case that's useful.\r\n\r\n> `{{#matches message \"breaking\" flags=\"i\"}}**BREAKING**{{else}}*non-breaking*{{/matches}}`\r\n\r\nThis allows users to get some base functionality to meet #39 as part of the template.\r\n\r\nHappy to add tests, just let me know what you'd like to see."},"comment":{"url":"https://api.github.com/repos/CookPete/auto-changelog/issues/comments/384973371","html_url":"https://github.com/CookPete/auto-changelog/pull/40#issuecomment-384973371","issue_url":"https://api.github.com/repos/CookPete/auto-changelog/issues/40","id":384973371,"user":{"login":"CookPete","id":1926029,"avatar_url":"https://avatars2.githubusercontent.com/u/1926029?v=4","gravatar_id":"","url":"https://api.github.com/users/CookPete","html_url":"https://github.com/CookPete","followers_url":"https://api.github.com/users/CookPete/followers","following_url":"https://api.github.com/users/CookPete/following{/other_user}","gists_url":"https://api.github.com/users/CookPete/gists{/gist_id}","starred_url":"https://api.github.com/users/CookPete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CookPete/subscriptions","organizations_url":"https://api.github.com/users/CookPete/orgs","repos_url":"https://api.github.com/users/CookPete/repos","events_url":"https://api.github.com/users/CookPete/events{/privacy}","received_events_url":"https://api.github.com/users/CookPete/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T13:41:38Z","updated_at":"2018-04-27T13:41:38Z","author_association":"OWNER","body":">I don’t personally use the commit limit, I don’t understand it’s usefulness.\r\n\r\nIt's mainly there because [using commit log diffs as changelogs is a bad idea](https://keepachangelog.com/en/1.0.0/#bad-practices), and to prevent logs from becoming huge and no longer useful for larger projects, with possibly hundreds of commits between releases.\r\n\r\n>Are you saying that “breaking” commits would ignore that rule, or would just come first in the output to ensure at least some show up?\r\n\r\nYeah, I think if we had a `--breaking-option` and someone used it, those commits should be listed in the release regardless of the commit limit."}}
{"actor":{"display_login":"CookPete"}}