{"action":"created","comment":{"url":"https://api.github.com/repos/gugod/App-perlbrew/pulls/comments/197631169","pull_request_review_id":131414707,"id":197631169,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzYzMTE2OQ==","diff_hunk":"@@ -885,16 +885,14 @@ sub available_perls_with_urls {\n     # and we do our own processing to filter out the development\n     # releases and minor versions when needed (using\n     # filter_perl_available)\n-    $url = 'https://fastapi.metacpan.org/v1/release/_search'\n-        . '\\?q=distribution:perl%20AND%20archive:perl-5.%2A.%2A.tar.gz%20AND%20NOT%20status:backpan'\n-        . '\\&fields=download_url\\&size=100';\n+    $url = 'https://fastapi.metacpan.org/v1/release/versions/perl';\n     $html = http_get( $url, undef, undef );\n     unless($html) {\n         $html = '';\n         warn \"\\nERROR: Unable to retrieve list of perls from Metacpan.\\n\\n\";\n     }\n-    while ( $html =~ m|\"(http(?:s?)://cpan\\.metacpan\\.org/[^\"]+/(perl-5\\.[0-9]+\\.[0-9]+(?:-[A-Z0-9]+)?)\\.tar\\.gz)\"|g ) {\n-        my ( $current_perl, $current_url ) = ( $2, $1 );;\n+    while ( $html =~ m{\"(http(?:s?)://cpan\\.metacpan\\.org/[^\"]+/(perl-5\\.[0-9]+\\.[0-9]+(?:-[A-Z0-9]+)?)\\.tar\\.(?:bz2|gz))\"}g ) {","path":"lib/App/perlbrew.pm","position":15,"original_position":15,"commit_id":"a9fe89adb68f5262eab0cb041c2cd5cccc7b6735","original_commit_id":"a9fe89adb68f5262eab0cb041c2cd5cccc7b6735","user":{"login":"skaji","id":1589550,"node_id":"MDQ6VXNlcjE1ODk1NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1589550?v=4","gravatar_id":"","url":"https://api.github.com/users/skaji","html_url":"https://github.com/skaji","followers_url":"https://api.github.com/users/skaji/followers","following_url":"https://api.github.com/users/skaji/following{/other_user}","gists_url":"https://api.github.com/users/skaji/gists{/gist_id}","starred_url":"https://api.github.com/users/skaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skaji/subscriptions","organizations_url":"https://api.github.com/users/skaji/orgs","repos_url":"https://api.github.com/users/skaji/repos","events_url":"https://api.github.com/users/skaji/events{/privacy}","received_events_url":"https://api.github.com/users/skaji/received_events","type":"User","site_admin":false},"body":"https://github.com/gugod/App-perlbrew/blob/develop/lib/App/perlbrew.pm#L998 takes care of xz too.\r\nDo you want to follow that?","created_at":"2018-06-24T07:44:32Z","updated_at":"2018-06-24T07:44:32Z","html_url":"https://github.com/gugod/App-perlbrew/pull/624#discussion_r197631169","pull_request_url":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gugod/App-perlbrew/pulls/comments/197631169"},"html":{"href":"https://github.com/gugod/App-perlbrew/pull/624#discussion_r197631169"},"pull_request":{"href":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624"}}},"pull_request":{"url":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624","id":196934704,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2OTM0NzA0","html_url":"https://github.com/gugod/App-perlbrew/pull/624","diff_url":"https://github.com/gugod/App-perlbrew/pull/624.diff","patch_url":"https://github.com/gugod/App-perlbrew/pull/624.patch","issue_url":"https://api.github.com/repos/gugod/App-perlbrew/issues/624","number":624,"state":"open","locked":false,"title":"Use proper metacpan endpoint","user":{"login":"jmaslak","id":673827,"node_id":"MDQ6VXNlcjY3MzgyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/673827?v=4","gravatar_id":"","url":"https://api.github.com/users/jmaslak","html_url":"https://github.com/jmaslak","followers_url":"https://api.github.com/users/jmaslak/followers","following_url":"https://api.github.com/users/jmaslak/following{/other_user}","gists_url":"https://api.github.com/users/jmaslak/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaslak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaslak/subscriptions","organizations_url":"https://api.github.com/users/jmaslak/orgs","repos_url":"https://api.github.com/users/jmaslak/repos","events_url":"https://api.github.com/users/jmaslak/events{/privacy}","received_events_url":"https://api.github.com/users/jmaslak/received_events","type":"User","site_admin":false},"body":"This fixes 2 of the 3 things mentioned in comments on #622 \r\n\r\nThis will fix the issue with missing *bz2's and the use of a less-than-optimal metacpan API endpoint.","created_at":"2018-06-24T06:15:01Z","updated_at":"2018-06-24T07:44:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19a2d0e158464298d1674713bda176657fa2c14f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624/commits","review_comments_url":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624/comments","review_comment_url":"https://api.github.com/repos/gugod/App-perlbrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gugod/App-perlbrew/issues/624/comments","statuses_url":"https://api.github.com/repos/gugod/App-perlbrew/statuses/a9fe89adb68f5262eab0cb041c2cd5cccc7b6735","head":{"label":"jmaslak:use-metacpan","ref":"use-metacpan","sha":"a9fe89adb68f5262eab0cb041c2cd5cccc7b6735","user":{"login":"jmaslak","id":673827,"node_id":"MDQ6VXNlcjY3MzgyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/673827?v=4","gravatar_id":"","url":"https://api.github.com/users/jmaslak","html_url":"https://github.com/jmaslak","followers_url":"https://api.github.com/users/jmaslak/followers","following_url":"https://api.github.com/users/jmaslak/following{/other_user}","gists_url":"https://api.github.com/users/jmaslak/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaslak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaslak/subscriptions","organizations_url":"https://api.github.com/users/jmaslak/orgs","repos_url":"https://api.github.com/users/jmaslak/repos","events_url":"https://api.github.com/users/jmaslak/events{/privacy}","received_events_url":"https://api.github.com/users/jmaslak/received_events","type":"User","site_admin":false},"repo":{"id":78876001,"node_id":"MDEwOlJlcG9zaXRvcnk3ODg3NjAwMQ==","name":"App-perlbrew","full_name":"jmaslak/App-perlbrew","owner":{"login":"jmaslak","id":673827,"node_id":"MDQ6VXNlcjY3MzgyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/673827?v=4","gravatar_id":"","url":"https://api.github.com/users/jmaslak","html_url":"https://github.com/jmaslak","followers_url":"https://api.github.com/users/jmaslak/followers","following_url":"https://api.github.com/users/jmaslak/following{/other_user}","gists_url":"https://api.github.com/users/jmaslak/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaslak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaslak/subscriptions","organizations_url":"https://api.github.com/users/jmaslak/orgs","repos_url":"https://api.github.com/users/jmaslak/repos","events_url":"https://api.github.com/users/jmaslak/events{/privacy}","received_events_url":"https://api.github.com/users/jmaslak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmaslak/App-perlbrew","description":"Manage perl installations in your $HOME","fork":true,"url":"https://api.github.com/repos/jmaslak/App-perlbrew","forks_url":"https://api.github.com/repos/jmaslak/App-perlbrew/forks","keys_url":"https://api.github.com/repos/jmaslak/App-perlbrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmaslak/App-perlbrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmaslak/App-perlbrew/teams","hooks_url":"https://api.github.com/repos/jmaslak/App-perlbrew/hooks","issue_events_url":"https://api.github.com/repos/jmaslak/App-perlbrew/issues/events{/number}","events_url":"https://api.github.com/repos/jmaslak/App-perlbrew/events","assignees_url":"https://api.github.com/repos/jmaslak/App-perlbrew/assignees{/user}","branches_url":"https://api.github.com/repos/jmaslak/App-perlbrew/branches{/branch}","tags_url":"https://api.github.com/repos/jmaslak/App-perlbrew/tags","blobs_url":"https://api.github.com/repos/jmaslak/App-perlbrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmaslak/App-perlbrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmaslak/App-perlbrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmaslak/App-perlbrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmaslak/App-perlbrew/statuses/{sha}","languages_url":"https://api.github.com/repos/jmaslak/App-perlbrew/languages","stargazers_url":"https://api.github.com/repos/jmaslak/App-perlbrew/stargazers","contributors_url":"https://api.github.com/repos/jmaslak/App-perlbrew/contributors","subscribers_url":"https://api.github.com/repos/jmaslak/App-perlbrew/subscribers","subscription_url":"https://api.github.com/repos/jmaslak/App-perlbrew/subscription","commits_url":"https://api.github.com/repos/jmaslak/App-perlbrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmaslak/App-perlbrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmaslak/App-perlbrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmaslak/App-perlbrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmaslak/App-perlbrew/contents/{+path}","compare_url":"https://api.github.com/repos/jmaslak/App-perlbrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmaslak/App-perlbrew/merges","archive_url":"https://api.github.com/repos/jmaslak/App-perlbrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmaslak/App-perlbrew/downloads","issues_url":"https://api.github.com/repos/jmaslak/App-perlbrew/issues{/number}","pulls_url":"https://api.github.com/repos/jmaslak/App-perlbrew/pulls{/number}","milestones_url":"https://api.github.com/repos/jmaslak/App-perlbrew/milestones{/number}","notifications_url":"https://api.github.com/repos/jmaslak/App-perlbrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmaslak/App-perlbrew/labels{/name}","releases_url":"https://api.github.com/repos/jmaslak/App-perlbrew/releases{/id}","deployments_url":"https://api.github.com/repos/jmaslak/App-perlbrew/deployments","created_at":"2017-01-13T18:39:47Z","updated_at":"2018-06-24T05:14:16Z","pushed_at":"2018-06-24T06:06:08Z","git_url":"git://github.com/jmaslak/App-perlbrew.git","ssh_url":"git@github.com:jmaslak/App-perlbrew.git","clone_url":"https://github.com/jmaslak/App-perlbrew.git","svn_url":"https://github.com/jmaslak/App-perlbrew","homepage":"http://perlbrew.pl","size":3316,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"gugod:develop","ref":"develop","sha":"183f087a6a6198de93e4024e68ea7be7eef2154a","user":{"login":"gugod","id":4970,"node_id":"MDQ6VXNlcjQ5NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/4970?v=4","gravatar_id":"","url":"https://api.github.com/users/gugod","html_url":"https://github.com/gugod","followers_url":"https://api.github.com/users/gugod/followers","following_url":"https://api.github.com/users/gugod/following{/other_user}","gists_url":"https://api.github.com/users/gugod/gists{/gist_id}","starred_url":"https://api.github.com/users/gugod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gugod/subscriptions","organizations_url":"https://api.github.com/users/gugod/orgs","repos_url":"https://api.github.com/users/gugod/repos","events_url":"https://api.github.com/users/gugod/events{/privacy}","received_events_url":"https://api.github.com/users/gugod/received_events","type":"User","site_admin":false},"repo":{"id":538431,"node_id":"MDEwOlJlcG9zaXRvcnk1Mzg0MzE=","name":"App-perlbrew","full_name":"gugod/App-perlbrew","owner":{"login":"gugod","id":4970,"node_id":"MDQ6VXNlcjQ5NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/4970?v=4","gravatar_id":"","url":"https://api.github.com/users/gugod","html_url":"https://github.com/gugod","followers_url":"https://api.github.com/users/gugod/followers","following_url":"https://api.github.com/users/gugod/following{/other_user}","gists_url":"https://api.github.com/users/gugod/gists{/gist_id}","starred_url":"https://api.github.com/users/gugod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gugod/subscriptions","organizations_url":"https://api.github.com/users/gugod/orgs","repos_url":"https://api.github.com/users/gugod/repos","events_url":"https://api.github.com/users/gugod/events{/privacy}","received_events_url":"https://api.github.com/users/gugod/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gugod/App-perlbrew","description":"Manage perl installations in your $HOME","fork":false,"url":"https://api.github.com/repos/gugod/App-perlbrew","forks_url":"https://api.github.com/repos/gugod/App-perlbrew/forks","keys_url":"https://api.github.com/repos/gugod/App-perlbrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gugod/App-perlbrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gugod/App-perlbrew/teams","hooks_url":"https://api.github.com/repos/gugod/App-perlbrew/hooks","issue_events_url":"https://api.github.com/repos/gugod/App-perlbrew/issues/events{/number}","events_url":"https://api.github.com/repos/gugod/App-perlbrew/events","assignees_url":"https://api.github.com/repos/gugod/App-perlbrew/assignees{/user}","branches_url":"https://api.github.com/repos/gugod/App-perlbrew/branches{/branch}","tags_url":"https://api.github.com/repos/gugod/App-perlbrew/tags","blobs_url":"https://api.github.com/repos/gugod/App-perlbrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gugod/App-perlbrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gugod/App-perlbrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/gugod/App-perlbrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gugod/App-perlbrew/statuses/{sha}","languages_url":"https://api.github.com/repos/gugod/App-perlbrew/languages","stargazers_url":"https://api.github.com/repos/gugod/App-perlbrew/stargazers","contributors_url":"https://api.github.com/repos/gugod/App-perlbrew/contributors","subscribers_url":"https://api.github.com/repos/gugod/App-perlbrew/subscribers","subscription_url":"https://api.github.com/repos/gugod/App-perlbrew/subscription","commits_url":"https://api.github.com/repos/gugod/App-perlbrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/gugod/App-perlbrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/gugod/App-perlbrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/gugod/App-perlbrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/gugod/App-perlbrew/contents/{+path}","compare_url":"https://api.github.com/repos/gugod/App-perlbrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gugod/App-perlbrew/merges","archive_url":"https://api.github.com/repos/gugod/App-perlbrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gugod/App-perlbrew/downloads","issues_url":"https://api.github.com/repos/gugod/App-perlbrew/issues{/number}","pulls_url":"https://api.github.com/repos/gugod/App-perlbrew/pulls{/number}","milestones_url":"https://api.github.com/repos/gugod/App-perlbrew/milestones{/number}","notifications_url":"https://api.github.com/repos/gugod/App-perlbrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gugod/App-perlbrew/labels{/name}","releases_url":"https://api.github.com/repos/gugod/App-perlbrew/releases{/id}","deployments_url":"https://api.github.com/repos/gugod/App-perlbrew/deployments","created_at":"2010-02-27T08:30:09Z","updated_at":"2018-06-24T04:55:26Z","pushed_at":"2018-06-24T06:15:02Z","git_url":"git://github.com/gugod/App-perlbrew.git","ssh_url":"git@github.com:gugod/App-perlbrew.git","clone_url":"https://github.com/gugod/App-perlbrew.git","svn_url":"https://github.com/gugod/App-perlbrew","homepage":"http://perlbrew.pl","size":3310,"stargazers_count":585,"watchers_count":585,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":197,"mirror_url":null,"archived":false,"open_issues_count":147,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":197,"open_issues":147,"watchers":585,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624"},"html":{"href":"https://github.com/gugod/App-perlbrew/pull/624"},"issue":{"href":"https://api.github.com/repos/gugod/App-perlbrew/issues/624"},"comments":{"href":"https://api.github.com/repos/gugod/App-perlbrew/issues/624/comments"},"review_comments":{"href":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624/comments"},"review_comment":{"href":"https://api.github.com/repos/gugod/App-perlbrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gugod/App-perlbrew/pulls/624/commits"},"statuses":{"href":"https://api.github.com/repos/gugod/App-perlbrew/statuses/a9fe89adb68f5262eab0cb041c2cd5cccc7b6735"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"skaji"}}