{"action":"created","comment":{"url":"https://api.github.com/repos/clearlydefined/service/pulls/comments/243385056","pull_request_review_id":187142444,"id":243385056,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzM4NTA1Ng==","diff_hunk":"@@ -6,25 +6,33 @@ const router = require('express').Router()\n const requestPromise = require('request-promise-native')\n const { uniq } = require('lodash')\n \n-// TODO: where does this come from? GitHub??\n router.get(\n   '/:name/revisions',\n   asyncMiddleware(async (request, response) => {\n     const { name } = request.params\n-    const url = `https://cocoapods.org/api/v1/pods/${name}`\n+    const url = `https://trunk.cocoapods.org/api/v1/pods/${name}`\n     const answer = await requestPromise({ url, method: 'GET', json: true })\n-    return response.status(200).send(uniq(answer.versions.map(x => x.num)))\n+    return response.status(200).send(uniq(answer.versions.map(x => x.name)))\n   })\n )\n \n-// TODO: where does this come from? GitHub??\n router.get(\n   '/:name',\n   asyncMiddleware(async (request, response) => {\n     const { name } = request.params\n-    const url = `https://cocoapods.org/api/v1/pods?per_page=100&q=${name}`\n-    const answer = await requestPromise({ url, method: 'GET', json: true })\n-    const result = answer.crates.map(x => {\n+    const algolia = {\n+        appID: 'WBHHAMHYNM',\n+        apiKey: '4f7544ca8701f9bf2a4e55daff1b09e9'","path":"routes/originPod.js","position":27,"original_position":27,"commit_id":"8fc66318fec87f6248fd9bec01fd8b2affd3c331","original_commit_id":"8fc66318fec87f6248fd9bec01fd8b2affd3c331","user":{"login":"craigez","id":8195508,"node_id":"MDQ6VXNlcjgxOTU1MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/8195508?v=4","gravatar_id":"","url":"https://api.github.com/users/craigez","html_url":"https://github.com/craigez","followers_url":"https://api.github.com/users/craigez/followers","following_url":"https://api.github.com/users/craigez/following{/other_user}","gists_url":"https://api.github.com/users/craigez/gists{/gist_id}","starred_url":"https://api.github.com/users/craigez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigez/subscriptions","organizations_url":"https://api.github.com/users/craigez/orgs","repos_url":"https://api.github.com/users/craigez/repos","events_url":"https://api.github.com/users/craigez/events{/privacy}","received_events_url":"https://api.github.com/users/craigez/received_events","type":"User","site_admin":false},"body":"Should this key be fetched from the configuration?","created_at":"2018-12-20T19:08:23Z","updated_at":"2018-12-20T19:08:23Z","html_url":"https://github.com/clearlydefined/service/pull/342#discussion_r243385056","pull_request_url":"https://api.github.com/repos/clearlydefined/service/pulls/342","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/clearlydefined/service/pulls/comments/243385056"},"html":{"href":"https://github.com/clearlydefined/service/pull/342#discussion_r243385056"},"pull_request":{"href":"https://api.github.com/repos/clearlydefined/service/pulls/342"}}},"pull_request":{"url":"https://api.github.com/repos/clearlydefined/service/pulls/342","id":240149861,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMTQ5ODYx","html_url":"https://github.com/clearlydefined/service/pull/342","diff_url":"https://github.com/clearlydefined/service/pull/342.diff","patch_url":"https://github.com/clearlydefined/service/pull/342.patch","issue_url":"https://api.github.com/repos/clearlydefined/service/issues/342","number":342,"state":"open","locked":false,"title":"CocoaPods integration","user":{"login":"Frugghi","id":1068379,"node_id":"MDQ6VXNlcjEwNjgzNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1068379?v=4","gravatar_id":"","url":"https://api.github.com/users/Frugghi","html_url":"https://github.com/Frugghi","followers_url":"https://api.github.com/users/Frugghi/followers","following_url":"https://api.github.com/users/Frugghi/following{/other_user}","gists_url":"https://api.github.com/users/Frugghi/gists{/gist_id}","starred_url":"https://api.github.com/users/Frugghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frugghi/subscriptions","organizations_url":"https://api.github.com/users/Frugghi/orgs","repos_url":"https://api.github.com/users/Frugghi/repos","events_url":"https://api.github.com/users/Frugghi/events{/privacy}","received_events_url":"https://api.github.com/users/Frugghi/received_events","type":"User","site_admin":false},"body":"Implementation of all the required methods for CocoaPods integration.","created_at":"2018-12-20T12:12:25Z","updated_at":"2018-12-20T19:08:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b01e61880e8ceb188e55762b36d4d5c0a8eb32b9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/clearlydefined/service/pulls/342/commits","review_comments_url":"https://api.github.com/repos/clearlydefined/service/pulls/342/comments","review_comment_url":"https://api.github.com/repos/clearlydefined/service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clearlydefined/service/issues/342/comments","statuses_url":"https://api.github.com/repos/clearlydefined/service/statuses/8fc66318fec87f6248fd9bec01fd8b2affd3c331","head":{"label":"Frugghi:cocoapods","ref":"cocoapods","sha":"8fc66318fec87f6248fd9bec01fd8b2affd3c331","user":{"login":"Frugghi","id":1068379,"node_id":"MDQ6VXNlcjEwNjgzNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1068379?v=4","gravatar_id":"","url":"https://api.github.com/users/Frugghi","html_url":"https://github.com/Frugghi","followers_url":"https://api.github.com/users/Frugghi/followers","following_url":"https://api.github.com/users/Frugghi/following{/other_user}","gists_url":"https://api.github.com/users/Frugghi/gists{/gist_id}","starred_url":"https://api.github.com/users/Frugghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frugghi/subscriptions","organizations_url":"https://api.github.com/users/Frugghi/orgs","repos_url":"https://api.github.com/users/Frugghi/repos","events_url":"https://api.github.com/users/Frugghi/events{/privacy}","received_events_url":"https://api.github.com/users/Frugghi/received_events","type":"User","site_admin":false},"repo":{"id":162133120,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIxMzMxMjA=","name":"service","full_name":"Frugghi/service","private":false,"owner":{"login":"Frugghi","id":1068379,"node_id":"MDQ6VXNlcjEwNjgzNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1068379?v=4","gravatar_id":"","url":"https://api.github.com/users/Frugghi","html_url":"https://github.com/Frugghi","followers_url":"https://api.github.com/users/Frugghi/followers","following_url":"https://api.github.com/users/Frugghi/following{/other_user}","gists_url":"https://api.github.com/users/Frugghi/gists{/gist_id}","starred_url":"https://api.github.com/users/Frugghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frugghi/subscriptions","organizations_url":"https://api.github.com/users/Frugghi/orgs","repos_url":"https://api.github.com/users/Frugghi/repos","events_url":"https://api.github.com/users/Frugghi/events{/privacy}","received_events_url":"https://api.github.com/users/Frugghi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Frugghi/service","description":"The service side of clearlydefined.io","fork":true,"url":"https://api.github.com/repos/Frugghi/service","forks_url":"https://api.github.com/repos/Frugghi/service/forks","keys_url":"https://api.github.com/repos/Frugghi/service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Frugghi/service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Frugghi/service/teams","hooks_url":"https://api.github.com/repos/Frugghi/service/hooks","issue_events_url":"https://api.github.com/repos/Frugghi/service/issues/events{/number}","events_url":"https://api.github.com/repos/Frugghi/service/events","assignees_url":"https://api.github.com/repos/Frugghi/service/assignees{/user}","branches_url":"https://api.github.com/repos/Frugghi/service/branches{/branch}","tags_url":"https://api.github.com/repos/Frugghi/service/tags","blobs_url":"https://api.github.com/repos/Frugghi/service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Frugghi/service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Frugghi/service/git/refs{/sha}","trees_url":"https://api.github.com/repos/Frugghi/service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Frugghi/service/statuses/{sha}","languages_url":"https://api.github.com/repos/Frugghi/service/languages","stargazers_url":"https://api.github.com/repos/Frugghi/service/stargazers","contributors_url":"https://api.github.com/repos/Frugghi/service/contributors","subscribers_url":"https://api.github.com/repos/Frugghi/service/subscribers","subscription_url":"https://api.github.com/repos/Frugghi/service/subscription","commits_url":"https://api.github.com/repos/Frugghi/service/commits{/sha}","git_commits_url":"https://api.github.com/repos/Frugghi/service/git/commits{/sha}","comments_url":"https://api.github.com/repos/Frugghi/service/comments{/number}","issue_comment_url":"https://api.github.com/repos/Frugghi/service/issues/comments{/number}","contents_url":"https://api.github.com/repos/Frugghi/service/contents/{+path}","compare_url":"https://api.github.com/repos/Frugghi/service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Frugghi/service/merges","archive_url":"https://api.github.com/repos/Frugghi/service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Frugghi/service/downloads","issues_url":"https://api.github.com/repos/Frugghi/service/issues{/number}","pulls_url":"https://api.github.com/repos/Frugghi/service/pulls{/number}","milestones_url":"https://api.github.com/repos/Frugghi/service/milestones{/number}","notifications_url":"https://api.github.com/repos/Frugghi/service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Frugghi/service/labels{/name}","releases_url":"https://api.github.com/repos/Frugghi/service/releases{/id}","deployments_url":"https://api.github.com/repos/Frugghi/service/deployments","created_at":"2018-12-17T13:16:23Z","updated_at":"2018-12-17T13:16:26Z","pushed_at":"2018-12-20T12:00:21Z","git_url":"git://github.com/Frugghi/service.git","ssh_url":"git@github.com:Frugghi/service.git","clone_url":"https://github.com/Frugghi/service.git","svn_url":"https://github.com/Frugghi/service","homepage":null,"size":1126,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clearlydefined:cocoapods","ref":"cocoapods","sha":"31f68c7caf3360f91b494bc48b746602cbff6dd9","user":{"login":"clearlydefined","id":34137144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MTM3MTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/34137144?v=4","gravatar_id":"","url":"https://api.github.com/users/clearlydefined","html_url":"https://github.com/clearlydefined","followers_url":"https://api.github.com/users/clearlydefined/followers","following_url":"https://api.github.com/users/clearlydefined/following{/other_user}","gists_url":"https://api.github.com/users/clearlydefined/gists{/gist_id}","starred_url":"https://api.github.com/users/clearlydefined/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearlydefined/subscriptions","organizations_url":"https://api.github.com/users/clearlydefined/orgs","repos_url":"https://api.github.com/users/clearlydefined/repos","events_url":"https://api.github.com/users/clearlydefined/events{/privacy}","received_events_url":"https://api.github.com/users/clearlydefined/received_events","type":"Organization","site_admin":false},"repo":{"id":113903008,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM5MDMwMDg=","name":"service","full_name":"clearlydefined/service","private":false,"owner":{"login":"clearlydefined","id":34137144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MTM3MTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/34137144?v=4","gravatar_id":"","url":"https://api.github.com/users/clearlydefined","html_url":"https://github.com/clearlydefined","followers_url":"https://api.github.com/users/clearlydefined/followers","following_url":"https://api.github.com/users/clearlydefined/following{/other_user}","gists_url":"https://api.github.com/users/clearlydefined/gists{/gist_id}","starred_url":"https://api.github.com/users/clearlydefined/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearlydefined/subscriptions","organizations_url":"https://api.github.com/users/clearlydefined/orgs","repos_url":"https://api.github.com/users/clearlydefined/repos","events_url":"https://api.github.com/users/clearlydefined/events{/privacy}","received_events_url":"https://api.github.com/users/clearlydefined/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/clearlydefined/service","description":"The service side of clearlydefined.io","fork":false,"url":"https://api.github.com/repos/clearlydefined/service","forks_url":"https://api.github.com/repos/clearlydefined/service/forks","keys_url":"https://api.github.com/repos/clearlydefined/service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clearlydefined/service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clearlydefined/service/teams","hooks_url":"https://api.github.com/repos/clearlydefined/service/hooks","issue_events_url":"https://api.github.com/repos/clearlydefined/service/issues/events{/number}","events_url":"https://api.github.com/repos/clearlydefined/service/events","assignees_url":"https://api.github.com/repos/clearlydefined/service/assignees{/user}","branches_url":"https://api.github.com/repos/clearlydefined/service/branches{/branch}","tags_url":"https://api.github.com/repos/clearlydefined/service/tags","blobs_url":"https://api.github.com/repos/clearlydefined/service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clearlydefined/service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clearlydefined/service/git/refs{/sha}","trees_url":"https://api.github.com/repos/clearlydefined/service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clearlydefined/service/statuses/{sha}","languages_url":"https://api.github.com/repos/clearlydefined/service/languages","stargazers_url":"https://api.github.com/repos/clearlydefined/service/stargazers","contributors_url":"https://api.github.com/repos/clearlydefined/service/contributors","subscribers_url":"https://api.github.com/repos/clearlydefined/service/subscribers","subscription_url":"https://api.github.com/repos/clearlydefined/service/subscription","commits_url":"https://api.github.com/repos/clearlydefined/service/commits{/sha}","git_commits_url":"https://api.github.com/repos/clearlydefined/service/git/commits{/sha}","comments_url":"https://api.github.com/repos/clearlydefined/service/comments{/number}","issue_comment_url":"https://api.github.com/repos/clearlydefined/service/issues/comments{/number}","contents_url":"https://api.github.com/repos/clearlydefined/service/contents/{+path}","compare_url":"https://api.github.com/repos/clearlydefined/service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clearlydefined/service/merges","archive_url":"https://api.github.com/repos/clearlydefined/service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clearlydefined/service/downloads","issues_url":"https://api.github.com/repos/clearlydefined/service/issues{/number}","pulls_url":"https://api.github.com/repos/clearlydefined/service/pulls{/number}","milestones_url":"https://api.github.com/repos/clearlydefined/service/milestones{/number}","notifications_url":"https://api.github.com/repos/clearlydefined/service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clearlydefined/service/labels{/name}","releases_url":"https://api.github.com/repos/clearlydefined/service/releases{/id}","deployments_url":"https://api.github.com/repos/clearlydefined/service/deployments","created_at":"2017-12-11T20:04:11Z","updated_at":"2018-12-18T17:43:44Z","pushed_at":"2018-12-20T12:12:26Z","git_url":"git://github.com/clearlydefined/service.git","ssh_url":"git@github.com:clearlydefined/service.git","clone_url":"https://github.com/clearlydefined/service.git","svn_url":"https://github.com/clearlydefined/service","homepage":null,"size":1143,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":13,"open_issues":37,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clearlydefined/service/pulls/342"},"html":{"href":"https://github.com/clearlydefined/service/pull/342"},"issue":{"href":"https://api.github.com/repos/clearlydefined/service/issues/342"},"comments":{"href":"https://api.github.com/repos/clearlydefined/service/issues/342/comments"},"review_comments":{"href":"https://api.github.com/repos/clearlydefined/service/pulls/342/comments"},"review_comment":{"href":"https://api.github.com/repos/clearlydefined/service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clearlydefined/service/pulls/342/commits"},"statuses":{"href":"https://api.github.com/repos/clearlydefined/service/statuses/8fc66318fec87f6248fd9bec01fd8b2affd3c331"}},"author_association":"NONE"}}
{"actor":{"display_login":"craigez"}}