{"action":"created","comment":{"url":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments/165918400","pull_request_review_id":93926320,"id":165918400,"diff_hunk":"@@ -264,6 +303,10 @@ function () use ($tags, $newTag, $repositoryRoot, &$changelog) {\n                 } else {\n                     array_unshift($tags, 'HEAD');\n \n+                    $changelogThemesRegex = sprintf(\n+                        '/(?<type>%s)\\((?<section>[^)]+)\\)(?<message>.*)$/',","path":"Bin/Snapshot.php","position":100,"original_position":100,"commit_id":"f9f5d8ae51ad688379cc6577c5435231eee02375","original_commit_id":"f9f5d8ae51ad688379cc6577c5435231eee02375","user":{"login":"shulard","id":482993,"avatar_url":"https://avatars3.githubusercontent.com/u/482993?v=4","gravatar_id":"","url":"https://api.github.com/users/shulard","html_url":"https://github.com/shulard","followers_url":"https://api.github.com/users/shulard/followers","following_url":"https://api.github.com/users/shulard/following{/other_user}","gists_url":"https://api.github.com/users/shulard/gists{/gist_id}","starred_url":"https://api.github.com/users/shulard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulard/subscriptions","organizations_url":"https://api.github.com/users/shulard/orgs","repos_url":"https://api.github.com/users/shulard/repos","events_url":"https://api.github.com/users/shulard/events{/privacy}","received_events_url":"https://api.github.com/users/shulard/received_events","type":"User","site_admin":false},"body":"Since the commit line starts with some space and `*` characters, I've updated the regex with the `^` anchor and a `[ *]+` matcher.","created_at":"2018-02-05T09:32:16Z","updated_at":"2018-02-05T09:32:16Z","html_url":"https://github.com/hoaproject/Devtools/pull/49#discussion_r165918400","pull_request_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/49","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments/165918400"},"html":{"href":"https://github.com/hoaproject/Devtools/pull/49#discussion_r165918400"},"pull_request":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/49"}},"in_reply_to_id":165910833},"pull_request":{"url":"https://api.github.com/repos/hoaproject/Devtools/pulls/49","id":164548500,"html_url":"https://github.com/hoaproject/Devtools/pull/49","diff_url":"https://github.com/hoaproject/Devtools/pull/49.diff","patch_url":"https://github.com/hoaproject/Devtools/pull/49.patch","issue_url":"https://api.github.com/repos/hoaproject/Devtools/issues/49","number":49,"state":"open","locked":false,"title":"Update the `devtools:snapshot` command to use structured commit information when generating changelog.","user":{"login":"shulard","id":482993,"avatar_url":"https://avatars3.githubusercontent.com/u/482993?v=4","gravatar_id":"","url":"https://api.github.com/users/shulard","html_url":"https://github.com/shulard","followers_url":"https://api.github.com/users/shulard/followers","following_url":"https://api.github.com/users/shulard/following{/other_user}","gists_url":"https://api.github.com/users/shulard/gists{/gist_id}","starred_url":"https://api.github.com/users/shulard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulard/subscriptions","organizations_url":"https://api.github.com/users/shulard/orgs","repos_url":"https://api.github.com/users/shulard/repos","events_url":"https://api.github.com/users/shulard/events{/privacy}","received_events_url":"https://api.github.com/users/shulard/received_events","type":"User","site_admin":false},"body":"With the RFC hoaproject/Central#61 we introduce structured commits with the pattern : `type(scope) title`.\r\n\r\nThis PR update the `changelog` step to use this new information when generating the CHANGELOG.md file.\r\n\r\nAt the moment, all the commits are kept in the resulting file. The non structured ones are stored inside a specific \"Commits\" sections.\r\n\r\nHere an example with the latest hoaproject/Websocket tag :\r\n\r\n> # 3.18.01.23\r\n> \r\n> ## Quality\r\n> \r\n> ### Composer\r\n> \r\n>  * Use `dev-master` dependencies. (Ivan Enderlin, 2018-01-23T10:42:02+01:00)\r\n>  * add PHP version requirement (Alexis von Glasow, 2017-08-04T13:48:47+02:00)\r\n> \r\n> ### PHP\r\n> \r\n>  * Update to PHP 7. (Ivan Enderlin, 2017-11-10T10:30:28+01:00)\r\n>  * Update to PHP 7. (Ivan Enderlin, 2017-11-10T10:13:42+01:00)\r\n>  * Update to PHP 7. (Ivan Enderlin, 2017-11-08T15:55:02+01:00)\r\n>  * Fix composer. (Ivan Enderlin, 2017-11-08T15:35:39+01:00)\r\n>  * Update to PHP 7. (Ivan Enderlin, 2017-11-08T15:33:56+01:00)\r\n> \r\n> ### CI\r\n> \r\n>  * Drop HHVM support. (Stéphane HULARD, 2017-07-07T11:51:42+02:00)\r\n> \r\n> ## Commits\r\n> \r\n>   * Connection: Add `close-before` event. (Metalaka, 2017-03-30T21:37:26+02:00)\r\n>   * Fire close event before closing and on error (jmdevince, 2016-04-28T15:15:33-05:00)\r\n>   * Merge branch 'incoming' into issue_58 (Ivan Enderlin, 2017-03-24T15:18:21+01:00)\r\n>   * Connection: If a normal close fails, no error. (Ivan Enderlin, 2016-08-04T08:32:03+02:00)\r\n>   * Connection: Ensure disconnection on closing. (Ivan Enderlin, 2016-08-04T08:29:50+02:00)","created_at":"2018-01-23T11:21:55Z","updated_at":"2018-02-05T09:32:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c9039a92041c7aeffa3a2df963d5333368be91","assignee":{"login":"Hywan","id":946104,"avatar_url":"https://avatars2.githubusercontent.com/u/946104?v=4","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"assignees":[{"login":"Hywan","id":946104,"avatar_url":"https://avatars2.githubusercontent.com/u/946104?v=4","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/49/commits","review_comments_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/49/comments","review_comment_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hoaproject/Devtools/issues/49/comments","statuses_url":"https://api.github.com/repos/hoaproject/Devtools/statuses/f9f5d8ae51ad688379cc6577c5435231eee02375","head":{"label":"shulard:feature/changelog-generator","ref":"feature/changelog-generator","sha":"f9f5d8ae51ad688379cc6577c5435231eee02375","user":{"login":"shulard","id":482993,"avatar_url":"https://avatars3.githubusercontent.com/u/482993?v=4","gravatar_id":"","url":"https://api.github.com/users/shulard","html_url":"https://github.com/shulard","followers_url":"https://api.github.com/users/shulard/followers","following_url":"https://api.github.com/users/shulard/following{/other_user}","gists_url":"https://api.github.com/users/shulard/gists{/gist_id}","starred_url":"https://api.github.com/users/shulard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulard/subscriptions","organizations_url":"https://api.github.com/users/shulard/orgs","repos_url":"https://api.github.com/users/shulard/repos","events_url":"https://api.github.com/users/shulard/events{/privacy}","received_events_url":"https://api.github.com/users/shulard/received_events","type":"User","site_admin":false},"repo":{"id":40115941,"name":"Devtools","full_name":"shulard/Devtools","owner":{"login":"shulard","id":482993,"avatar_url":"https://avatars3.githubusercontent.com/u/482993?v=4","gravatar_id":"","url":"https://api.github.com/users/shulard","html_url":"https://github.com/shulard","followers_url":"https://api.github.com/users/shulard/followers","following_url":"https://api.github.com/users/shulard/following{/other_user}","gists_url":"https://api.github.com/users/shulard/gists{/gist_id}","starred_url":"https://api.github.com/users/shulard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulard/subscriptions","organizations_url":"https://api.github.com/users/shulard/orgs","repos_url":"https://api.github.com/users/shulard/repos","events_url":"https://api.github.com/users/shulard/events{/privacy}","received_events_url":"https://api.github.com/users/shulard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shulard/Devtools","description":"The Hoa\\Devtools library.","fork":true,"url":"https://api.github.com/repos/shulard/Devtools","forks_url":"https://api.github.com/repos/shulard/Devtools/forks","keys_url":"https://api.github.com/repos/shulard/Devtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shulard/Devtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shulard/Devtools/teams","hooks_url":"https://api.github.com/repos/shulard/Devtools/hooks","issue_events_url":"https://api.github.com/repos/shulard/Devtools/issues/events{/number}","events_url":"https://api.github.com/repos/shulard/Devtools/events","assignees_url":"https://api.github.com/repos/shulard/Devtools/assignees{/user}","branches_url":"https://api.github.com/repos/shulard/Devtools/branches{/branch}","tags_url":"https://api.github.com/repos/shulard/Devtools/tags","blobs_url":"https://api.github.com/repos/shulard/Devtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shulard/Devtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shulard/Devtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/shulard/Devtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shulard/Devtools/statuses/{sha}","languages_url":"https://api.github.com/repos/shulard/Devtools/languages","stargazers_url":"https://api.github.com/repos/shulard/Devtools/stargazers","contributors_url":"https://api.github.com/repos/shulard/Devtools/contributors","subscribers_url":"https://api.github.com/repos/shulard/Devtools/subscribers","subscription_url":"https://api.github.com/repos/shulard/Devtools/subscription","commits_url":"https://api.github.com/repos/shulard/Devtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/shulard/Devtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/shulard/Devtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/shulard/Devtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/shulard/Devtools/contents/{+path}","compare_url":"https://api.github.com/repos/shulard/Devtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shulard/Devtools/merges","archive_url":"https://api.github.com/repos/shulard/Devtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shulard/Devtools/downloads","issues_url":"https://api.github.com/repos/shulard/Devtools/issues{/number}","pulls_url":"https://api.github.com/repos/shulard/Devtools/pulls{/number}","milestones_url":"https://api.github.com/repos/shulard/Devtools/milestones{/number}","notifications_url":"https://api.github.com/repos/shulard/Devtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shulard/Devtools/labels{/name}","releases_url":"https://api.github.com/repos/shulard/Devtools/releases{/id}","deployments_url":"https://api.github.com/repos/shulard/Devtools/deployments","created_at":"2015-08-03T09:16:36Z","updated_at":"2016-08-26T08:20:18Z","pushed_at":"2018-02-02T11:28:39Z","git_url":"git://github.com/shulard/Devtools.git","ssh_url":"git@github.com:shulard/Devtools.git","clone_url":"https://github.com/shulard/Devtools.git","svn_url":"https://github.com/shulard/Devtools","homepage":null,"size":131,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hoaproject:master","ref":"master","sha":"e95b4da5f9fb58482818d17ff5363b57a6a92567","user":{"login":"hoaproject","id":1519718,"avatar_url":"https://avatars1.githubusercontent.com/u/1519718?v=4","gravatar_id":"","url":"https://api.github.com/users/hoaproject","html_url":"https://github.com/hoaproject","followers_url":"https://api.github.com/users/hoaproject/followers","following_url":"https://api.github.com/users/hoaproject/following{/other_user}","gists_url":"https://api.github.com/users/hoaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/hoaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoaproject/subscriptions","organizations_url":"https://api.github.com/users/hoaproject/orgs","repos_url":"https://api.github.com/users/hoaproject/repos","events_url":"https://api.github.com/users/hoaproject/events{/privacy}","received_events_url":"https://api.github.com/users/hoaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":28817008,"name":"Devtools","full_name":"hoaproject/Devtools","owner":{"login":"hoaproject","id":1519718,"avatar_url":"https://avatars1.githubusercontent.com/u/1519718?v=4","gravatar_id":"","url":"https://api.github.com/users/hoaproject","html_url":"https://github.com/hoaproject","followers_url":"https://api.github.com/users/hoaproject/followers","following_url":"https://api.github.com/users/hoaproject/following{/other_user}","gists_url":"https://api.github.com/users/hoaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/hoaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoaproject/subscriptions","organizations_url":"https://api.github.com/users/hoaproject/orgs","repos_url":"https://api.github.com/users/hoaproject/repos","events_url":"https://api.github.com/users/hoaproject/events{/privacy}","received_events_url":"https://api.github.com/users/hoaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hoaproject/Devtools","description":"The Hoa\\Devtools library.","fork":false,"url":"https://api.github.com/repos/hoaproject/Devtools","forks_url":"https://api.github.com/repos/hoaproject/Devtools/forks","keys_url":"https://api.github.com/repos/hoaproject/Devtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoaproject/Devtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoaproject/Devtools/teams","hooks_url":"https://api.github.com/repos/hoaproject/Devtools/hooks","issue_events_url":"https://api.github.com/repos/hoaproject/Devtools/issues/events{/number}","events_url":"https://api.github.com/repos/hoaproject/Devtools/events","assignees_url":"https://api.github.com/repos/hoaproject/Devtools/assignees{/user}","branches_url":"https://api.github.com/repos/hoaproject/Devtools/branches{/branch}","tags_url":"https://api.github.com/repos/hoaproject/Devtools/tags","blobs_url":"https://api.github.com/repos/hoaproject/Devtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoaproject/Devtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoaproject/Devtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoaproject/Devtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoaproject/Devtools/statuses/{sha}","languages_url":"https://api.github.com/repos/hoaproject/Devtools/languages","stargazers_url":"https://api.github.com/repos/hoaproject/Devtools/stargazers","contributors_url":"https://api.github.com/repos/hoaproject/Devtools/contributors","subscribers_url":"https://api.github.com/repos/hoaproject/Devtools/subscribers","subscription_url":"https://api.github.com/repos/hoaproject/Devtools/subscription","commits_url":"https://api.github.com/repos/hoaproject/Devtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoaproject/Devtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoaproject/Devtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoaproject/Devtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoaproject/Devtools/contents/{+path}","compare_url":"https://api.github.com/repos/hoaproject/Devtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoaproject/Devtools/merges","archive_url":"https://api.github.com/repos/hoaproject/Devtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoaproject/Devtools/downloads","issues_url":"https://api.github.com/repos/hoaproject/Devtools/issues{/number}","pulls_url":"https://api.github.com/repos/hoaproject/Devtools/pulls{/number}","milestones_url":"https://api.github.com/repos/hoaproject/Devtools/milestones{/number}","notifications_url":"https://api.github.com/repos/hoaproject/Devtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoaproject/Devtools/labels{/name}","releases_url":"https://api.github.com/repos/hoaproject/Devtools/releases{/id}","deployments_url":"https://api.github.com/repos/hoaproject/Devtools/deployments","created_at":"2015-01-05T14:57:46Z","updated_at":"2017-07-06T04:15:29Z","pushed_at":"2018-02-05T08:51:59Z","git_url":"git://github.com/hoaproject/Devtools.git","ssh_url":"git@github.com:hoaproject/Devtools.git","clone_url":"https://github.com/hoaproject/Devtools.git","svn_url":"https://github.com/hoaproject/Devtools","homepage":"https://hoa-project.net/","size":127,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":8,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/49"},"html":{"href":"https://github.com/hoaproject/Devtools/pull/49"},"issue":{"href":"https://api.github.com/repos/hoaproject/Devtools/issues/49"},"comments":{"href":"https://api.github.com/repos/hoaproject/Devtools/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/hoaproject/Devtools/statuses/f9f5d8ae51ad688379cc6577c5435231eee02375"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"shulard"}}