{"action":"closed","number":38,"pull_request":{"url":"https://api.github.com/repos/toolmantim/release-drafter/pulls/38","id":206612414,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NjEyNDE0","html_url":"https://github.com/toolmantim/release-drafter/pull/38","diff_url":"https://github.com/toolmantim/release-drafter/pull/38.diff","patch_url":"https://github.com/toolmantim/release-drafter/pull/38.patch","issue_url":"https://api.github.com/repos/toolmantim/release-drafter/issues/38","number":38,"state":"closed","locked":false,"title":"Fix extracting commit numbers","user":{"login":"balloob","id":1444314,"node_id":"MDQ6VXNlcjE0NDQzMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1444314?v=4","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"body":"When a PR is squashed and merged, the commit message will contain multiple lines:\r\n\r\n```\r\n<PR TITLE> (#<PR NUMBER>)\r\n\r\n<FIRST COMMIT MESSAGE>\r\n\r\n<SECOND COMMIT MESSAGE>\r\n\r\netc\r\n```\r\n\r\nWhen we were extracting PR numbers, we were matching against a commit message ending in ` (#1234)`. However, we should have looked at the first line of a commit message ending in that.\r\n\r\nFixes #29","created_at":"2018-08-07T08:03:27Z","updated_at":"2018-08-07T10:07:03Z","closed_at":"2018-08-07T10:07:03Z","merged_at":"2018-08-07T10:07:03Z","merge_commit_sha":"068d79aabdacbb84223a303f8747fd5e4961fd51","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/toolmantim/release-drafter/pulls/38/commits","review_comments_url":"https://api.github.com/repos/toolmantim/release-drafter/pulls/38/comments","review_comment_url":"https://api.github.com/repos/toolmantim/release-drafter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toolmantim/release-drafter/issues/38/comments","statuses_url":"https://api.github.com/repos/toolmantim/release-drafter/statuses/e760a21df788eebc46343c720957a60908efcc99","head":{"label":"balloob:tests-commit-extract","ref":"tests-commit-extract","sha":"e760a21df788eebc46343c720957a60908efcc99","user":{"login":"balloob","id":1444314,"node_id":"MDQ6VXNlcjE0NDQzMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1444314?v=4","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"repo":{"id":141457763,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE0NTc3NjM=","name":"release-drafter","full_name":"balloob/release-drafter","owner":{"login":"balloob","id":1444314,"node_id":"MDQ6VXNlcjE0NDQzMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1444314?v=4","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/balloob/release-drafter","description":"Drafts your next release notes as pull requests are merged into master. ","fork":true,"url":"https://api.github.com/repos/balloob/release-drafter","forks_url":"https://api.github.com/repos/balloob/release-drafter/forks","keys_url":"https://api.github.com/repos/balloob/release-drafter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balloob/release-drafter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balloob/release-drafter/teams","hooks_url":"https://api.github.com/repos/balloob/release-drafter/hooks","issue_events_url":"https://api.github.com/repos/balloob/release-drafter/issues/events{/number}","events_url":"https://api.github.com/repos/balloob/release-drafter/events","assignees_url":"https://api.github.com/repos/balloob/release-drafter/assignees{/user}","branches_url":"https://api.github.com/repos/balloob/release-drafter/branches{/branch}","tags_url":"https://api.github.com/repos/balloob/release-drafter/tags","blobs_url":"https://api.github.com/repos/balloob/release-drafter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balloob/release-drafter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balloob/release-drafter/git/refs{/sha}","trees_url":"https://api.github.com/repos/balloob/release-drafter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balloob/release-drafter/statuses/{sha}","languages_url":"https://api.github.com/repos/balloob/release-drafter/languages","stargazers_url":"https://api.github.com/repos/balloob/release-drafter/stargazers","contributors_url":"https://api.github.com/repos/balloob/release-drafter/contributors","subscribers_url":"https://api.github.com/repos/balloob/release-drafter/subscribers","subscription_url":"https://api.github.com/repos/balloob/release-drafter/subscription","commits_url":"https://api.github.com/repos/balloob/release-drafter/commits{/sha}","git_commits_url":"https://api.github.com/repos/balloob/release-drafter/git/commits{/sha}","comments_url":"https://api.github.com/repos/balloob/release-drafter/comments{/number}","issue_comment_url":"https://api.github.com/repos/balloob/release-drafter/issues/comments{/number}","contents_url":"https://api.github.com/repos/balloob/release-drafter/contents/{+path}","compare_url":"https://api.github.com/repos/balloob/release-drafter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balloob/release-drafter/merges","archive_url":"https://api.github.com/repos/balloob/release-drafter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balloob/release-drafter/downloads","issues_url":"https://api.github.com/repos/balloob/release-drafter/issues{/number}","pulls_url":"https://api.github.com/repos/balloob/release-drafter/pulls{/number}","milestones_url":"https://api.github.com/repos/balloob/release-drafter/milestones{/number}","notifications_url":"https://api.github.com/repos/balloob/release-drafter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balloob/release-drafter/labels{/name}","releases_url":"https://api.github.com/repos/balloob/release-drafter/releases{/id}","deployments_url":"https://api.github.com/repos/balloob/release-drafter/deployments","created_at":"2018-07-18T15:57:31Z","updated_at":"2018-07-18T15:57:33Z","pushed_at":"2018-08-07T10:04:33Z","git_url":"git://github.com/balloob/release-drafter.git","ssh_url":"git@github.com:balloob/release-drafter.git","clone_url":"https://github.com/balloob/release-drafter.git","svn_url":"https://github.com/balloob/release-drafter","homepage":"https://github.com/apps/release-drafter","size":523,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"toolmantim:master","ref":"master","sha":"49a3fd70f031a7ab7e5cf9c73700aba8e690257f","user":{"login":"toolmantim","id":153,"node_id":"MDQ6VXNlcjE1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/153?v=4","gravatar_id":"","url":"https://api.github.com/users/toolmantim","html_url":"https://github.com/toolmantim","followers_url":"https://api.github.com/users/toolmantim/followers","following_url":"https://api.github.com/users/toolmantim/following{/other_user}","gists_url":"https://api.github.com/users/toolmantim/gists{/gist_id}","starred_url":"https://api.github.com/users/toolmantim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolmantim/subscriptions","organizations_url":"https://api.github.com/users/toolmantim/orgs","repos_url":"https://api.github.com/users/toolmantim/repos","events_url":"https://api.github.com/users/toolmantim/events{/privacy}","received_events_url":"https://api.github.com/users/toolmantim/received_events","type":"User","site_admin":false},"repo":{"id":139022359,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkwMjIzNTk=","name":"release-drafter","full_name":"toolmantim/release-drafter","owner":{"login":"toolmantim","id":153,"node_id":"MDQ6VXNlcjE1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/153?v=4","gravatar_id":"","url":"https://api.github.com/users/toolmantim","html_url":"https://github.com/toolmantim","followers_url":"https://api.github.com/users/toolmantim/followers","following_url":"https://api.github.com/users/toolmantim/following{/other_user}","gists_url":"https://api.github.com/users/toolmantim/gists{/gist_id}","starred_url":"https://api.github.com/users/toolmantim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolmantim/subscriptions","organizations_url":"https://api.github.com/users/toolmantim/orgs","repos_url":"https://api.github.com/users/toolmantim/repos","events_url":"https://api.github.com/users/toolmantim/events{/privacy}","received_events_url":"https://api.github.com/users/toolmantim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toolmantim/release-drafter","description":"Drafts your next release notes as pull requests are merged into master. ","fork":false,"url":"https://api.github.com/repos/toolmantim/release-drafter","forks_url":"https://api.github.com/repos/toolmantim/release-drafter/forks","keys_url":"https://api.github.com/repos/toolmantim/release-drafter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toolmantim/release-drafter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toolmantim/release-drafter/teams","hooks_url":"https://api.github.com/repos/toolmantim/release-drafter/hooks","issue_events_url":"https://api.github.com/repos/toolmantim/release-drafter/issues/events{/number}","events_url":"https://api.github.com/repos/toolmantim/release-drafter/events","assignees_url":"https://api.github.com/repos/toolmantim/release-drafter/assignees{/user}","branches_url":"https://api.github.com/repos/toolmantim/release-drafter/branches{/branch}","tags_url":"https://api.github.com/repos/toolmantim/release-drafter/tags","blobs_url":"https://api.github.com/repos/toolmantim/release-drafter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toolmantim/release-drafter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toolmantim/release-drafter/git/refs{/sha}","trees_url":"https://api.github.com/repos/toolmantim/release-drafter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toolmantim/release-drafter/statuses/{sha}","languages_url":"https://api.github.com/repos/toolmantim/release-drafter/languages","stargazers_url":"https://api.github.com/repos/toolmantim/release-drafter/stargazers","contributors_url":"https://api.github.com/repos/toolmantim/release-drafter/contributors","subscribers_url":"https://api.github.com/repos/toolmantim/release-drafter/subscribers","subscription_url":"https://api.github.com/repos/toolmantim/release-drafter/subscription","commits_url":"https://api.github.com/repos/toolmantim/release-drafter/commits{/sha}","git_commits_url":"https://api.github.com/repos/toolmantim/release-drafter/git/commits{/sha}","comments_url":"https://api.github.com/repos/toolmantim/release-drafter/comments{/number}","issue_comment_url":"https://api.github.com/repos/toolmantim/release-drafter/issues/comments{/number}","contents_url":"https://api.github.com/repos/toolmantim/release-drafter/contents/{+path}","compare_url":"https://api.github.com/repos/toolmantim/release-drafter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toolmantim/release-drafter/merges","archive_url":"https://api.github.com/repos/toolmantim/release-drafter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toolmantim/release-drafter/downloads","issues_url":"https://api.github.com/repos/toolmantim/release-drafter/issues{/number}","pulls_url":"https://api.github.com/repos/toolmantim/release-drafter/pulls{/number}","milestones_url":"https://api.github.com/repos/toolmantim/release-drafter/milestones{/number}","notifications_url":"https://api.github.com/repos/toolmantim/release-drafter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toolmantim/release-drafter/labels{/name}","releases_url":"https://api.github.com/repos/toolmantim/release-drafter/releases{/id}","deployments_url":"https://api.github.com/repos/toolmantim/release-drafter/deployments","created_at":"2018-06-28T13:31:05Z","updated_at":"2018-08-06T21:54:43Z","pushed_at":"2018-08-07T10:07:03Z","git_url":"git://github.com/toolmantim/release-drafter.git","ssh_url":"git@github.com:toolmantim/release-drafter.git","clone_url":"https://github.com/toolmantim/release-drafter.git","svn_url":"https://github.com/toolmantim/release-drafter","homepage":"https://github.com/apps/release-drafter","size":699,"stargazers_count":221,"watchers_count":221,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":5,"open_issues":1,"watchers":221,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toolmantim/release-drafter/pulls/38"},"html":{"href":"https://github.com/toolmantim/release-drafter/pull/38"},"issue":{"href":"https://api.github.com/repos/toolmantim/release-drafter/issues/38"},"comments":{"href":"https://api.github.com/repos/toolmantim/release-drafter/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/toolmantim/release-drafter/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/toolmantim/release-drafter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toolmantim/release-drafter/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/toolmantim/release-drafter/statuses/e760a21df788eebc46343c720957a60908efcc99"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"toolmantim","id":153,"node_id":"MDQ6VXNlcjE1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/153?v=4","gravatar_id":"","url":"https://api.github.com/users/toolmantim","html_url":"https://github.com/toolmantim","followers_url":"https://api.github.com/users/toolmantim/followers","following_url":"https://api.github.com/users/toolmantim/following{/other_user}","gists_url":"https://api.github.com/users/toolmantim/gists{/gist_id}","starred_url":"https://api.github.com/users/toolmantim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolmantim/subscriptions","organizations_url":"https://api.github.com/users/toolmantim/orgs","repos_url":"https://api.github.com/users/toolmantim/repos","events_url":"https://api.github.com/users/toolmantim/events{/privacy}","received_events_url":"https://api.github.com/users/toolmantim/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":29,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"toolmantim"}}