{"action":"created","comment":{"url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/comments/69530963","id":69530963,"diff_hunk":"@@ -0,0 +1,55 @@\n+## Register your parsing functions here\n+\n+import re\n+\n+\n+def pull_id_parser(msg_body):\n+    \"\"\"\n+        Parses pull request id from commit message\n+        => msg : Merge pull request #1234 from username/branch\n+        => pull_id : 1234\n+    \"\"\"\n+    if msg_body.startswith('Merge pull'):\n+        tokens = msg_body.split()\n+        pull_id = tokens[3][1:]\n+        return pull_id, \"pull_id\"\n+\n+\n+def pull_branch_parser(msg_body):\n+    \"\"\"\n+        Parses branch name from commit message\n+        => msg : Merge from user/master\n+        => branch_name : user/master\n+    \"\"\"\n+    if msg_body.startswith('Merge branch'):\n+        tokens = msg_body.split()\n+        pull_branch = tokens[2]\n+        return pull_branch, \"merged_branch\"","path":"autorel/changelog_generator/parser_config.py","position":27,"original_position":27,"commit_id":"93eb5a39def5eaeb97966290da1af598e62b4368","original_commit_id":"93eb5a39def5eaeb97966290da1af598e62b4368","user":{"login":"MrAnno","id":3130044,"avatar_url":"https://avatars.githubusercontent.com/u/3130044?v=3","gravatar_id":"","url":"https://api.github.com/users/MrAnno","html_url":"https://github.com/MrAnno","followers_url":"https://api.github.com/users/MrAnno/followers","following_url":"https://api.github.com/users/MrAnno/following{/other_user}","gists_url":"https://api.github.com/users/MrAnno/gists{/gist_id}","starred_url":"https://api.github.com/users/MrAnno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrAnno/subscriptions","organizations_url":"https://api.github.com/users/MrAnno/orgs","repos_url":"https://api.github.com/users/MrAnno/repos","events_url":"https://api.github.com/users/MrAnno/events{/privacy}","received_events_url":"https://api.github.com/users/MrAnno/received_events","type":"User","site_admin":false},"body":"It's not universal, for example: https://github.com/balabit/syslog-ng/commit/4067982f8edc413dc311c08c6b116df1ee334631","created_at":"2016-07-05T09:18:02Z","updated_at":"2016-07-05T09:18:02Z","html_url":"https://github.com/lbudai/syslog-ng-autorel/pull/3#discussion_r69530963","pull_request_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/comments/69530963"},"html":{"href":"https://github.com/lbudai/syslog-ng-autorel/pull/3#discussion_r69530963"},"pull_request":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3","id":73863165,"html_url":"https://github.com/lbudai/syslog-ng-autorel/pull/3","diff_url":"https://github.com/lbudai/syslog-ng-autorel/pull/3.diff","patch_url":"https://github.com/lbudai/syslog-ng-autorel/pull/3.patch","issue_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/issues/3","number":3,"state":"open","locked":false,"title":"Changelog generator ","user":{"login":"black-perl","id":5263761,"avatar_url":"https://avatars.githubusercontent.com/u/5263761?v=3","gravatar_id":"","url":"https://api.github.com/users/black-perl","html_url":"https://github.com/black-perl","followers_url":"https://api.github.com/users/black-perl/followers","following_url":"https://api.github.com/users/black-perl/following{/other_user}","gists_url":"https://api.github.com/users/black-perl/gists{/gist_id}","starred_url":"https://api.github.com/users/black-perl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/black-perl/subscriptions","organizations_url":"https://api.github.com/users/black-perl/orgs","repos_url":"https://api.github.com/users/black-perl/repos","events_url":"https://api.github.com/users/black-perl/events{/privacy}","received_events_url":"https://api.github.com/users/black-perl/received_events","type":"User","site_admin":false},"body":"This is the tentative changelog generation script. It is almost complete except the following:\r\n- The script needs the `sha` of the commit referred by tag in the current release. I tried using the ouput of `git describe` but it's showing the following(**old one**)\r\n```shell\r\nsyslog-ng-3.7.2-957-g84ec1b3\r\n```\r\nI tried `git desribe --all` to list **soft tags** but no avail. For now I am generating the changelog considering all the commits made made after `af342a6c677e7c5da6b1cacebfc3019cbe870e43` so as to speed chagelog generation for testing. Maybe github release api can help in the commit sha calculation.\r\n\r\n- I am generating changelog output by bare print calls, a library for constructing markdown format should be used.\r\n\r\nUsage instructions:\r\n- Update `settings.py` for `AUTH_TOKEN` of github.\r\n- `python3 changelog_generator.py`\r\n\r\nThe following output is expected. It is showing link information & contributor name for now. I can prettify it as per suggestions :smile: :\r\n\r\nfixed_issue\r\n------------\r\n\r\n- Null pointer dereference when parsing malformed config     [Link](https://github.com/balabit/syslog-ng/issues/1055)    Balazs Scheidler\r\n- Aborting during configuration loading     [Link](https://github.com/balabit/syslog-ng/issues/1065)    Balazs Scheidler\r\n- With an <url> tag in patterndb.xml db-parser did not parse     [Link](https://github.com/balabit/syslog-ng/issues/1063)    Balazs Scheidler\r\n\r\n\r\nmerged_pull\r\n----------\r\n\r\n\r\n\r\n- 'create-libsyslog-ng-so-symlink-with-cmake' : Merge branch 'create-libsyslog-ng-so-symlink-with-cmake' of git://github.com/ihrwein/syslog-ng\r\n     [Link](None)    MÓZES Ádám István\r\n- java-modules: use local maven repository instead of flat dir     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1082)    Budai Laszlo\r\n- Remove unused syslog-ng.conf file     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1085)    László Várady\r\n- java-modules: removed gradle cache property file     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1081)    Budai Laszlo\r\n- Add ability to use templates in both url and message format     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1033)    None\r\n- F/fix make func-test typos that keeps us from enabling it in CI     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1070)    Tamas Nagy\r\n- Add missing free to native parser's grammar     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1062)    Tibor Benke\r\n- Fix LL_IDENTIFIER double frees in the grammar     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1061)    Tibor Benke\r\n- Quickstart section     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1052)    Balazs Scheidler\r\n- F/ctx template funcs2 - mean operator, further stylistic improvements to #1037     [Link](https://github.com/repos/balabit/syslog-ng/pulls/1041)    Tamas Nagy\r\n\r\n\r\nenhancement\r\n------------\r\n\r\n\r\n\r\n- Support an alternative build system: CMake     [Link](https://github.com/balabit/syslog-ng/issues/966)    Tibor Benke\r\n- Verify that CFLAGS is propagated down to all of our sources     [Link](https://github.com/balabit/syslog-ng/issues/903)    Tamas Nagy\r\n\r\nbugfix\r\n--------\r\n\r\n\r\n- Deprecate old configuration parameters in MongoDB destination     [Link](https://github.com/balabit/syslog-ng/issues/893)    Tamas Nagy\r\n\r\n**EDIT:**\r\nIt seems the last tagged commit https://github.com/balabit/syslog-ng/commit/8943d6f3e19ca7558d86392a3efb8b6c323e9fbb is not on the `master` branch but it is on the other branch https://github.com/balabit/syslog-ng/compare/3.7/master . I tried to do a run for changelog generator on the commits after this but mistakenly did for all :sweat_smile: . And, it worked like charm but took `~1hr` ( I have some optimizations in mind, I will carry out them to make it fast). Here is the link to generated changelog( I don't want to embed it here, as you know it's too large ;) ) : https://gist.github.com/black-perl/3fc61c5034cf0b217d36b99c219ed710","created_at":"2016-06-15T07:22:20Z","updated_at":"2016-07-05T09:18:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31b3acff36333f5b0c92a61c7cdd8d128a0f580d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3/commits","review_comments_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3/comments","review_comment_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/issues/3/comments","statuses_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/statuses/93eb5a39def5eaeb97966290da1af598e62b4368","head":{"label":"black-perl:changelog_generator","ref":"changelog_generator","sha":"93eb5a39def5eaeb97966290da1af598e62b4368","user":{"login":"black-perl","id":5263761,"avatar_url":"https://avatars.githubusercontent.com/u/5263761?v=3","gravatar_id":"","url":"https://api.github.com/users/black-perl","html_url":"https://github.com/black-perl","followers_url":"https://api.github.com/users/black-perl/followers","following_url":"https://api.github.com/users/black-perl/following{/other_user}","gists_url":"https://api.github.com/users/black-perl/gists{/gist_id}","starred_url":"https://api.github.com/users/black-perl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/black-perl/subscriptions","organizations_url":"https://api.github.com/users/black-perl/orgs","repos_url":"https://api.github.com/users/black-perl/repos","events_url":"https://api.github.com/users/black-perl/events{/privacy}","received_events_url":"https://api.github.com/users/black-perl/received_events","type":"User","site_admin":false},"repo":{"id":61051277,"name":"syslog-ng-autorel","full_name":"black-perl/syslog-ng-autorel","owner":{"login":"black-perl","id":5263761,"avatar_url":"https://avatars.githubusercontent.com/u/5263761?v=3","gravatar_id":"","url":"https://api.github.com/users/black-perl","html_url":"https://github.com/black-perl","followers_url":"https://api.github.com/users/black-perl/followers","following_url":"https://api.github.com/users/black-perl/following{/other_user}","gists_url":"https://api.github.com/users/black-perl/gists{/gist_id}","starred_url":"https://api.github.com/users/black-perl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/black-perl/subscriptions","organizations_url":"https://api.github.com/users/black-perl/orgs","repos_url":"https://api.github.com/users/black-perl/repos","events_url":"https://api.github.com/users/black-perl/events{/privacy}","received_events_url":"https://api.github.com/users/black-perl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/black-perl/syslog-ng-autorel","description":"https://github.com/balabit/syslog-ng/wiki/GSoC2016-Idea-&-Project-list#project-automated-release-generation-for-syslog-ng","fork":true,"url":"https://api.github.com/repos/black-perl/syslog-ng-autorel","forks_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/forks","keys_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/teams","hooks_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/hooks","issue_events_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/issues/events{/number}","events_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/events","assignees_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/assignees{/user}","branches_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/branches{/branch}","tags_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/tags","blobs_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/git/refs{/sha}","trees_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/statuses/{sha}","languages_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/languages","stargazers_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/stargazers","contributors_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/contributors","subscribers_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/subscribers","subscription_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/subscription","commits_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/commits{/sha}","git_commits_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/git/commits{/sha}","comments_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/comments{/number}","issue_comment_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/issues/comments{/number}","contents_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/contents/{+path}","compare_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/merges","archive_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/downloads","issues_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/issues{/number}","pulls_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/pulls{/number}","milestones_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/milestones{/number}","notifications_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/labels{/name}","releases_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/releases{/id}","deployments_url":"https://api.github.com/repos/black-perl/syslog-ng-autorel/deployments","created_at":"2016-06-13T16:16:41Z","updated_at":"2016-05-12T08:40:56Z","pushed_at":"2016-07-03T17:00:22Z","git_url":"git://github.com/black-perl/syslog-ng-autorel.git","ssh_url":"git@github.com:black-perl/syslog-ng-autorel.git","clone_url":"https://github.com/black-perl/syslog-ng-autorel.git","svn_url":"https://github.com/black-perl/syslog-ng-autorel","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":null,"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":"lbudai:experimental","ref":"experimental","sha":"7ee5deaf1fa8b5ffaba8c3bdc4496f0c3dd558ec","user":{"login":"lbudai","id":5908786,"avatar_url":"https://avatars.githubusercontent.com/u/5908786?v=3","gravatar_id":"","url":"https://api.github.com/users/lbudai","html_url":"https://github.com/lbudai","followers_url":"https://api.github.com/users/lbudai/followers","following_url":"https://api.github.com/users/lbudai/following{/other_user}","gists_url":"https://api.github.com/users/lbudai/gists{/gist_id}","starred_url":"https://api.github.com/users/lbudai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbudai/subscriptions","organizations_url":"https://api.github.com/users/lbudai/orgs","repos_url":"https://api.github.com/users/lbudai/repos","events_url":"https://api.github.com/users/lbudai/events{/privacy}","received_events_url":"https://api.github.com/users/lbudai/received_events","type":"User","site_admin":false},"repo":{"id":58623840,"name":"syslog-ng-autorel","full_name":"lbudai/syslog-ng-autorel","owner":{"login":"lbudai","id":5908786,"avatar_url":"https://avatars.githubusercontent.com/u/5908786?v=3","gravatar_id":"","url":"https://api.github.com/users/lbudai","html_url":"https://github.com/lbudai","followers_url":"https://api.github.com/users/lbudai/followers","following_url":"https://api.github.com/users/lbudai/following{/other_user}","gists_url":"https://api.github.com/users/lbudai/gists{/gist_id}","starred_url":"https://api.github.com/users/lbudai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbudai/subscriptions","organizations_url":"https://api.github.com/users/lbudai/orgs","repos_url":"https://api.github.com/users/lbudai/repos","events_url":"https://api.github.com/users/lbudai/events{/privacy}","received_events_url":"https://api.github.com/users/lbudai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lbudai/syslog-ng-autorel","description":"https://github.com/balabit/syslog-ng/wiki/GSoC2016-Idea-&-Project-list#project-automated-release-generation-for-syslog-ng","fork":false,"url":"https://api.github.com/repos/lbudai/syslog-ng-autorel","forks_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/forks","keys_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/teams","hooks_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/hooks","issue_events_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/issues/events{/number}","events_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/events","assignees_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/assignees{/user}","branches_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/branches{/branch}","tags_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/tags","blobs_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/git/refs{/sha}","trees_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/statuses/{sha}","languages_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/languages","stargazers_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/stargazers","contributors_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/contributors","subscribers_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/subscribers","subscription_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/subscription","commits_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/commits{/sha}","git_commits_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/git/commits{/sha}","comments_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/comments{/number}","issue_comment_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/issues/comments{/number}","contents_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/contents/{+path}","compare_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/merges","archive_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/downloads","issues_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/issues{/number}","pulls_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls{/number}","milestones_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/milestones{/number}","notifications_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/labels{/name}","releases_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/releases{/id}","deployments_url":"https://api.github.com/repos/lbudai/syslog-ng-autorel/deployments","created_at":"2016-05-12T08:40:56Z","updated_at":"2016-05-12T08:40:56Z","pushed_at":"2016-07-03T17:00:23Z","git_url":"git://github.com/lbudai/syslog-ng-autorel.git","ssh_url":"git@github.com:lbudai/syslog-ng-autorel.git","clone_url":"https://github.com/lbudai/syslog-ng-autorel.git","svn_url":"https://github.com/lbudai/syslog-ng-autorel","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3"},"html":{"href":"https://github.com/lbudai/syslog-ng-autorel/pull/3"},"issue":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/issues/3"},"comments":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/lbudai/syslog-ng-autorel/statuses/93eb5a39def5eaeb97966290da1af598e62b4368"}}}}
{"actor":{"display_login":"MrAnno"}}