{"action":"created","comment":{"url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments/28446079","id":28446079,"diff_hunk":"@@ -0,0 +1,45 @@\n+$(document).ready(function() {\n+  $('[data-unit=\"create\"]').on('submit', function(event) {\n+    event.preventDefault();\n+    var $form = $(event.currentTarget);\n+    $.ajax({\n+      type: \"POST\",\n+      url: $form.attr('action'),\n+      data: $($form).serialize(),\n+      dataType: 'json',\n+      success: function(unit) {\n+        var action = '/units/'+ unit.id;\n+        var $newForm = $('<form>').attr({\n+          action: action,\n+          method: 'post',\n+          'data-unit': 'delete'\n+        });\n+        var $unitButton = $('<input>').attr({type: 'submit', value: 'Delete Unit', 'data-method': 'delete'});\n+        var $methodField = $('<input>').attr({type: 'hidden', name: '_method', value: 'delete'});","path":"app/assets/javascripts/Remus.js","position":18,"original_position":18,"commit_id":"d30cc17de0d7d4386a78f91c7c43b70499e94085","original_commit_id":"d30cc17de0d7d4386a78f91c7c43b70499e94085","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":"Line is too long.","created_at":"2015-04-15T18:08:16Z","updated_at":"2015-04-15T18:08:16Z","html_url":"https://github.com/psgoodman/Project-Remus/pull/2#discussion_r28446079","pull_request_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments/28446079"},"html":{"href":"https://github.com/psgoodman/Project-Remus/pull/2#discussion_r28446079"},"pull_request":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/2","id":33185556,"html_url":"https://github.com/psgoodman/Project-Remus/pull/2","diff_url":"https://github.com/psgoodman/Project-Remus/pull/2.diff","patch_url":"https://github.com/psgoodman/Project-Remus/pull/2.patch","issue_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/2","number":2,"state":"open","locked":false,"title":"WIP - Units","user":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-13T17:38:57Z","updated_at":"2015-04-15T18:08:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3a2171c55d9d3c92bdb9cc9833f497fbe16519b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/2/commits","review_comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/2/comments","review_comment_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/2/comments","statuses_url":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/d30cc17de0d7d4386a78f91c7c43b70499e94085","head":{"label":"psgoodman:Units","ref":"Units","sha":"d30cc17de0d7d4386a78f91c7c43b70499e94085","user":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"repo":{"id":33006564,"name":"Project-Remus","full_name":"psgoodman/Project-Remus","owner":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psgoodman/Project-Remus","description":"","fork":false,"url":"https://api.github.com/repos/psgoodman/Project-Remus","forks_url":"https://api.github.com/repos/psgoodman/Project-Remus/forks","keys_url":"https://api.github.com/repos/psgoodman/Project-Remus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psgoodman/Project-Remus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psgoodman/Project-Remus/teams","hooks_url":"https://api.github.com/repos/psgoodman/Project-Remus/hooks","issue_events_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/events{/number}","events_url":"https://api.github.com/repos/psgoodman/Project-Remus/events","assignees_url":"https://api.github.com/repos/psgoodman/Project-Remus/assignees{/user}","branches_url":"https://api.github.com/repos/psgoodman/Project-Remus/branches{/branch}","tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/tags","blobs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/refs{/sha}","trees_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/{sha}","languages_url":"https://api.github.com/repos/psgoodman/Project-Remus/languages","stargazers_url":"https://api.github.com/repos/psgoodman/Project-Remus/stargazers","contributors_url":"https://api.github.com/repos/psgoodman/Project-Remus/contributors","subscribers_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscribers","subscription_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscription","commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/commits{/sha}","git_commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/commits{/sha}","comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/comments{/number}","issue_comment_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/comments{/number}","contents_url":"https://api.github.com/repos/psgoodman/Project-Remus/contents/{+path}","compare_url":"https://api.github.com/repos/psgoodman/Project-Remus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psgoodman/Project-Remus/merges","archive_url":"https://api.github.com/repos/psgoodman/Project-Remus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psgoodman/Project-Remus/downloads","issues_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues{/number}","pulls_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls{/number}","milestones_url":"https://api.github.com/repos/psgoodman/Project-Remus/milestones{/number}","notifications_url":"https://api.github.com/repos/psgoodman/Project-Remus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psgoodman/Project-Remus/labels{/name}","releases_url":"https://api.github.com/repos/psgoodman/Project-Remus/releases{/id}","created_at":"2015-03-27T19:59:54Z","updated_at":"2015-04-13T17:30:19Z","pushed_at":"2015-04-15T18:08:05Z","git_url":"git://github.com/psgoodman/Project-Remus.git","ssh_url":"git@github.com:psgoodman/Project-Remus.git","clone_url":"https://github.com/psgoodman/Project-Remus.git","svn_url":"https://github.com/psgoodman/Project-Remus","homepage":null,"size":160,"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":"psgoodman:master","ref":"master","sha":"87098befd9930dda648518c4ee2cb61ce261f392","user":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"repo":{"id":33006564,"name":"Project-Remus","full_name":"psgoodman/Project-Remus","owner":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psgoodman/Project-Remus","description":"","fork":false,"url":"https://api.github.com/repos/psgoodman/Project-Remus","forks_url":"https://api.github.com/repos/psgoodman/Project-Remus/forks","keys_url":"https://api.github.com/repos/psgoodman/Project-Remus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psgoodman/Project-Remus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psgoodman/Project-Remus/teams","hooks_url":"https://api.github.com/repos/psgoodman/Project-Remus/hooks","issue_events_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/events{/number}","events_url":"https://api.github.com/repos/psgoodman/Project-Remus/events","assignees_url":"https://api.github.com/repos/psgoodman/Project-Remus/assignees{/user}","branches_url":"https://api.github.com/repos/psgoodman/Project-Remus/branches{/branch}","tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/tags","blobs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/refs{/sha}","trees_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/{sha}","languages_url":"https://api.github.com/repos/psgoodman/Project-Remus/languages","stargazers_url":"https://api.github.com/repos/psgoodman/Project-Remus/stargazers","contributors_url":"https://api.github.com/repos/psgoodman/Project-Remus/contributors","subscribers_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscribers","subscription_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscription","commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/commits{/sha}","git_commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/commits{/sha}","comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/comments{/number}","issue_comment_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/comments{/number}","contents_url":"https://api.github.com/repos/psgoodman/Project-Remus/contents/{+path}","compare_url":"https://api.github.com/repos/psgoodman/Project-Remus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psgoodman/Project-Remus/merges","archive_url":"https://api.github.com/repos/psgoodman/Project-Remus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psgoodman/Project-Remus/downloads","issues_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues{/number}","pulls_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls{/number}","milestones_url":"https://api.github.com/repos/psgoodman/Project-Remus/milestones{/number}","notifications_url":"https://api.github.com/repos/psgoodman/Project-Remus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psgoodman/Project-Remus/labels{/name}","releases_url":"https://api.github.com/repos/psgoodman/Project-Remus/releases{/id}","created_at":"2015-03-27T19:59:54Z","updated_at":"2015-04-13T17:30:19Z","pushed_at":"2015-04-15T18:08:05Z","git_url":"git://github.com/psgoodman/Project-Remus.git","ssh_url":"git@github.com:psgoodman/Project-Remus.git","clone_url":"https://github.com/psgoodman/Project-Remus.git","svn_url":"https://github.com/psgoodman/Project-Remus","homepage":null,"size":160,"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/psgoodman/Project-Remus/pulls/2"},"html":{"href":"https://github.com/psgoodman/Project-Remus/pull/2"},"issue":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/issues/2"},"comments":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/d30cc17de0d7d4386a78f91c7c43b70499e94085"}}}}