{"action":"created","comment":{"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments/38960341","id":38960341,"diff_hunk":"@@ -0,0 +1,15 @@\n+class PiecesController < ApplicationController\n+\tbefore_action :authenticate_user!\n+\n+\tdef update\n+\t\tpiece = Piece.find(params[:id])\n+\t\tpiece.update_attributes(piece_params)\n+\t\trender :text => 'updated!'\n+\tend\n+\n+\tprivate\n+\n+\tdef piece_params\n+\t\tparams.require(:piece).permit(:x_position, :y_position)\n+\tend","path":"app/controllers/pieces_controller.rb","position":14,"original_position":14,"commit_id":"1e0df3179ba0f68a060717e1911e56f1eefde0c3","original_commit_id":"1e0df3179ba0f68a060717e1911e56f1eefde0c3","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":"Tab detected.","created_at":"2015-09-08T18:14:49Z","updated_at":"2015-09-08T18:14:49Z","html_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/20#discussion_r38960341","pull_request_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments/38960341"},"html":{"href":"https://github.com/foolsmatechess/fools_mate_chess/pull/20#discussion_r38960341"},"pull_request":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20","id":44464674,"html_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/20","diff_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/20.diff","patch_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/20.patch","issue_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/20","number":20,"state":"open","locked":false,"title":"Move pieces","user":{"login":"johnzondr","id":12823947,"avatar_url":"https://avatars.githubusercontent.com/u/12823947?v=3","gravatar_id":"","url":"https://api.github.com/users/johnzondr","html_url":"https://github.com/johnzondr","followers_url":"https://api.github.com/users/johnzondr/followers","following_url":"https://api.github.com/users/johnzondr/following{/other_user}","gists_url":"https://api.github.com/users/johnzondr/gists{/gist_id}","starred_url":"https://api.github.com/users/johnzondr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnzondr/subscriptions","organizations_url":"https://api.github.com/users/johnzondr/orgs","repos_url":"https://api.github.com/users/johnzondr/repos","events_url":"https://api.github.com/users/johnzondr/events{/privacy}","received_events_url":"https://api.github.com/users/johnzondr/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-08T18:14:42Z","updated_at":"2015-09-08T18:14:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2e62d94dd2faeeacce06be6eb1c17c6d26b34fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20/commits","review_comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20/comments","review_comment_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/20/comments","statuses_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/1e0df3179ba0f68a060717e1911e56f1eefde0c3","head":{"label":"foolsmatechess:move_pieces","ref":"move_pieces","sha":"1e0df3179ba0f68a060717e1911e56f1eefde0c3","user":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"repo":{"id":39698887,"name":"fools_mate_chess","full_name":"foolsmatechess/fools_mate_chess","owner":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foolsmatechess/fools_mate_chess","description":"","fork":false,"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess","forks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/forks","keys_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/teams","hooks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/hooks","issue_events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/events{/number}","events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/events","assignees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/assignees{/user}","branches_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/branches{/branch}","tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/tags","blobs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/{sha}","languages_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/languages","stargazers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/stargazers","contributors_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contributors","subscribers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscribers","subscription_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscription","commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contents/{+path}","compare_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/merges","archive_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/downloads","issues_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues{/number}","pulls_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls{/number}","milestones_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/milestones{/number}","notifications_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/labels{/name}","releases_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/releases{/id}","created_at":"2015-07-25T19:02:20Z","updated_at":"2015-07-25T21:19:03Z","pushed_at":"2015-09-08T18:14:42Z","git_url":"git://github.com/foolsmatechess/fools_mate_chess.git","ssh_url":"git@github.com:foolsmatechess/fools_mate_chess.git","clone_url":"https://github.com/foolsmatechess/fools_mate_chess.git","svn_url":"https://github.com/foolsmatechess/fools_mate_chess","homepage":"https://foolsmate.herokuapp.com/","size":624,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"foolsmatechess:master","ref":"master","sha":"6e5ab3eae793c5bb761ac7fec7f89cbe4a64b02f","user":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"repo":{"id":39698887,"name":"fools_mate_chess","full_name":"foolsmatechess/fools_mate_chess","owner":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foolsmatechess/fools_mate_chess","description":"","fork":false,"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess","forks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/forks","keys_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/teams","hooks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/hooks","issue_events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/events{/number}","events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/events","assignees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/assignees{/user}","branches_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/branches{/branch}","tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/tags","blobs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/{sha}","languages_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/languages","stargazers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/stargazers","contributors_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contributors","subscribers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscribers","subscription_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscription","commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contents/{+path}","compare_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/merges","archive_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/downloads","issues_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues{/number}","pulls_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls{/number}","milestones_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/milestones{/number}","notifications_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/labels{/name}","releases_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/releases{/id}","created_at":"2015-07-25T19:02:20Z","updated_at":"2015-07-25T21:19:03Z","pushed_at":"2015-09-08T18:14:42Z","git_url":"git://github.com/foolsmatechess/fools_mate_chess.git","ssh_url":"git@github.com:foolsmatechess/fools_mate_chess.git","clone_url":"https://github.com/foolsmatechess/fools_mate_chess.git","svn_url":"https://github.com/foolsmatechess/fools_mate_chess","homepage":"https://foolsmate.herokuapp.com/","size":624,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20"},"html":{"href":"https://github.com/foolsmatechess/fools_mate_chess/pull/20"},"issue":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/20"},"comments":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/1e0df3179ba0f68a060717e1911e56f1eefde0c3"}}}}