{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments/120237070","pull_request_review_id":42182511,"id":120237070,"diff_hunk":"@@ -37,7 +37,7 @@ const (\n \tnoIssueArgument = \"no-issue\"\n )\n \n-var AssociatedIssueRegex = regexp.MustCompile(`#(\\d+)`)\n+var AssociatedIssueRegex = regexp.MustCompile(`(?:kubernetes/\\w+/issues/|#)(\\d+)`)","path":"mungegithub/mungers/approval-handler.go","position":5,"original_position":5,"commit_id":"b057e277ed82ba5cad844f38149838ae07e94807","original_commit_id":"b057e277ed82ba5cad844f38149838ae07e94807","user":{"login":"grodrigues3","id":4854198,"avatar_url":"https://avatars2.githubusercontent.com/u/4854198?v=3","gravatar_id":"","url":"https://api.github.com/users/grodrigues3","html_url":"https://github.com/grodrigues3","followers_url":"https://api.github.com/users/grodrigues3/followers","following_url":"https://api.github.com/users/grodrigues3/following{/other_user}","gists_url":"https://api.github.com/users/grodrigues3/gists{/gist_id}","starred_url":"https://api.github.com/users/grodrigues3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grodrigues3/subscriptions","organizations_url":"https://api.github.com/users/grodrigues3/orgs","repos_url":"https://api.github.com/users/grodrigues3/repos","events_url":"https://api.github.com/users/grodrigues3/events{/privacy}","received_events_url":"https://api.github.com/users/grodrigues3/received_events","type":"User","site_admin":false},"body":"is hyphen supported (e.g `kubernetes/test-infra`)","created_at":"2017-06-05T23:49:17Z","updated_at":"2017-06-05T23:49:17Z","html_url":"https://github.com/kubernetes/test-infra/pull/2968#discussion_r120237070","pull_request_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments/120237070"},"html":{"href":"https://github.com/kubernetes/test-infra/pull/2968#discussion_r120237070"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968","id":124080534,"html_url":"https://github.com/kubernetes/test-infra/pull/2968","diff_url":"https://github.com/kubernetes/test-infra/pull/2968.diff","patch_url":"https://github.com/kubernetes/test-infra/pull/2968.patch","issue_url":"https://api.github.com/repos/kubernetes/test-infra/issues/2968","number":2968,"state":"open","locked":false,"title":"approval: Improve associated issue regex","user":{"login":"apelisse","id":1929644,"avatar_url":"https://avatars3.githubusercontent.com/u/1929644?v=3","gravatar_id":"","url":"https://api.github.com/users/apelisse","html_url":"https://github.com/apelisse","followers_url":"https://api.github.com/users/apelisse/followers","following_url":"https://api.github.com/users/apelisse/following{/other_user}","gists_url":"https://api.github.com/users/apelisse/gists{/gist_id}","starred_url":"https://api.github.com/users/apelisse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apelisse/subscriptions","organizations_url":"https://api.github.com/users/apelisse/orgs","repos_url":"https://api.github.com/users/apelisse/repos","events_url":"https://api.github.com/users/apelisse/events{/privacy}","received_events_url":"https://api.github.com/users/apelisse/received_events","type":"User","site_admin":false},"body":"Associated issue can be of the form: kubernetes/something/issues/number","created_at":"2017-06-05T23:18:43Z","updated_at":"2017-06-05T23:49:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af2c8c3351746e407c60163daac1823ce2592c8f","assignee":{"login":"foxish","id":906471,"avatar_url":"https://avatars2.githubusercontent.com/u/906471?v=3","gravatar_id":"","url":"https://api.github.com/users/foxish","html_url":"https://github.com/foxish","followers_url":"https://api.github.com/users/foxish/followers","following_url":"https://api.github.com/users/foxish/following{/other_user}","gists_url":"https://api.github.com/users/foxish/gists{/gist_id}","starred_url":"https://api.github.com/users/foxish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxish/subscriptions","organizations_url":"https://api.github.com/users/foxish/orgs","repos_url":"https://api.github.com/users/foxish/repos","events_url":"https://api.github.com/users/foxish/events{/privacy}","received_events_url":"https://api.github.com/users/foxish/received_events","type":"User","site_admin":false},"assignees":[{"login":"foxish","id":906471,"avatar_url":"https://avatars2.githubusercontent.com/u/906471?v=3","gravatar_id":"","url":"https://api.github.com/users/foxish","html_url":"https://github.com/foxish","followers_url":"https://api.github.com/users/foxish/followers","following_url":"https://api.github.com/users/foxish/following{/other_user}","gists_url":"https://api.github.com/users/foxish/gists{/gist_id}","starred_url":"https://api.github.com/users/foxish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxish/subscriptions","organizations_url":"https://api.github.com/users/foxish/orgs","repos_url":"https://api.github.com/users/foxish/repos","events_url":"https://api.github.com/users/foxish/events{/privacy}","received_events_url":"https://api.github.com/users/foxish/received_events","type":"User","site_admin":false},{"login":"grodrigues3","id":4854198,"avatar_url":"https://avatars2.githubusercontent.com/u/4854198?v=3","gravatar_id":"","url":"https://api.github.com/users/grodrigues3","html_url":"https://github.com/grodrigues3","followers_url":"https://api.github.com/users/grodrigues3/followers","following_url":"https://api.github.com/users/grodrigues3/following{/other_user}","gists_url":"https://api.github.com/users/grodrigues3/gists{/gist_id}","starred_url":"https://api.github.com/users/grodrigues3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grodrigues3/subscriptions","organizations_url":"https://api.github.com/users/grodrigues3/orgs","repos_url":"https://api.github.com/users/grodrigues3/repos","events_url":"https://api.github.com/users/grodrigues3/events{/privacy}","received_events_url":"https://api.github.com/users/grodrigues3/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968/commits","review_comments_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968/comments","review_comment_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/test-infra/issues/2968/comments","statuses_url":"https://api.github.com/repos/kubernetes/test-infra/statuses/b057e277ed82ba5cad844f38149838ae07e94807","head":{"label":"apelisse:pr-needs-issue","ref":"pr-needs-issue","sha":"b057e277ed82ba5cad844f38149838ae07e94807","user":{"login":"apelisse","id":1929644,"avatar_url":"https://avatars3.githubusercontent.com/u/1929644?v=3","gravatar_id":"","url":"https://api.github.com/users/apelisse","html_url":"https://github.com/apelisse","followers_url":"https://api.github.com/users/apelisse/followers","following_url":"https://api.github.com/users/apelisse/following{/other_user}","gists_url":"https://api.github.com/users/apelisse/gists{/gist_id}","starred_url":"https://api.github.com/users/apelisse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apelisse/subscriptions","organizations_url":"https://api.github.com/users/apelisse/orgs","repos_url":"https://api.github.com/users/apelisse/repos","events_url":"https://api.github.com/users/apelisse/events{/privacy}","received_events_url":"https://api.github.com/users/apelisse/received_events","type":"User","site_admin":false},"repo":{"id":62752810,"name":"test-infra","full_name":"apelisse/test-infra","owner":{"login":"apelisse","id":1929644,"avatar_url":"https://avatars3.githubusercontent.com/u/1929644?v=3","gravatar_id":"","url":"https://api.github.com/users/apelisse","html_url":"https://github.com/apelisse","followers_url":"https://api.github.com/users/apelisse/followers","following_url":"https://api.github.com/users/apelisse/following{/other_user}","gists_url":"https://api.github.com/users/apelisse/gists{/gist_id}","starred_url":"https://api.github.com/users/apelisse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apelisse/subscriptions","organizations_url":"https://api.github.com/users/apelisse/orgs","repos_url":"https://api.github.com/users/apelisse/repos","events_url":"https://api.github.com/users/apelisse/events{/privacy}","received_events_url":"https://api.github.com/users/apelisse/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apelisse/test-infra","description":"Test infrastructure for the Kubernetes project.","fork":true,"url":"https://api.github.com/repos/apelisse/test-infra","forks_url":"https://api.github.com/repos/apelisse/test-infra/forks","keys_url":"https://api.github.com/repos/apelisse/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apelisse/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apelisse/test-infra/teams","hooks_url":"https://api.github.com/repos/apelisse/test-infra/hooks","issue_events_url":"https://api.github.com/repos/apelisse/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/apelisse/test-infra/events","assignees_url":"https://api.github.com/repos/apelisse/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/apelisse/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/apelisse/test-infra/tags","blobs_url":"https://api.github.com/repos/apelisse/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apelisse/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apelisse/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/apelisse/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apelisse/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/apelisse/test-infra/languages","stargazers_url":"https://api.github.com/repos/apelisse/test-infra/stargazers","contributors_url":"https://api.github.com/repos/apelisse/test-infra/contributors","subscribers_url":"https://api.github.com/repos/apelisse/test-infra/subscribers","subscription_url":"https://api.github.com/repos/apelisse/test-infra/subscription","commits_url":"https://api.github.com/repos/apelisse/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/apelisse/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/apelisse/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/apelisse/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/apelisse/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/apelisse/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apelisse/test-infra/merges","archive_url":"https://api.github.com/repos/apelisse/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apelisse/test-infra/downloads","issues_url":"https://api.github.com/repos/apelisse/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/apelisse/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/apelisse/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/apelisse/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apelisse/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/apelisse/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/apelisse/test-infra/deployments","created_at":"2016-07-06T20:57:51Z","updated_at":"2016-07-06T20:57:52Z","pushed_at":"2017-06-05T23:18:34Z","git_url":"git://github.com/apelisse/test-infra.git","ssh_url":"git@github.com:apelisse/test-infra.git","clone_url":"https://github.com/apelisse/test-infra.git","svn_url":"https://github.com/apelisse/test-infra","homepage":null,"size":18736,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"kubernetes:master","ref":"master","sha":"6420c0a27e6e5e0f0111e3a1f949214b968356d8","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars1.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":57333709,"name":"test-infra","full_name":"kubernetes/test-infra","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars1.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/test-infra","description":"Test infrastructure for the Kubernetes project.","fork":false,"url":"https://api.github.com/repos/kubernetes/test-infra","forks_url":"https://api.github.com/repos/kubernetes/test-infra/forks","keys_url":"https://api.github.com/repos/kubernetes/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/test-infra/teams","hooks_url":"https://api.github.com/repos/kubernetes/test-infra/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/test-infra/events","assignees_url":"https://api.github.com/repos/kubernetes/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/test-infra/tags","blobs_url":"https://api.github.com/repos/kubernetes/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/test-infra/languages","stargazers_url":"https://api.github.com/repos/kubernetes/test-infra/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/test-infra/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/test-infra/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/test-infra/subscription","commits_url":"https://api.github.com/repos/kubernetes/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/test-infra/merges","archive_url":"https://api.github.com/repos/kubernetes/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/test-infra/downloads","issues_url":"https://api.github.com/repos/kubernetes/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/test-infra/deployments","created_at":"2016-04-28T21:05:35Z","updated_at":"2017-06-05T18:52:30Z","pushed_at":"2017-06-05T23:41:24Z","git_url":"git://github.com/kubernetes/test-infra.git","ssh_url":"git@github.com:kubernetes/test-infra.git","clone_url":"https://github.com/kubernetes/test-infra.git","svn_url":"https://github.com/kubernetes/test-infra","homepage":null,"size":19531,"stargazers_count":91,"watchers_count":91,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":204,"forks":146,"open_issues":204,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968"},"html":{"href":"https://github.com/kubernetes/test-infra/pull/2968"},"issue":{"href":"https://api.github.com/repos/kubernetes/test-infra/issues/2968"},"comments":{"href":"https://api.github.com/repos/kubernetes/test-infra/issues/2968/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2968/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/test-infra/statuses/b057e277ed82ba5cad844f38149838ae07e94807"}}}}
{"actor":{"display_login":"grodrigues3"}}