GitHub PullRequestEvent at 2014-04-12 17:31:16
Repository: sinopia
Actor: yannickcr
Payload: {"action":"opened","number":65,"pull_request":{"url":"https://api.github.com/repos/rlidwka/sinopia/pulls/65","id":14687191,"html_url":"https://github.com/rlidwka/sinopia/pull/65","diff_url":"https://github.com/rlidwka/sinopia/pull/65.diff","patch_url":"https://github.com/rlidwka/sinopia/pull/65.patch","issue_url":"https://api.github.com/repos/rlidwka/sinopia/issues/65","number":65,"state":"open","title":"Add search functionality","user":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?","gravatar_id":"1e619ddb2a180222dd3d9f0348e65b9b","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"body":"I've implemented the search functionality, it should fix #36\r\n\r\nBasically, it will fetch package list from npm and simply append the local ones in the response.\r\n\r\nThis patch:\r\n* add a new route to match the search queries (`/-/all/*`).\r\n* add a new `get_recent_packages` method in `local-storage` to list the packages more recent than a given timestamp.\r\n* add a new `search` method in `storage` to run the request to npm and to append the local packages (found with `get_recent_packages`) to the response.","created_at":"2014-04-12T17:31:15Z","updated_at":"2014-04-12T17:31:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rlidwka/sinopia/pulls/65/commits","review_comments_url":"https://api.github.com/repos/rlidwka/sinopia/pulls/65/comments","review_comment_url":"https://api.github.com/repos/rlidwka/sinopia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rlidwka/sinopia/issues/65/comments","statuses_url":"https://api.github.com/repos/rlidwka/sinopia/statuses/5241ddfe84d3f0c9f73af5c45bef17f0e2b2cb26","head":{"label":"yannickcr:npm-search","ref":"npm-search","sha":"5241ddfe84d3f0c9f73af5c45bef17f0e2b2cb26","user":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?","gravatar_id":"1e619ddb2a180222dd3d9f0348e65b9b","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"repo":{"id":17863075,"name":"sinopia","full_name":"yannickcr/sinopia","owner":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?","gravatar_id":"1e619ddb2a180222dd3d9f0348e65b9b","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yannickcr/sinopia","description":"Private npm repository server","fork":true,"url":"https://api.github.com/repos/yannickcr/sinopia","forks_url":"https://api.github.com/repos/yannickcr/sinopia/forks","keys_url":"https://api.github.com/repos/yannickcr/sinopia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yannickcr/sinopia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yannickcr/sinopia/teams","hooks_url":"https://api.github.com/repos/yannickcr/sinopia/hooks","issue_events_url":"https://api.github.com/repos/yannickcr/sinopia/issues/events{/number}","events_url":"https://api.github.com/repos/yannickcr/sinopia/events","assignees_url":"https://api.github.com/repos/yannickcr/sinopia/assignees{/user}","branches_url":"https://api.github.com/repos/yannickcr/sinopia/branches{/branch}","tags_url":"https://api.github.com/repos/yannickcr/sinopia/tags","blobs_url":"https://api.github.com/repos/yannickcr/sinopia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yannickcr/sinopia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yannickcr/sinopia/git/refs{/sha}","trees_url":"https://api.github.com/repos/yannickcr/sinopia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yannickcr/sinopia/statuses/{sha}","languages_url":"https://api.github.com/repos/yannickcr/sinopia/languages","stargazers_url":"https://api.github.com/repos/yannickcr/sinopia/stargazers","contributors_url":"https://api.github.com/repos/yannickcr/sinopia/contributors","subscribers_url":"https://api.github.com/repos/yannickcr/sinopia/subscribers","subscription_url":"https://api.github.com/repos/yannickcr/sinopia/subscription","commits_url":"https://api.github.com/repos/yannickcr/sinopia/commits{/sha}","git_commits_url":"https://api.github.com/repos/yannickcr/sinopia/git/commits{/sha}","comments_url":"https://api.github.com/repos/yannickcr/sinopia/comments{/number}","issue_comment_url":"https://api.github.com/repos/yannickcr/sinopia/issues/comments/{number}","contents_url":"https://api.github.com/repos/yannickcr/sinopia/contents/{+path}","compare_url":"https://api.github.com/repos/yannickcr/sinopia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yannickcr/sinopia/merges","archive_url":"https://api.github.com/repos/yannickcr/sinopia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yannickcr/sinopia/downloads","issues_url":"https://api.github.com/repos/yannickcr/sinopia/issues{/number}","pulls_url":"https://api.github.com/repos/yannickcr/sinopia/pulls{/number}","milestones_url":"https://api.github.com/repos/yannickcr/sinopia/milestones{/number}","notifications_url":"https://api.github.com/repos/yannickcr/sinopia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yannickcr/sinopia/labels{/name}","releases_url":"https://api.github.com/repos/yannickcr/sinopia/releases{/id}","created_at":"2014-03-18T11:16:48Z","updated_at":"2014-04-12T17:31:15Z","pushed_at":"2014-04-12T17:20:56Z","git_url":"git://github.com/yannickcr/sinopia.git","ssh_url":"git@github.com:yannickcr/sinopia.git","clone_url":"https://github.com/yannickcr/sinopia.git","svn_url":"https://github.com/yannickcr/sinopia","homepage":null,"size":1220,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"rlidwka:master","ref":"master","sha":"bea03619d7ba39e8bbd942520952b92776cdbe0c","user":{"login":"rlidwka","id":999113,"avatar_url":"https://avatars.githubusercontent.com/u/999113?","gravatar_id":"0d78a1b90a7c9d6fc7c87d0010bccf53","url":"https://api.github.com/users/rlidwka","html_url":"https://github.com/rlidwka","followers_url":"https://api.github.com/users/rlidwka/followers","following_url":"https://api.github.com/users/rlidwka/following{/other_user}","gists_url":"https://api.github.com/users/rlidwka/gists{/gist_id}","starred_url":"https://api.github.com/users/rlidwka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlidwka/subscriptions","organizations_url":"https://api.github.com/users/rlidwka/orgs","repos_url":"https://api.github.com/users/rlidwka/repos","events_url":"https://api.github.com/users/rlidwka/events{/privacy}","received_events_url":"https://api.github.com/users/rlidwka/received_events","type":"User","site_admin":false},"repo":{"id":10214540,"name":"sinopia","full_name":"rlidwka/sinopia","owner":{"login":"rlidwka","id":999113,"avatar_url":"https://avatars.githubusercontent.com/u/999113?","gravatar_id":"0d78a1b90a7c9d6fc7c87d0010bccf53","url":"https://api.github.com/users/rlidwka","html_url":"https://github.com/rlidwka","followers_url":"https://api.github.com/users/rlidwka/followers","following_url":"https://api.github.com/users/rlidwka/following{/other_user}","gists_url":"https://api.github.com/users/rlidwka/gists{/gist_id}","starred_url":"https://api.github.com/users/rlidwka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlidwka/subscriptions","organizations_url":"https://api.github.com/users/rlidwka/orgs","repos_url":"https://api.github.com/users/rlidwka/repos","events_url":"https://api.github.com/users/rlidwka/events{/privacy}","received_events_url":"https://api.github.com/users/rlidwka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rlidwka/sinopia","description":"Private npm repository server","fork":false,"url":"https://api.github.com/repos/rlidwka/sinopia","forks_url":"https://api.github.com/repos/rlidwka/sinopia/forks","keys_url":"https://api.github.com/repos/rlidwka/sinopia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rlidwka/sinopia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rlidwka/sinopia/teams","hooks_url":"https://api.github.com/repos/rlidwka/sinopia/hooks","issue_events_url":"https://api.github.com/repos/rlidwka/sinopia/issues/events{/number}","events_url":"https://api.github.com/repos/rlidwka/sinopia/events","assignees_url":"https://api.github.com/repos/rlidwka/sinopia/assignees{/user}","branches_url":"https://api.github.com/repos/rlidwka/sinopia/branches{/branch}","tags_url":"https://api.github.com/repos/rlidwka/sinopia/tags","blobs_url":"https://api.github.com/repos/rlidwka/sinopia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rlidwka/sinopia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rlidwka/sinopia/git/refs{/sha}","trees_url":"https://api.github.com/repos/rlidwka/sinopia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rlidwka/sinopia/statuses/{sha}","languages_url":"https://api.github.com/repos/rlidwka/sinopia/languages","stargazers_url":"https://api.github.com/repos/rlidwka/sinopia/stargazers","contributors_url":"https://api.github.com/repos/rlidwka/sinopia/contributors","subscribers_url":"https://api.github.com/repos/rlidwka/sinopia/subscribers","subscription_url":"https://api.github.com/repos/rlidwka/sinopia/subscription","commits_url":"https://api.github.com/repos/rlidwka/sinopia/commits{/sha}","git_commits_url":"https://api.github.com/repos/rlidwka/sinopia/git/commits{/sha}","comments_url":"https://api.github.com/repos/rlidwka/sinopia/comments{/number}","issue_comment_url":"https://api.github.com/repos/rlidwka/sinopia/issues/comments/{number}","contents_url":"https://api.github.com/repos/rlidwka/sinopia/contents/{+path}","compare_url":"https://api.github.com/repos/rlidwka/sinopia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rlidwka/sinopia/merges","archive_url":"https://api.github.com/repos/rlidwka/sinopia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rlidwka/sinopia/downloads","issues_url":"https://api.github.com/repos/rlidwka/sinopia/issues{/number}","pulls_url":"https://api.github.com/repos/rlidwka/sinopia/pulls{/number}","milestones_url":"https://api.github.com/repos/rlidwka/sinopia/milestones{/number}","notifications_url":"https://api.github.com/repos/rlidwka/sinopia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rlidwka/sinopia/labels{/name}","releases_url":"https://api.github.com/repos/rlidwka/sinopia/releases{/id}","created_at":"2013-05-22T07:41:29Z","updated_at":"2014-04-01T00:24:25Z","pushed_at":"2014-04-01T00:24:28Z","git_url":"git://github.com/rlidwka/sinopia.git","ssh_url":"git@github.com:rlidwka/sinopia.git","clone_url":"https://github.com/rlidwka/sinopia.git","svn_url":"https://github.com/rlidwka/sinopia","homepage":null,"size":1328,"stargazers_count":179,"watchers_count":179,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":25,"mirror_url":null,"open_issues_count":23,"forks":25,"open_issues":23,"watchers":179,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rlidwka/sinopia/pulls/65"},"html":{"href":"https://github.com/rlidwka/sinopia/pull/65"},"issue":{"href":"https://api.github.com/repos/rlidwka/sinopia/issues/65"},"comments":{"href":"https://api.github.com/repos/rlidwka/sinopia/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/rlidwka/sinopia/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/rlidwka/sinopia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rlidwka/sinopia/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/rlidwka/sinopia/statuses/5241ddfe84d3f0c9f73af5c45bef17f0e2b2cb26"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":123,"deletions":0,"changed_files":3}}