{"action":"created","comment":{"url":"https://api.github.com/repos/badges/shields/pulls/comments/27344486","id":27344486,"diff_hunk":"@@ -3082,6 +3083,52 @@ cache(function(data, match, sendBadge, request) {\n   })}\n ));\n \n+// StackExchange integration.\n+camp.route(/^\\/stackexchange\\/([^\\/]+)\\/([^\\/])\\/([^\\/]+)\\.(svg|png|gif|jpg|json)$/,\n+cache(function(data, match, sendBadge, request) {\n+  var site = match[1]; // eg, stackoverflow\n+  var info = match[2]; // either `r`\n+  var item = match[3]; // eg, 232250\n+  var format = match[4];\n+  var path;\n+  if (info === 'r') {\n+    path = 'users/'+item;\n+  } else if (info === 't') {\n+    path = 'tags/'+item+'/info';\n+  }\n+  var options = {\n+    method: 'GET',\n+    uri: 'https://api.stackexchange.com/2.2/'+path+'?site='+site,\n+    encoding: null","path":"server.js","position":28,"original_position":28,"commit_id":"bb26c8f6e41dd0a33534176575ea4d240215dfbb","original_commit_id":"bb26c8f6e41dd0a33534176575ea4d240215dfbb","user":{"login":"espadrine","id":100689,"avatar_url":"https://avatars.githubusercontent.com/u/100689?v=3","gravatar_id":"","url":"https://api.github.com/users/espadrine","html_url":"https://github.com/espadrine","followers_url":"https://api.github.com/users/espadrine/followers","following_url":"https://api.github.com/users/espadrine/following{/other_user}","gists_url":"https://api.github.com/users/espadrine/gists{/gist_id}","starred_url":"https://api.github.com/users/espadrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espadrine/subscriptions","organizations_url":"https://api.github.com/users/espadrine/orgs","repos_url":"https://api.github.com/users/espadrine/repos","events_url":"https://api.github.com/users/espadrine/events{/privacy}","received_events_url":"https://api.github.com/users/espadrine/received_events","type":"User","site_admin":false},"body":"Replace this line with `gzip: true`.\r\n\r\nChange the required version of request from `\"~2.34.0\"` to `\"~2.54.0\"` in `package.json`. Do `npm install request`.","created_at":"2015-03-28T11:49:45Z","updated_at":"2015-03-28T11:49:45Z","html_url":"https://github.com/badges/shields/pull/387#discussion_r27344486","pull_request_url":"https://api.github.com/repos/badges/shields/pulls/387","_links":{"self":{"href":"https://api.github.com/repos/badges/shields/pulls/comments/27344486"},"html":{"href":"https://github.com/badges/shields/pull/387#discussion_r27344486"},"pull_request":{"href":"https://api.github.com/repos/badges/shields/pulls/387"}}},"pull_request":{"url":"https://api.github.com/repos/badges/shields/pulls/387","id":30760203,"html_url":"https://github.com/badges/shields/pull/387","diff_url":"https://github.com/badges/shields/pull/387.diff","patch_url":"https://github.com/badges/shields/pull/387.patch","issue_url":"https://api.github.com/repos/badges/shields/issues/387","number":387,"state":"open","locked":false,"title":"Add StackExchange integration","user":{"login":"raphink","id":650430,"avatar_url":"https://avatars.githubusercontent.com/u/650430?v=3","gravatar_id":"","url":"https://api.github.com/users/raphink","html_url":"https://github.com/raphink","followers_url":"https://api.github.com/users/raphink/followers","following_url":"https://api.github.com/users/raphink/following{/other_user}","gists_url":"https://api.github.com/users/raphink/gists{/gist_id}","starred_url":"https://api.github.com/users/raphink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphink/subscriptions","organizations_url":"https://api.github.com/users/raphink/orgs","repos_url":"https://api.github.com/users/raphink/repos","events_url":"https://api.github.com/users/raphink/events{/privacy}","received_events_url":"https://api.github.com/users/raphink/received_events","type":"User","site_admin":false},"body":"This adds StackExchange integration. Two modes are supported:\r\n\r\n* user reputation: you need to specify the site name (e.g. stackoverflow, superuser, tex, etc.) and the user id.\r\n* questions by tag: you need to supply a site name and tag name (e.g. 'augeas').","created_at":"2015-03-09T13:33:12Z","updated_at":"2015-03-28T11:49:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9d6bde231ae3193577209f49d08e936be9dc121","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/badges/shields/pulls/387/commits","review_comments_url":"https://api.github.com/repos/badges/shields/pulls/387/comments","review_comment_url":"https://api.github.com/repos/badges/shields/pulls/comments{/number}","comments_url":"https://api.github.com/repos/badges/shields/issues/387/comments","statuses_url":"https://api.github.com/repos/badges/shields/statuses/bb26c8f6e41dd0a33534176575ea4d240215dfbb","head":{"label":"raphink:dev/stackexchange","ref":"dev/stackexchange","sha":"bb26c8f6e41dd0a33534176575ea4d240215dfbb","user":{"login":"raphink","id":650430,"avatar_url":"https://avatars.githubusercontent.com/u/650430?v=3","gravatar_id":"","url":"https://api.github.com/users/raphink","html_url":"https://github.com/raphink","followers_url":"https://api.github.com/users/raphink/followers","following_url":"https://api.github.com/users/raphink/following{/other_user}","gists_url":"https://api.github.com/users/raphink/gists{/gist_id}","starred_url":"https://api.github.com/users/raphink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphink/subscriptions","organizations_url":"https://api.github.com/users/raphink/orgs","repos_url":"https://api.github.com/users/raphink/repos","events_url":"https://api.github.com/users/raphink/events{/privacy}","received_events_url":"https://api.github.com/users/raphink/received_events","type":"User","site_admin":false},"repo":{"id":31231770,"name":"shields","full_name":"raphink/shields","owner":{"login":"raphink","id":650430,"avatar_url":"https://avatars.githubusercontent.com/u/650430?v=3","gravatar_id":"","url":"https://api.github.com/users/raphink","html_url":"https://github.com/raphink","followers_url":"https://api.github.com/users/raphink/followers","following_url":"https://api.github.com/users/raphink/following{/other_user}","gists_url":"https://api.github.com/users/raphink/gists{/gist_id}","starred_url":"https://api.github.com/users/raphink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphink/subscriptions","organizations_url":"https://api.github.com/users/raphink/orgs","repos_url":"https://api.github.com/users/raphink/repos","events_url":"https://api.github.com/users/raphink/events{/privacy}","received_events_url":"https://api.github.com/users/raphink/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raphink/shields","description":"Shields badge specification, website and default API server","fork":true,"url":"https://api.github.com/repos/raphink/shields","forks_url":"https://api.github.com/repos/raphink/shields/forks","keys_url":"https://api.github.com/repos/raphink/shields/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raphink/shields/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raphink/shields/teams","hooks_url":"https://api.github.com/repos/raphink/shields/hooks","issue_events_url":"https://api.github.com/repos/raphink/shields/issues/events{/number}","events_url":"https://api.github.com/repos/raphink/shields/events","assignees_url":"https://api.github.com/repos/raphink/shields/assignees{/user}","branches_url":"https://api.github.com/repos/raphink/shields/branches{/branch}","tags_url":"https://api.github.com/repos/raphink/shields/tags","blobs_url":"https://api.github.com/repos/raphink/shields/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raphink/shields/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raphink/shields/git/refs{/sha}","trees_url":"https://api.github.com/repos/raphink/shields/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raphink/shields/statuses/{sha}","languages_url":"https://api.github.com/repos/raphink/shields/languages","stargazers_url":"https://api.github.com/repos/raphink/shields/stargazers","contributors_url":"https://api.github.com/repos/raphink/shields/contributors","subscribers_url":"https://api.github.com/repos/raphink/shields/subscribers","subscription_url":"https://api.github.com/repos/raphink/shields/subscription","commits_url":"https://api.github.com/repos/raphink/shields/commits{/sha}","git_commits_url":"https://api.github.com/repos/raphink/shields/git/commits{/sha}","comments_url":"https://api.github.com/repos/raphink/shields/comments{/number}","issue_comment_url":"https://api.github.com/repos/raphink/shields/issues/comments{/number}","contents_url":"https://api.github.com/repos/raphink/shields/contents/{+path}","compare_url":"https://api.github.com/repos/raphink/shields/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raphink/shields/merges","archive_url":"https://api.github.com/repos/raphink/shields/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raphink/shields/downloads","issues_url":"https://api.github.com/repos/raphink/shields/issues{/number}","pulls_url":"https://api.github.com/repos/raphink/shields/pulls{/number}","milestones_url":"https://api.github.com/repos/raphink/shields/milestones{/number}","notifications_url":"https://api.github.com/repos/raphink/shields/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raphink/shields/labels{/name}","releases_url":"https://api.github.com/repos/raphink/shields/releases{/id}","created_at":"2015-02-23T21:52:39Z","updated_at":"2015-02-23T21:52:39Z","pushed_at":"2015-03-22T22:11:46Z","git_url":"git://github.com/raphink/shields.git","ssh_url":"git@github.com:raphink/shields.git","clone_url":"https://github.com/raphink/shields.git","svn_url":"https://github.com/raphink/shields","homepage":"http://shields.io","size":2925,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"badges:master","ref":"master","sha":"5bb621a90911d86be0a0ed2882e7060cc255b86b","user":{"login":"badges","id":6254238,"avatar_url":"https://avatars.githubusercontent.com/u/6254238?v=3","gravatar_id":"","url":"https://api.github.com/users/badges","html_url":"https://github.com/badges","followers_url":"https://api.github.com/users/badges/followers","following_url":"https://api.github.com/users/badges/following{/other_user}","gists_url":"https://api.github.com/users/badges/gists{/gist_id}","starred_url":"https://api.github.com/users/badges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badges/subscriptions","organizations_url":"https://api.github.com/users/badges/orgs","repos_url":"https://api.github.com/users/badges/repos","events_url":"https://api.github.com/users/badges/events{/privacy}","received_events_url":"https://api.github.com/users/badges/received_events","type":"Organization","site_admin":false},"repo":{"id":7910045,"name":"shields","full_name":"badges/shields","owner":{"login":"badges","id":6254238,"avatar_url":"https://avatars.githubusercontent.com/u/6254238?v=3","gravatar_id":"","url":"https://api.github.com/users/badges","html_url":"https://github.com/badges","followers_url":"https://api.github.com/users/badges/followers","following_url":"https://api.github.com/users/badges/following{/other_user}","gists_url":"https://api.github.com/users/badges/gists{/gist_id}","starred_url":"https://api.github.com/users/badges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badges/subscriptions","organizations_url":"https://api.github.com/users/badges/orgs","repos_url":"https://api.github.com/users/badges/repos","events_url":"https://api.github.com/users/badges/events{/privacy}","received_events_url":"https://api.github.com/users/badges/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/badges/shields","description":"Shields badge specification, website and default API server","fork":false,"url":"https://api.github.com/repos/badges/shields","forks_url":"https://api.github.com/repos/badges/shields/forks","keys_url":"https://api.github.com/repos/badges/shields/keys{/key_id}","collaborators_url":"https://api.github.com/repos/badges/shields/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/badges/shields/teams","hooks_url":"https://api.github.com/repos/badges/shields/hooks","issue_events_url":"https://api.github.com/repos/badges/shields/issues/events{/number}","events_url":"https://api.github.com/repos/badges/shields/events","assignees_url":"https://api.github.com/repos/badges/shields/assignees{/user}","branches_url":"https://api.github.com/repos/badges/shields/branches{/branch}","tags_url":"https://api.github.com/repos/badges/shields/tags","blobs_url":"https://api.github.com/repos/badges/shields/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/badges/shields/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/badges/shields/git/refs{/sha}","trees_url":"https://api.github.com/repos/badges/shields/git/trees{/sha}","statuses_url":"https://api.github.com/repos/badges/shields/statuses/{sha}","languages_url":"https://api.github.com/repos/badges/shields/languages","stargazers_url":"https://api.github.com/repos/badges/shields/stargazers","contributors_url":"https://api.github.com/repos/badges/shields/contributors","subscribers_url":"https://api.github.com/repos/badges/shields/subscribers","subscription_url":"https://api.github.com/repos/badges/shields/subscription","commits_url":"https://api.github.com/repos/badges/shields/commits{/sha}","git_commits_url":"https://api.github.com/repos/badges/shields/git/commits{/sha}","comments_url":"https://api.github.com/repos/badges/shields/comments{/number}","issue_comment_url":"https://api.github.com/repos/badges/shields/issues/comments{/number}","contents_url":"https://api.github.com/repos/badges/shields/contents/{+path}","compare_url":"https://api.github.com/repos/badges/shields/compare/{base}...{head}","merges_url":"https://api.github.com/repos/badges/shields/merges","archive_url":"https://api.github.com/repos/badges/shields/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/badges/shields/downloads","issues_url":"https://api.github.com/repos/badges/shields/issues{/number}","pulls_url":"https://api.github.com/repos/badges/shields/pulls{/number}","milestones_url":"https://api.github.com/repos/badges/shields/milestones{/number}","notifications_url":"https://api.github.com/repos/badges/shields/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/badges/shields/labels{/name}","releases_url":"https://api.github.com/repos/badges/shields/releases{/id}","created_at":"2013-01-30T07:41:54Z","updated_at":"2015-03-28T10:57:47Z","pushed_at":"2015-03-28T10:57:47Z","git_url":"git://github.com/badges/shields.git","ssh_url":"git@github.com:badges/shields.git","clone_url":"https://github.com/badges/shields.git","svn_url":"https://github.com/badges/shields","homepage":"http://shields.io","size":5956,"stargazers_count":1417,"watchers_count":1417,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":180,"mirror_url":null,"open_issues_count":62,"forks":180,"open_issues":62,"watchers":1417,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/badges/shields/pulls/387"},"html":{"href":"https://github.com/badges/shields/pull/387"},"issue":{"href":"https://api.github.com/repos/badges/shields/issues/387"},"comments":{"href":"https://api.github.com/repos/badges/shields/issues/387/comments"},"review_comments":{"href":"https://api.github.com/repos/badges/shields/pulls/387/comments"},"review_comment":{"href":"https://api.github.com/repos/badges/shields/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/badges/shields/pulls/387/commits"},"statuses":{"href":"https://api.github.com/repos/badges/shields/statuses/bb26c8f6e41dd0a33534176575ea4d240215dfbb"}}}}