{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/45603359","id":45603359,"diff_hunk":"@@ -0,0 +1,188 @@\n+/*!\n+ * body-parser\n+ * Copyright(c) 2014-2015 Douglas Christopher Wilson\n+ * MIT Licensed\n+ */\n+\n+'use strict'\n+\n+/**\n+ * Module dependencies.\n+ * @private\n+ */\n+\n+var createError = require('http-errors')\n+var getBody = require('raw-body')\n+var iconv = require('iconv-lite')\n+var onFinished = require('on-finished')\n+var zlib = require('zlib')\n+\n+/**\n+ * Module exports.\n+ */\n+\n+module.exports = read\n+\n+/**\n+ * Read a request into a buffer and parse.\n+ *\n+ * @param {object} req\n+ * @param {object} res\n+ * @param {function} next\n+ * @param {function} parse\n+ * @param {function} debug\n+ * @param {object} [options]\n+ * @api private\n+ */\n+\n+function read(req, res, next, parse, debug, options) {\n+  var length\n+  var opts = options || {}\n+  var stream\n+\n+  // flag as parsed\n+  req._body = true\n+\n+  // read options\n+  var encoding = opts.encoding !== null\n+    ? opts.encoding || 'utf-8'\n+    : null\n+  var verify = opts.verify\n+\n+  try {\n+    // get the content stream\n+    stream = contentstream(req, debug, opts.inflate)\n+    length = stream.length\n+    stream.length = undefined\n+  } catch (err) {\n+    return next(err)\n+  }\n+\n+  // set raw-body options\n+  opts.length = length\n+  opts.encoding = verify\n+    ? null\n+    : encoding\n+\n+  // assert charset is supported\n+  if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {\n+    return next(createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n+      charset: encoding.toLowerCase()\n+    }))\n+  }\n+\n+  // read body\n+  debug('read body')\n+  getBody(stream, opts, function (err, body) {\n+    if (err) {\n+      // default to 400\n+      setErrorStatus(err, 400)\n+\n+      // echo back charset\n+      if (err.type === 'encoding.unsupported') {\n+        err = createError(415, 'unsupported charset \"' + encoding.toUpperCase() + '\"', {\n+          charset: encoding.toLowerCase()\n+        })\n+      }\n+\n+      // read off entire request\n+      stream.resume()\n+      onFinished(req, function onfinished() {\n+        next(err)\n+      })\n+      return\n+    }\n+\n+    // verify\n+    if (verify) {\n+      try {\n+        debug('verify body')\n+        verify(req, res, body, encoding)\n+      } catch (err) {\n+        // default to 403\n+        setErrorStatus(err, 403)\n+        next(err)\n+        return\n+      }\n+    }\n+\n+    // parse\n+    var str\n+    try {\n+      debug('parse body')\n+      str = typeof body !== 'string' && encoding !== null\n+        ? iconv.decode(body, encoding)\n+        : body\n+      req.body = parse(str)\n+    } catch (err) {\n+      err.body = str === undefined\n+        ? body","path":"node_modules/body-parser/lib/read.js","position":119,"original_position":119,"commit_id":"101a06c9d618da838feeb0ff22b99b735a416658","original_commit_id":"101a06c9d618da838feeb0ff22b99b735a416658","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Bad line breaking before '?'.","created_at":"2015-11-23T13:41:33Z","updated_at":"2015-11-23T13:41:33Z","html_url":"https://github.com/makersacademy/bowling-challenge/pull/171#discussion_r45603359","pull_request_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments/45603359"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/171#discussion_r45603359"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171","id":51523896,"html_url":"https://github.com/makersacademy/bowling-challenge/pull/171","diff_url":"https://github.com/makersacademy/bowling-challenge/pull/171.diff","patch_url":"https://github.com/makersacademy/bowling-challenge/pull/171.patch","issue_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/171","number":171,"state":"open","locked":false,"title":"First Pull to Makers","user":{"login":"ezzye","id":4438295,"avatar_url":"https://avatars.githubusercontent.com/u/4438295?v=3","gravatar_id":"","url":"https://api.github.com/users/ezzye","html_url":"https://github.com/ezzye","followers_url":"https://api.github.com/users/ezzye/followers","following_url":"https://api.github.com/users/ezzye/following{/other_user}","gists_url":"https://api.github.com/users/ezzye/gists{/gist_id}","starred_url":"https://api.github.com/users/ezzye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezzye/subscriptions","organizations_url":"https://api.github.com/users/ezzye/orgs","repos_url":"https://api.github.com/users/ezzye/repos","events_url":"https://api.github.com/users/ezzye/events{/privacy}","received_events_url":"https://api.github.com/users/ezzye/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-23T13:40:26Z","updated_at":"2015-11-23T13:41:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72c443ca3c8a95e0c9ce8c7579a1bed75b3cbfe3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171/commits","review_comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171/comments","review_comment_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/171/comments","statuses_url":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/101a06c9d618da838feeb0ff22b99b735a416658","head":{"label":"ezzye:master","ref":"master","sha":"101a06c9d618da838feeb0ff22b99b735a416658","user":{"login":"ezzye","id":4438295,"avatar_url":"https://avatars.githubusercontent.com/u/4438295?v=3","gravatar_id":"","url":"https://api.github.com/users/ezzye","html_url":"https://github.com/ezzye","followers_url":"https://api.github.com/users/ezzye/followers","following_url":"https://api.github.com/users/ezzye/following{/other_user}","gists_url":"https://api.github.com/users/ezzye/gists{/gist_id}","starred_url":"https://api.github.com/users/ezzye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezzye/subscriptions","organizations_url":"https://api.github.com/users/ezzye/orgs","repos_url":"https://api.github.com/users/ezzye/repos","events_url":"https://api.github.com/users/ezzye/events{/privacy}","received_events_url":"https://api.github.com/users/ezzye/received_events","type":"User","site_admin":false},"repo":{"id":46170968,"name":"bowling-challenge","full_name":"ezzye/bowling-challenge","owner":{"login":"ezzye","id":4438295,"avatar_url":"https://avatars.githubusercontent.com/u/4438295?v=3","gravatar_id":"","url":"https://api.github.com/users/ezzye","html_url":"https://github.com/ezzye","followers_url":"https://api.github.com/users/ezzye/followers","following_url":"https://api.github.com/users/ezzye/following{/other_user}","gists_url":"https://api.github.com/users/ezzye/gists{/gist_id}","starred_url":"https://api.github.com/users/ezzye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezzye/subscriptions","organizations_url":"https://api.github.com/users/ezzye/orgs","repos_url":"https://api.github.com/users/ezzye/repos","events_url":"https://api.github.com/users/ezzye/events{/privacy}","received_events_url":"https://api.github.com/users/ezzye/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ezzye/bowling-challenge","description":"Calculate Scores for Ten Pin Bowling","fork":true,"url":"https://api.github.com/repos/ezzye/bowling-challenge","forks_url":"https://api.github.com/repos/ezzye/bowling-challenge/forks","keys_url":"https://api.github.com/repos/ezzye/bowling-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezzye/bowling-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezzye/bowling-challenge/teams","hooks_url":"https://api.github.com/repos/ezzye/bowling-challenge/hooks","issue_events_url":"https://api.github.com/repos/ezzye/bowling-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/ezzye/bowling-challenge/events","assignees_url":"https://api.github.com/repos/ezzye/bowling-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/ezzye/bowling-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/ezzye/bowling-challenge/tags","blobs_url":"https://api.github.com/repos/ezzye/bowling-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezzye/bowling-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezzye/bowling-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezzye/bowling-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezzye/bowling-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/ezzye/bowling-challenge/languages","stargazers_url":"https://api.github.com/repos/ezzye/bowling-challenge/stargazers","contributors_url":"https://api.github.com/repos/ezzye/bowling-challenge/contributors","subscribers_url":"https://api.github.com/repos/ezzye/bowling-challenge/subscribers","subscription_url":"https://api.github.com/repos/ezzye/bowling-challenge/subscription","commits_url":"https://api.github.com/repos/ezzye/bowling-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezzye/bowling-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezzye/bowling-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezzye/bowling-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezzye/bowling-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/ezzye/bowling-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezzye/bowling-challenge/merges","archive_url":"https://api.github.com/repos/ezzye/bowling-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezzye/bowling-challenge/downloads","issues_url":"https://api.github.com/repos/ezzye/bowling-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/ezzye/bowling-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/ezzye/bowling-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/ezzye/bowling-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezzye/bowling-challenge/labels{/name}","releases_url":"https://api.github.com/repos/ezzye/bowling-challenge/releases{/id}","created_at":"2015-11-14T10:50:54Z","updated_at":"2015-11-20T09:44:37Z","pushed_at":"2015-11-22T12:02:14Z","git_url":"git://github.com/ezzye/bowling-challenge.git","ssh_url":"git@github.com:ezzye/bowling-challenge.git","clone_url":"https://github.com/ezzye/bowling-challenge.git","svn_url":"https://github.com/ezzye/bowling-challenge","homepage":null,"size":4558,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"8d9c3f3fc007d0de596a366e647329ee5b358cda","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27005859,"name":"bowling-challenge","full_name":"makersacademy/bowling-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/bowling-challenge","description":"Calculate Scores for Ten Pin Bowling","fork":false,"url":"https://api.github.com/repos/makersacademy/bowling-challenge","forks_url":"https://api.github.com/repos/makersacademy/bowling-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/bowling-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/bowling-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/bowling-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/bowling-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/bowling-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/bowling-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/bowling-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/bowling-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/bowling-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/bowling-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/bowling-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/bowling-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/bowling-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/bowling-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/bowling-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/bowling-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/bowling-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/bowling-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/bowling-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/bowling-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/bowling-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/bowling-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/bowling-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/bowling-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/bowling-challenge/releases{/id}","created_at":"2014-11-22T17:07:53Z","updated_at":"2015-08-31T16:43:50Z","pushed_at":"2015-11-23T13:40:26Z","git_url":"git://github.com/makersacademy/bowling-challenge.git","ssh_url":"git@github.com:makersacademy/bowling-challenge.git","clone_url":"https://github.com/makersacademy/bowling-challenge.git","svn_url":"https://github.com/makersacademy/bowling-challenge","homepage":null,"size":38187,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":184,"mirror_url":null,"open_issues_count":27,"forks":184,"open_issues":27,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171"},"html":{"href":"https://github.com/makersacademy/bowling-challenge/pull/171"},"issue":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/171"},"comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/bowling-challenge/statuses/101a06c9d618da838feeb0ff22b99b735a416658"}}}}