{"action":"created","comment":{"url":"https://api.github.com/repos/perlorg/perlweb/pulls/comments/55477646","id":55477646,"diff_hunk":"@@ -62,6 +64,60 @@ sub _calc_auth_token {\n     return '1-' . sha1_hex('8wae4ko -  this is very secret!' . $cookie);\n }\n \n+sub as_json {\n+    my ($self, $reviews, $mode, $id) = @_;\n+\n+    my $data = {\n+        $mode => $id,\n+        reviews => [],\n+    };\n+\n+    # arbitrary choice of one year being outdated...\n+    my $outdated = DateTime->now->subtract( years => 1 );","path":"lib/CPANRatings/Control.pm","position":22,"original_position":22,"commit_id":"fd80cf467926d7b8ed3cc5c135242804b5fb1b82","original_commit_id":"fd80cf467926d7b8ed3cc5c135242804b5fb1b82","user":{"login":"abh","id":16861,"avatar_url":"https://avatars.githubusercontent.com/u/16861?v=3","gravatar_id":"","url":"https://api.github.com/users/abh","html_url":"https://github.com/abh","followers_url":"https://api.github.com/users/abh/followers","following_url":"https://api.github.com/users/abh/following{/other_user}","gists_url":"https://api.github.com/users/abh/gists{/gist_id}","starred_url":"https://api.github.com/users/abh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abh/subscriptions","organizations_url":"https://api.github.com/users/abh/orgs","repos_url":"https://api.github.com/users/abh/repos","events_url":"https://api.github.com/users/abh/events{/privacy}","received_events_url":"https://api.github.com/users/abh/received_events","type":"User","site_admin":false},"body":"a slightly fancier version would be \"a year ago or at the most recent release; whichever is later\" or something like that.","created_at":"2016-03-09T06:38:18Z","updated_at":"2016-03-09T06:38:18Z","html_url":"https://github.com/perlorg/perlweb/pull/187#discussion_r55477646","pull_request_url":"https://api.github.com/repos/perlorg/perlweb/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/perlorg/perlweb/pulls/comments/55477646"},"html":{"href":"https://github.com/perlorg/perlweb/pull/187#discussion_r55477646"},"pull_request":{"href":"https://api.github.com/repos/perlorg/perlweb/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/perlorg/perlweb/pulls/187","id":62134002,"html_url":"https://github.com/perlorg/perlweb/pull/187","diff_url":"https://github.com/perlorg/perlweb/pull/187.diff","patch_url":"https://github.com/perlorg/perlweb/pull/187.patch","issue_url":"https://api.github.com/repos/perlorg/perlweb/issues/187","number":187,"state":"open","locked":false,"title":"add support for /dist/foo.json to get reviews","user":{"login":"leejo","id":97388,"avatar_url":"https://avatars.githubusercontent.com/u/97388?v=3","gravatar_id":"","url":"https://api.github.com/users/leejo","html_url":"https://github.com/leejo","followers_url":"https://api.github.com/users/leejo/followers","following_url":"https://api.github.com/users/leejo/following{/other_user}","gists_url":"https://api.github.com/users/leejo/gists{/gist_id}","starred_url":"https://api.github.com/users/leejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leejo/subscriptions","organizations_url":"https://api.github.com/users/leejo/orgs","repos_url":"https://api.github.com/users/leejo/repos","events_url":"https://api.github.com/users/leejo/events{/privacy}","received_events_url":"https://api.github.com/users/leejo/received_events","type":"User","site_admin":false},"body":"please see discussion at https://github.com/CPAN-API/metacpan-web/issues/1653","created_at":"2016-03-08T20:50:42Z","updated_at":"2016-03-09T06:38:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"601402c8aea383838ab27700fe63385d3086b7a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/perlorg/perlweb/pulls/187/commits","review_comments_url":"https://api.github.com/repos/perlorg/perlweb/pulls/187/comments","review_comment_url":"https://api.github.com/repos/perlorg/perlweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/perlorg/perlweb/issues/187/comments","statuses_url":"https://api.github.com/repos/perlorg/perlweb/statuses/fd80cf467926d7b8ed3cc5c135242804b5fb1b82","head":{"label":"leejo:leejo/ratings_exports_additions","ref":"leejo/ratings_exports_additions","sha":"fd80cf467926d7b8ed3cc5c135242804b5fb1b82","user":{"login":"leejo","id":97388,"avatar_url":"https://avatars.githubusercontent.com/u/97388?v=3","gravatar_id":"","url":"https://api.github.com/users/leejo","html_url":"https://github.com/leejo","followers_url":"https://api.github.com/users/leejo/followers","following_url":"https://api.github.com/users/leejo/following{/other_user}","gists_url":"https://api.github.com/users/leejo/gists{/gist_id}","starred_url":"https://api.github.com/users/leejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leejo/subscriptions","organizations_url":"https://api.github.com/users/leejo/orgs","repos_url":"https://api.github.com/users/leejo/repos","events_url":"https://api.github.com/users/leejo/events{/privacy}","received_events_url":"https://api.github.com/users/leejo/received_events","type":"User","site_admin":false},"repo":{"id":53355480,"name":"perlweb","full_name":"leejo/perlweb","owner":{"login":"leejo","id":97388,"avatar_url":"https://avatars.githubusercontent.com/u/97388?v=3","gravatar_id":"","url":"https://api.github.com/users/leejo","html_url":"https://github.com/leejo","followers_url":"https://api.github.com/users/leejo/followers","following_url":"https://api.github.com/users/leejo/following{/other_user}","gists_url":"https://api.github.com/users/leejo/gists{/gist_id}","starred_url":"https://api.github.com/users/leejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leejo/subscriptions","organizations_url":"https://api.github.com/users/leejo/orgs","repos_url":"https://api.github.com/users/leejo/repos","events_url":"https://api.github.com/users/leejo/events{/privacy}","received_events_url":"https://api.github.com/users/leejo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leejo/perlweb","description":"Various perl.org websites","fork":true,"url":"https://api.github.com/repos/leejo/perlweb","forks_url":"https://api.github.com/repos/leejo/perlweb/forks","keys_url":"https://api.github.com/repos/leejo/perlweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leejo/perlweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leejo/perlweb/teams","hooks_url":"https://api.github.com/repos/leejo/perlweb/hooks","issue_events_url":"https://api.github.com/repos/leejo/perlweb/issues/events{/number}","events_url":"https://api.github.com/repos/leejo/perlweb/events","assignees_url":"https://api.github.com/repos/leejo/perlweb/assignees{/user}","branches_url":"https://api.github.com/repos/leejo/perlweb/branches{/branch}","tags_url":"https://api.github.com/repos/leejo/perlweb/tags","blobs_url":"https://api.github.com/repos/leejo/perlweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leejo/perlweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leejo/perlweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/leejo/perlweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leejo/perlweb/statuses/{sha}","languages_url":"https://api.github.com/repos/leejo/perlweb/languages","stargazers_url":"https://api.github.com/repos/leejo/perlweb/stargazers","contributors_url":"https://api.github.com/repos/leejo/perlweb/contributors","subscribers_url":"https://api.github.com/repos/leejo/perlweb/subscribers","subscription_url":"https://api.github.com/repos/leejo/perlweb/subscription","commits_url":"https://api.github.com/repos/leejo/perlweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/leejo/perlweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/leejo/perlweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/leejo/perlweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/leejo/perlweb/contents/{+path}","compare_url":"https://api.github.com/repos/leejo/perlweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leejo/perlweb/merges","archive_url":"https://api.github.com/repos/leejo/perlweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leejo/perlweb/downloads","issues_url":"https://api.github.com/repos/leejo/perlweb/issues{/number}","pulls_url":"https://api.github.com/repos/leejo/perlweb/pulls{/number}","milestones_url":"https://api.github.com/repos/leejo/perlweb/milestones{/number}","notifications_url":"https://api.github.com/repos/leejo/perlweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leejo/perlweb/labels{/name}","releases_url":"https://api.github.com/repos/leejo/perlweb/releases{/id}","deployments_url":"https://api.github.com/repos/leejo/perlweb/deployments","created_at":"2016-03-07T20:09:47Z","updated_at":"2016-03-07T20:09:49Z","pushed_at":"2016-03-08T20:54:08Z","git_url":"git://github.com/leejo/perlweb.git","ssh_url":"git@github.com:leejo/perlweb.git","clone_url":"https://github.com/leejo/perlweb.git","svn_url":"https://github.com/leejo/perlweb","homepage":"http://noc.perl.org/","size":11694,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":"perlorg:master","ref":"master","sha":"ad447909b84d020b5d3bf0351b04e3ec55521bc1","user":{"login":"perlorg","id":631521,"avatar_url":"https://avatars.githubusercontent.com/u/631521?v=3","gravatar_id":"","url":"https://api.github.com/users/perlorg","html_url":"https://github.com/perlorg","followers_url":"https://api.github.com/users/perlorg/followers","following_url":"https://api.github.com/users/perlorg/following{/other_user}","gists_url":"https://api.github.com/users/perlorg/gists{/gist_id}","starred_url":"https://api.github.com/users/perlorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perlorg/subscriptions","organizations_url":"https://api.github.com/users/perlorg/orgs","repos_url":"https://api.github.com/users/perlorg/repos","events_url":"https://api.github.com/users/perlorg/events{/privacy}","received_events_url":"https://api.github.com/users/perlorg/received_events","type":"Organization","site_admin":false},"repo":{"id":1879203,"name":"perlweb","full_name":"perlorg/perlweb","owner":{"login":"perlorg","id":631521,"avatar_url":"https://avatars.githubusercontent.com/u/631521?v=3","gravatar_id":"","url":"https://api.github.com/users/perlorg","html_url":"https://github.com/perlorg","followers_url":"https://api.github.com/users/perlorg/followers","following_url":"https://api.github.com/users/perlorg/following{/other_user}","gists_url":"https://api.github.com/users/perlorg/gists{/gist_id}","starred_url":"https://api.github.com/users/perlorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perlorg/subscriptions","organizations_url":"https://api.github.com/users/perlorg/orgs","repos_url":"https://api.github.com/users/perlorg/repos","events_url":"https://api.github.com/users/perlorg/events{/privacy}","received_events_url":"https://api.github.com/users/perlorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/perlorg/perlweb","description":"Various perl.org websites","fork":false,"url":"https://api.github.com/repos/perlorg/perlweb","forks_url":"https://api.github.com/repos/perlorg/perlweb/forks","keys_url":"https://api.github.com/repos/perlorg/perlweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/perlorg/perlweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/perlorg/perlweb/teams","hooks_url":"https://api.github.com/repos/perlorg/perlweb/hooks","issue_events_url":"https://api.github.com/repos/perlorg/perlweb/issues/events{/number}","events_url":"https://api.github.com/repos/perlorg/perlweb/events","assignees_url":"https://api.github.com/repos/perlorg/perlweb/assignees{/user}","branches_url":"https://api.github.com/repos/perlorg/perlweb/branches{/branch}","tags_url":"https://api.github.com/repos/perlorg/perlweb/tags","blobs_url":"https://api.github.com/repos/perlorg/perlweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/perlorg/perlweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/perlorg/perlweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/perlorg/perlweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/perlorg/perlweb/statuses/{sha}","languages_url":"https://api.github.com/repos/perlorg/perlweb/languages","stargazers_url":"https://api.github.com/repos/perlorg/perlweb/stargazers","contributors_url":"https://api.github.com/repos/perlorg/perlweb/contributors","subscribers_url":"https://api.github.com/repos/perlorg/perlweb/subscribers","subscription_url":"https://api.github.com/repos/perlorg/perlweb/subscription","commits_url":"https://api.github.com/repos/perlorg/perlweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/perlorg/perlweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/perlorg/perlweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/perlorg/perlweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/perlorg/perlweb/contents/{+path}","compare_url":"https://api.github.com/repos/perlorg/perlweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/perlorg/perlweb/merges","archive_url":"https://api.github.com/repos/perlorg/perlweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/perlorg/perlweb/downloads","issues_url":"https://api.github.com/repos/perlorg/perlweb/issues{/number}","pulls_url":"https://api.github.com/repos/perlorg/perlweb/pulls{/number}","milestones_url":"https://api.github.com/repos/perlorg/perlweb/milestones{/number}","notifications_url":"https://api.github.com/repos/perlorg/perlweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/perlorg/perlweb/labels{/name}","releases_url":"https://api.github.com/repos/perlorg/perlweb/releases{/id}","deployments_url":"https://api.github.com/repos/perlorg/perlweb/deployments","created_at":"2011-06-11T05:18:26Z","updated_at":"2016-02-13T03:57:38Z","pushed_at":"2016-03-08T20:54:09Z","git_url":"git://github.com/perlorg/perlweb.git","ssh_url":"git@github.com:perlorg/perlweb.git","clone_url":"https://github.com/perlorg/perlweb.git","svn_url":"https://github.com/perlorg/perlweb","homepage":"http://noc.perl.org/","size":11728,"stargazers_count":41,"watchers_count":41,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":23,"forks":59,"open_issues":23,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/perlorg/perlweb/pulls/187"},"html":{"href":"https://github.com/perlorg/perlweb/pull/187"},"issue":{"href":"https://api.github.com/repos/perlorg/perlweb/issues/187"},"comments":{"href":"https://api.github.com/repos/perlorg/perlweb/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/perlorg/perlweb/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/perlorg/perlweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/perlorg/perlweb/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/perlorg/perlweb/statuses/fd80cf467926d7b8ed3cc5c135242804b5fb1b82"}}}}