{"action":"created","comment":{"url":"https://api.github.com/repos/trumant/gerry/pulls/comments/34391970","id":34391970,"diff_hunk":"@@ -65,7 +65,13 @@ def parse(response)\n           raise_request_error(response)\n         end\n         if response.body\n-          JSON.parse(remove_magic_prefix(response.body))\n+          source = remove_magic_prefix(response.body)","path":"lib/gerry/client/request.rb","position":41,"original_position":41,"commit_id":"b13746ddf46429a0bae03ca1f56a14dc65353692","original_commit_id":"e4f9bb6ca4c9e90044ebb6b350e9ee92cf99f6ff","user":{"login":"sschuberth","id":349154,"avatar_url":"https://avatars.githubusercontent.com/u/349154?v=3","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false},"body":"I've updated the PR accordingly.","created_at":"2015-07-10T20:14:09Z","updated_at":"2015-07-10T20:14:09Z","html_url":"https://github.com/trumant/gerry/pull/5#discussion_r34391970","pull_request_url":"https://api.github.com/repos/trumant/gerry/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/trumant/gerry/pulls/comments/34391970"},"html":{"href":"https://github.com/trumant/gerry/pull/5#discussion_r34391970"},"pull_request":{"href":"https://api.github.com/repos/trumant/gerry/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/trumant/gerry/pulls/5","id":39693349,"html_url":"https://github.com/trumant/gerry/pull/5","diff_url":"https://github.com/trumant/gerry/pull/5.diff","patch_url":"https://github.com/trumant/gerry/pull/5.patch","issue_url":"https://api.github.com/repos/trumant/gerry/issues/5","number":5,"state":"open","locked":false,"title":"Add a method to set the symbolic HEAD ref for a project","user":{"login":"sschuberth","id":349154,"avatar_url":"https://avatars.githubusercontent.com/u/349154?v=3","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false},"body":"For that to work I needed to work around a bug in the JSON gem when parsing top-level values.","created_at":"2015-07-10T15:10:47Z","updated_at":"2015-07-10T20:14:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a3fb47e81f73bb56695af0df44325e80dd9970e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/trumant/gerry/pulls/5/commits","review_comments_url":"https://api.github.com/repos/trumant/gerry/pulls/5/comments","review_comment_url":"https://api.github.com/repos/trumant/gerry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trumant/gerry/issues/5/comments","statuses_url":"https://api.github.com/repos/trumant/gerry/statuses/b13746ddf46429a0bae03ca1f56a14dc65353692","head":{"label":"sschuberth:master","ref":"master","sha":"b13746ddf46429a0bae03ca1f56a14dc65353692","user":{"login":"sschuberth","id":349154,"avatar_url":"https://avatars.githubusercontent.com/u/349154?v=3","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false},"repo":{"id":37253492,"name":"gerry","full_name":"sschuberth/gerry","owner":{"login":"sschuberth","id":349154,"avatar_url":"https://avatars.githubusercontent.com/u/349154?v=3","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sschuberth/gerry","description":"Simple Ruby wrapper for the Gerrit Code Review REST-API","fork":true,"url":"https://api.github.com/repos/sschuberth/gerry","forks_url":"https://api.github.com/repos/sschuberth/gerry/forks","keys_url":"https://api.github.com/repos/sschuberth/gerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sschuberth/gerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sschuberth/gerry/teams","hooks_url":"https://api.github.com/repos/sschuberth/gerry/hooks","issue_events_url":"https://api.github.com/repos/sschuberth/gerry/issues/events{/number}","events_url":"https://api.github.com/repos/sschuberth/gerry/events","assignees_url":"https://api.github.com/repos/sschuberth/gerry/assignees{/user}","branches_url":"https://api.github.com/repos/sschuberth/gerry/branches{/branch}","tags_url":"https://api.github.com/repos/sschuberth/gerry/tags","blobs_url":"https://api.github.com/repos/sschuberth/gerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sschuberth/gerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sschuberth/gerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/sschuberth/gerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sschuberth/gerry/statuses/{sha}","languages_url":"https://api.github.com/repos/sschuberth/gerry/languages","stargazers_url":"https://api.github.com/repos/sschuberth/gerry/stargazers","contributors_url":"https://api.github.com/repos/sschuberth/gerry/contributors","subscribers_url":"https://api.github.com/repos/sschuberth/gerry/subscribers","subscription_url":"https://api.github.com/repos/sschuberth/gerry/subscription","commits_url":"https://api.github.com/repos/sschuberth/gerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/sschuberth/gerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/sschuberth/gerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/sschuberth/gerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/sschuberth/gerry/contents/{+path}","compare_url":"https://api.github.com/repos/sschuberth/gerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sschuberth/gerry/merges","archive_url":"https://api.github.com/repos/sschuberth/gerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sschuberth/gerry/downloads","issues_url":"https://api.github.com/repos/sschuberth/gerry/issues{/number}","pulls_url":"https://api.github.com/repos/sschuberth/gerry/pulls{/number}","milestones_url":"https://api.github.com/repos/sschuberth/gerry/milestones{/number}","notifications_url":"https://api.github.com/repos/sschuberth/gerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sschuberth/gerry/labels{/name}","releases_url":"https://api.github.com/repos/sschuberth/gerry/releases{/id}","created_at":"2015-06-11T10:01:29Z","updated_at":"2015-06-11T10:01:29Z","pushed_at":"2015-07-10T20:13:50Z","git_url":"git://github.com/sschuberth/gerry.git","ssh_url":"git@github.com:sschuberth/gerry.git","clone_url":"https://github.com/sschuberth/gerry.git","svn_url":"https://github.com/sschuberth/gerry","homepage":null,"size":118,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"trumant:master","ref":"master","sha":"81c9b348042bc1fdf137253ab9e9582b809ea3c5","user":{"login":"trumant","id":599706,"avatar_url":"https://avatars.githubusercontent.com/u/599706?v=3","gravatar_id":"","url":"https://api.github.com/users/trumant","html_url":"https://github.com/trumant","followers_url":"https://api.github.com/users/trumant/followers","following_url":"https://api.github.com/users/trumant/following{/other_user}","gists_url":"https://api.github.com/users/trumant/gists{/gist_id}","starred_url":"https://api.github.com/users/trumant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trumant/subscriptions","organizations_url":"https://api.github.com/users/trumant/orgs","repos_url":"https://api.github.com/users/trumant/repos","events_url":"https://api.github.com/users/trumant/events{/privacy}","received_events_url":"https://api.github.com/users/trumant/received_events","type":"User","site_admin":false},"repo":{"id":26556126,"name":"gerry","full_name":"trumant/gerry","owner":{"login":"trumant","id":599706,"avatar_url":"https://avatars.githubusercontent.com/u/599706?v=3","gravatar_id":"","url":"https://api.github.com/users/trumant","html_url":"https://github.com/trumant","followers_url":"https://api.github.com/users/trumant/followers","following_url":"https://api.github.com/users/trumant/following{/other_user}","gists_url":"https://api.github.com/users/trumant/gists{/gist_id}","starred_url":"https://api.github.com/users/trumant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trumant/subscriptions","organizations_url":"https://api.github.com/users/trumant/orgs","repos_url":"https://api.github.com/users/trumant/repos","events_url":"https://api.github.com/users/trumant/events{/privacy}","received_events_url":"https://api.github.com/users/trumant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trumant/gerry","description":"Simple Ruby wrapper for the Gerrit Code Review REST-API","fork":true,"url":"https://api.github.com/repos/trumant/gerry","forks_url":"https://api.github.com/repos/trumant/gerry/forks","keys_url":"https://api.github.com/repos/trumant/gerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trumant/gerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trumant/gerry/teams","hooks_url":"https://api.github.com/repos/trumant/gerry/hooks","issue_events_url":"https://api.github.com/repos/trumant/gerry/issues/events{/number}","events_url":"https://api.github.com/repos/trumant/gerry/events","assignees_url":"https://api.github.com/repos/trumant/gerry/assignees{/user}","branches_url":"https://api.github.com/repos/trumant/gerry/branches{/branch}","tags_url":"https://api.github.com/repos/trumant/gerry/tags","blobs_url":"https://api.github.com/repos/trumant/gerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trumant/gerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trumant/gerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/trumant/gerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trumant/gerry/statuses/{sha}","languages_url":"https://api.github.com/repos/trumant/gerry/languages","stargazers_url":"https://api.github.com/repos/trumant/gerry/stargazers","contributors_url":"https://api.github.com/repos/trumant/gerry/contributors","subscribers_url":"https://api.github.com/repos/trumant/gerry/subscribers","subscription_url":"https://api.github.com/repos/trumant/gerry/subscription","commits_url":"https://api.github.com/repos/trumant/gerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/trumant/gerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/trumant/gerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/trumant/gerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/trumant/gerry/contents/{+path}","compare_url":"https://api.github.com/repos/trumant/gerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trumant/gerry/merges","archive_url":"https://api.github.com/repos/trumant/gerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trumant/gerry/downloads","issues_url":"https://api.github.com/repos/trumant/gerry/issues{/number}","pulls_url":"https://api.github.com/repos/trumant/gerry/pulls{/number}","milestones_url":"https://api.github.com/repos/trumant/gerry/milestones{/number}","notifications_url":"https://api.github.com/repos/trumant/gerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trumant/gerry/labels{/name}","releases_url":"https://api.github.com/repos/trumant/gerry/releases{/id}","created_at":"2014-11-12T21:05:27Z","updated_at":"2015-06-03T18:39:38Z","pushed_at":"2015-07-10T20:13:50Z","git_url":"git://github.com/trumant/gerry.git","ssh_url":"git@github.com:trumant/gerry.git","clone_url":"https://github.com/trumant/gerry.git","svn_url":"https://github.com/trumant/gerry","homepage":null,"size":209,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trumant/gerry/pulls/5"},"html":{"href":"https://github.com/trumant/gerry/pull/5"},"issue":{"href":"https://api.github.com/repos/trumant/gerry/issues/5"},"comments":{"href":"https://api.github.com/repos/trumant/gerry/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/trumant/gerry/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/trumant/gerry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trumant/gerry/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/trumant/gerry/statuses/b13746ddf46429a0bae03ca1f56a14dc65353692"}}}}