{"action":"created","comment":{"url":"https://api.github.com/repos/algizator/book-store/pulls/comments/142003909","pull_request_review_id":66311016,"id":142003909,"diff_hunk":"@@ -0,0 +1,40 @@\n+# Counter implementation (Show action on book).\n+\n+jQuery ->\n+  input =\n+    field: $('.quantity-input')\n+    increase: $('.plus')\n+    decrease: $('.minus')\n+\n+  if input.field.val() == ''\n+    input.field.val(1)\n+  \n+  input.increase.on 'click', (event) =>\n+    input.field.val(parseInt( input.field.val(), 10 ) + 1 )\n+\n+  input.decrease.on 'click', (event) =>\n+    if input.field.val() == '1'\n+      alert('1 or greater')\n+    else\n+      input.field.val(parseInt( input.field.val(), 10 ) - 1 )\n+  ","path":"app/assets/javascripts/books.coffee","position":20,"original_position":20,"commit_id":"f71e3786f788d8653797befcb02c20b9a02d4412","original_commit_id":"f71e3786f788d8653797befcb02c20b9a02d4412","user":{"login":"mic-2000","id":1778079,"avatar_url":"https://avatars3.githubusercontent.com/u/1778079?v=4","gravatar_id":"","url":"https://api.github.com/users/mic-2000","html_url":"https://github.com/mic-2000","followers_url":"https://api.github.com/users/mic-2000/followers","following_url":"https://api.github.com/users/mic-2000/following{/other_user}","gists_url":"https://api.github.com/users/mic-2000/gists{/gist_id}","starred_url":"https://api.github.com/users/mic-2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mic-2000/subscriptions","organizations_url":"https://api.github.com/users/mic-2000/orgs","repos_url":"https://api.github.com/users/mic-2000/repos","events_url":"https://api.github.com/users/mic-2000/events{/privacy}","received_events_url":"https://api.github.com/users/mic-2000/received_events","type":"User","site_admin":false},"body":"remove blank lines\r\nmaximum 1 blank line between each function","created_at":"2017-09-30T11:02:59Z","updated_at":"2017-09-30T11:02:59Z","html_url":"https://github.com/algizator/book-store/pull/1#discussion_r142003909","pull_request_url":"https://api.github.com/repos/algizator/book-store/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/algizator/book-store/pulls/comments/142003909"},"html":{"href":"https://github.com/algizator/book-store/pull/1#discussion_r142003909"},"pull_request":{"href":"https://api.github.com/repos/algizator/book-store/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/algizator/book-store/pulls/1","id":142724956,"html_url":"https://github.com/algizator/book-store/pull/1","diff_url":"https://github.com/algizator/book-store/pull/1.diff","patch_url":"https://github.com/algizator/book-store/pull/1.patch","issue_url":"https://api.github.com/repos/algizator/book-store/issues/1","number":1,"state":"open","locked":false,"title":"Dev","user":{"login":"algizator","id":26046226,"avatar_url":"https://avatars1.githubusercontent.com/u/26046226?v=4","gravatar_id":"","url":"https://api.github.com/users/algizator","html_url":"https://github.com/algizator","followers_url":"https://api.github.com/users/algizator/followers","following_url":"https://api.github.com/users/algizator/following{/other_user}","gists_url":"https://api.github.com/users/algizator/gists{/gist_id}","starred_url":"https://api.github.com/users/algizator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algizator/subscriptions","organizations_url":"https://api.github.com/users/algizator/orgs","repos_url":"https://api.github.com/users/algizator/repos","events_url":"https://api.github.com/users/algizator/events{/privacy}","received_events_url":"https://api.github.com/users/algizator/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-23T18:46:36Z","updated_at":"2017-09-30T11:02:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b37d64726c214e9c902fee60fa313b65b90347f8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/algizator/book-store/pulls/1/commits","review_comments_url":"https://api.github.com/repos/algizator/book-store/pulls/1/comments","review_comment_url":"https://api.github.com/repos/algizator/book-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algizator/book-store/issues/1/comments","statuses_url":"https://api.github.com/repos/algizator/book-store/statuses/f71e3786f788d8653797befcb02c20b9a02d4412","head":{"label":"algizator:dev","ref":"dev","sha":"f71e3786f788d8653797befcb02c20b9a02d4412","user":{"login":"algizator","id":26046226,"avatar_url":"https://avatars1.githubusercontent.com/u/26046226?v=4","gravatar_id":"","url":"https://api.github.com/users/algizator","html_url":"https://github.com/algizator","followers_url":"https://api.github.com/users/algizator/followers","following_url":"https://api.github.com/users/algizator/following{/other_user}","gists_url":"https://api.github.com/users/algizator/gists{/gist_id}","starred_url":"https://api.github.com/users/algizator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algizator/subscriptions","organizations_url":"https://api.github.com/users/algizator/orgs","repos_url":"https://api.github.com/users/algizator/repos","events_url":"https://api.github.com/users/algizator/events{/privacy}","received_events_url":"https://api.github.com/users/algizator/received_events","type":"User","site_admin":false},"repo":{"id":97408041,"name":"book-store","full_name":"algizator/book-store","owner":{"login":"algizator","id":26046226,"avatar_url":"https://avatars1.githubusercontent.com/u/26046226?v=4","gravatar_id":"","url":"https://api.github.com/users/algizator","html_url":"https://github.com/algizator","followers_url":"https://api.github.com/users/algizator/followers","following_url":"https://api.github.com/users/algizator/following{/other_user}","gists_url":"https://api.github.com/users/algizator/gists{/gist_id}","starred_url":"https://api.github.com/users/algizator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algizator/subscriptions","organizations_url":"https://api.github.com/users/algizator/orgs","repos_url":"https://api.github.com/users/algizator/repos","events_url":"https://api.github.com/users/algizator/events{/privacy}","received_events_url":"https://api.github.com/users/algizator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/algizator/book-store","description":"Bookstore Web interface.","fork":false,"url":"https://api.github.com/repos/algizator/book-store","forks_url":"https://api.github.com/repos/algizator/book-store/forks","keys_url":"https://api.github.com/repos/algizator/book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algizator/book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algizator/book-store/teams","hooks_url":"https://api.github.com/repos/algizator/book-store/hooks","issue_events_url":"https://api.github.com/repos/algizator/book-store/issues/events{/number}","events_url":"https://api.github.com/repos/algizator/book-store/events","assignees_url":"https://api.github.com/repos/algizator/book-store/assignees{/user}","branches_url":"https://api.github.com/repos/algizator/book-store/branches{/branch}","tags_url":"https://api.github.com/repos/algizator/book-store/tags","blobs_url":"https://api.github.com/repos/algizator/book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algizator/book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algizator/book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/algizator/book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algizator/book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/algizator/book-store/languages","stargazers_url":"https://api.github.com/repos/algizator/book-store/stargazers","contributors_url":"https://api.github.com/repos/algizator/book-store/contributors","subscribers_url":"https://api.github.com/repos/algizator/book-store/subscribers","subscription_url":"https://api.github.com/repos/algizator/book-store/subscription","commits_url":"https://api.github.com/repos/algizator/book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/algizator/book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/algizator/book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/algizator/book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/algizator/book-store/contents/{+path}","compare_url":"https://api.github.com/repos/algizator/book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algizator/book-store/merges","archive_url":"https://api.github.com/repos/algizator/book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algizator/book-store/downloads","issues_url":"https://api.github.com/repos/algizator/book-store/issues{/number}","pulls_url":"https://api.github.com/repos/algizator/book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/algizator/book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/algizator/book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algizator/book-store/labels{/name}","releases_url":"https://api.github.com/repos/algizator/book-store/releases{/id}","deployments_url":"https://api.github.com/repos/algizator/book-store/deployments","created_at":"2017-07-16T20:05:08Z","updated_at":"2017-09-25T11:36:57Z","pushed_at":"2017-09-27T13:25:46Z","git_url":"git://github.com/algizator/book-store.git","ssh_url":"git@github.com:algizator/book-store.git","clone_url":"https://github.com/algizator/book-store.git","svn_url":"https://github.com/algizator/book-store","homepage":"https://rgstore.herokuapp.com/","size":212,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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":"algizator:master","ref":"master","sha":"6bb48be18dd0f08890640bdbe920f7a7cbae8d04","user":{"login":"algizator","id":26046226,"avatar_url":"https://avatars1.githubusercontent.com/u/26046226?v=4","gravatar_id":"","url":"https://api.github.com/users/algizator","html_url":"https://github.com/algizator","followers_url":"https://api.github.com/users/algizator/followers","following_url":"https://api.github.com/users/algizator/following{/other_user}","gists_url":"https://api.github.com/users/algizator/gists{/gist_id}","starred_url":"https://api.github.com/users/algizator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algizator/subscriptions","organizations_url":"https://api.github.com/users/algizator/orgs","repos_url":"https://api.github.com/users/algizator/repos","events_url":"https://api.github.com/users/algizator/events{/privacy}","received_events_url":"https://api.github.com/users/algizator/received_events","type":"User","site_admin":false},"repo":{"id":97408041,"name":"book-store","full_name":"algizator/book-store","owner":{"login":"algizator","id":26046226,"avatar_url":"https://avatars1.githubusercontent.com/u/26046226?v=4","gravatar_id":"","url":"https://api.github.com/users/algizator","html_url":"https://github.com/algizator","followers_url":"https://api.github.com/users/algizator/followers","following_url":"https://api.github.com/users/algizator/following{/other_user}","gists_url":"https://api.github.com/users/algizator/gists{/gist_id}","starred_url":"https://api.github.com/users/algizator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algizator/subscriptions","organizations_url":"https://api.github.com/users/algizator/orgs","repos_url":"https://api.github.com/users/algizator/repos","events_url":"https://api.github.com/users/algizator/events{/privacy}","received_events_url":"https://api.github.com/users/algizator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/algizator/book-store","description":"Bookstore Web interface.","fork":false,"url":"https://api.github.com/repos/algizator/book-store","forks_url":"https://api.github.com/repos/algizator/book-store/forks","keys_url":"https://api.github.com/repos/algizator/book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algizator/book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algizator/book-store/teams","hooks_url":"https://api.github.com/repos/algizator/book-store/hooks","issue_events_url":"https://api.github.com/repos/algizator/book-store/issues/events{/number}","events_url":"https://api.github.com/repos/algizator/book-store/events","assignees_url":"https://api.github.com/repos/algizator/book-store/assignees{/user}","branches_url":"https://api.github.com/repos/algizator/book-store/branches{/branch}","tags_url":"https://api.github.com/repos/algizator/book-store/tags","blobs_url":"https://api.github.com/repos/algizator/book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algizator/book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algizator/book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/algizator/book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algizator/book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/algizator/book-store/languages","stargazers_url":"https://api.github.com/repos/algizator/book-store/stargazers","contributors_url":"https://api.github.com/repos/algizator/book-store/contributors","subscribers_url":"https://api.github.com/repos/algizator/book-store/subscribers","subscription_url":"https://api.github.com/repos/algizator/book-store/subscription","commits_url":"https://api.github.com/repos/algizator/book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/algizator/book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/algizator/book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/algizator/book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/algizator/book-store/contents/{+path}","compare_url":"https://api.github.com/repos/algizator/book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algizator/book-store/merges","archive_url":"https://api.github.com/repos/algizator/book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algizator/book-store/downloads","issues_url":"https://api.github.com/repos/algizator/book-store/issues{/number}","pulls_url":"https://api.github.com/repos/algizator/book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/algizator/book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/algizator/book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algizator/book-store/labels{/name}","releases_url":"https://api.github.com/repos/algizator/book-store/releases{/id}","deployments_url":"https://api.github.com/repos/algizator/book-store/deployments","created_at":"2017-07-16T20:05:08Z","updated_at":"2017-09-25T11:36:57Z","pushed_at":"2017-09-27T13:25:46Z","git_url":"git://github.com/algizator/book-store.git","ssh_url":"git@github.com:algizator/book-store.git","clone_url":"https://github.com/algizator/book-store.git","svn_url":"https://github.com/algizator/book-store","homepage":"https://rgstore.herokuapp.com/","size":212,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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/algizator/book-store/pulls/1"},"html":{"href":"https://github.com/algizator/book-store/pull/1"},"issue":{"href":"https://api.github.com/repos/algizator/book-store/issues/1"},"comments":{"href":"https://api.github.com/repos/algizator/book-store/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/algizator/book-store/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/algizator/book-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algizator/book-store/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/algizator/book-store/statuses/f71e3786f788d8653797befcb02c20b9a02d4412"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mic-2000"}}