{"action":"created","comment":{"url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/comments/176029772","pull_request_review_id":105654362,"id":176029772,"diff_hunk":"@@ -0,0 +1,11 @@\n+<% if @comment.errors.any? %>\n+    <div class=\"alert alert-danger\">\n+      <% @comment.errors.full_messages.each do |msg| %>\n+        <li><%= msg %></li>\n+      <% end %>\n+  </div>\n+<% end %>\n+<%= simple_form_for [@commentable.reviewable, @commentable, @comment] do |f| %>","path":"app/views/comments/new.html.erb","position":8,"original_position":8,"commit_id":"5152f124238a3b7b0342efc008d992fe7ecfdd72","original_commit_id":"5152f124238a3b7b0342efc008d992fe7ecfdd72","user":{"login":"polakowski","id":9076315,"avatar_url":"https://avatars0.githubusercontent.com/u/9076315?v=4","gravatar_id":"","url":"https://api.github.com/users/polakowski","html_url":"https://github.com/polakowski","followers_url":"https://api.github.com/users/polakowski/followers","following_url":"https://api.github.com/users/polakowski/following{/other_user}","gists_url":"https://api.github.com/users/polakowski/gists{/gist_id}","starred_url":"https://api.github.com/users/polakowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polakowski/subscriptions","organizations_url":"https://api.github.com/users/polakowski/orgs","repos_url":"https://api.github.com/users/polakowski/repos","events_url":"https://api.github.com/users/polakowski/events{/privacy}","received_events_url":"https://api.github.com/users/polakowski/received_events","type":"User","site_admin":false},"body":"What if commentable isn't something that's reviewable?","created_at":"2018-03-21T10:03:59Z","updated_at":"2018-03-21T10:05:16Z","html_url":"https://github.com/lukasz-lapczyk/review-dealer/pull/8#discussion_r176029772","pull_request_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/comments/176029772"},"html":{"href":"https://github.com/lukasz-lapczyk/review-dealer/pull/8#discussion_r176029772"},"pull_request":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8","id":176421976,"html_url":"https://github.com/lukasz-lapczyk/review-dealer/pull/8","diff_url":"https://github.com/lukasz-lapczyk/review-dealer/pull/8.diff","patch_url":"https://github.com/lukasz-lapczyk/review-dealer/pull/8.patch","issue_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/8","number":8,"state":"open","locked":false,"title":"Add review comments","user":{"login":"lukasz-lapczyk","id":34340088,"avatar_url":"https://avatars1.githubusercontent.com/u/34340088?v=4","gravatar_id":"","url":"https://api.github.com/users/lukasz-lapczyk","html_url":"https://github.com/lukasz-lapczyk","followers_url":"https://api.github.com/users/lukasz-lapczyk/followers","following_url":"https://api.github.com/users/lukasz-lapczyk/following{/other_user}","gists_url":"https://api.github.com/users/lukasz-lapczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasz-lapczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasz-lapczyk/subscriptions","organizations_url":"https://api.github.com/users/lukasz-lapczyk/orgs","repos_url":"https://api.github.com/users/lukasz-lapczyk/repos","events_url":"https://api.github.com/users/lukasz-lapczyk/events{/privacy}","received_events_url":"https://api.github.com/users/lukasz-lapczyk/received_events","type":"User","site_admin":false},"body":"# Overview\r\nRegistered users can add comments to reviews. Comments can be edited or deleted by its owner. Comment's body can contain 5-200 characters. \r\n\r\n# Testing prerequisites\r\n- db:migrate\r\n\r\n# Testing\r\n- navigate to root directory\r\n- log in with 'user_1@example.org', pass: Secret19 or create new account\r\n- choose any company from the list, then open its review page\r\n## Adding comment\r\n- click on 'Add comment' button\r\n- [ ] form for creating new comment should appear on comments listing\r\n- fill in form with valid data, then click 'Comment' button\r\n- [ ] comment should appear on page\r\n## Editing comment\r\n- click 'Edit' button next to comment you created\r\n- update comment data, then click 'Update' button\r\n- [ ] updated comment should appear on comments listing\r\n## Deleting comment\r\n- click 'Delete' button next to your comment and confirm by clicking 'OK' on alert\r\n- [ ] comment should be deleted","created_at":"2018-03-21T09:43:26Z","updated_at":"2018-03-21T10:05:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"975d181e23ad7171e001c2e4d795f83a00ea6a15","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":860415871,"url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/labels/review%20me","name":"review me","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8/commits","review_comments_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8/comments","review_comment_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/8/comments","statuses_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/statuses/5152f124238a3b7b0342efc008d992fe7ecfdd72","head":{"label":"lukasz-lapczyk:7_review_comments","ref":"7_review_comments","sha":"5152f124238a3b7b0342efc008d992fe7ecfdd72","user":{"login":"lukasz-lapczyk","id":34340088,"avatar_url":"https://avatars1.githubusercontent.com/u/34340088?v=4","gravatar_id":"","url":"https://api.github.com/users/lukasz-lapczyk","html_url":"https://github.com/lukasz-lapczyk","followers_url":"https://api.github.com/users/lukasz-lapczyk/followers","following_url":"https://api.github.com/users/lukasz-lapczyk/following{/other_user}","gists_url":"https://api.github.com/users/lukasz-lapczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasz-lapczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasz-lapczyk/subscriptions","organizations_url":"https://api.github.com/users/lukasz-lapczyk/orgs","repos_url":"https://api.github.com/users/lukasz-lapczyk/repos","events_url":"https://api.github.com/users/lukasz-lapczyk/events{/privacy}","received_events_url":"https://api.github.com/users/lukasz-lapczyk/received_events","type":"User","site_admin":false},"repo":{"id":124051288,"name":"review-dealer","full_name":"lukasz-lapczyk/review-dealer","owner":{"login":"lukasz-lapczyk","id":34340088,"avatar_url":"https://avatars1.githubusercontent.com/u/34340088?v=4","gravatar_id":"","url":"https://api.github.com/users/lukasz-lapczyk","html_url":"https://github.com/lukasz-lapczyk","followers_url":"https://api.github.com/users/lukasz-lapczyk/followers","following_url":"https://api.github.com/users/lukasz-lapczyk/following{/other_user}","gists_url":"https://api.github.com/users/lukasz-lapczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasz-lapczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasz-lapczyk/subscriptions","organizations_url":"https://api.github.com/users/lukasz-lapczyk/orgs","repos_url":"https://api.github.com/users/lukasz-lapczyk/repos","events_url":"https://api.github.com/users/lukasz-lapczyk/events{/privacy}","received_events_url":"https://api.github.com/users/lukasz-lapczyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukasz-lapczyk/review-dealer","description":null,"fork":false,"url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer","forks_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/forks","keys_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/teams","hooks_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/hooks","issue_events_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/events{/number}","events_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/events","assignees_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/assignees{/user}","branches_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/branches{/branch}","tags_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/tags","blobs_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/statuses/{sha}","languages_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/languages","stargazers_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/stargazers","contributors_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/contributors","subscribers_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/subscribers","subscription_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/subscription","commits_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/contents/{+path}","compare_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/merges","archive_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/downloads","issues_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues{/number}","pulls_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls{/number}","milestones_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/milestones{/number}","notifications_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/labels{/name}","releases_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/releases{/id}","deployments_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/deployments","created_at":"2018-03-06T09:07:40Z","updated_at":"2018-03-20T14:15:25Z","pushed_at":"2018-03-21T09:43:27Z","git_url":"git://github.com/lukasz-lapczyk/review-dealer.git","ssh_url":"git@github.com:lukasz-lapczyk/review-dealer.git","clone_url":"https://github.com/lukasz-lapczyk/review-dealer.git","svn_url":"https://github.com/lukasz-lapczyk/review-dealer","homepage":null,"size":301,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lukasz-lapczyk:master","ref":"master","sha":"4392739243cdfc5b86c4b0e93835dd79453b366a","user":{"login":"lukasz-lapczyk","id":34340088,"avatar_url":"https://avatars1.githubusercontent.com/u/34340088?v=4","gravatar_id":"","url":"https://api.github.com/users/lukasz-lapczyk","html_url":"https://github.com/lukasz-lapczyk","followers_url":"https://api.github.com/users/lukasz-lapczyk/followers","following_url":"https://api.github.com/users/lukasz-lapczyk/following{/other_user}","gists_url":"https://api.github.com/users/lukasz-lapczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasz-lapczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasz-lapczyk/subscriptions","organizations_url":"https://api.github.com/users/lukasz-lapczyk/orgs","repos_url":"https://api.github.com/users/lukasz-lapczyk/repos","events_url":"https://api.github.com/users/lukasz-lapczyk/events{/privacy}","received_events_url":"https://api.github.com/users/lukasz-lapczyk/received_events","type":"User","site_admin":false},"repo":{"id":124051288,"name":"review-dealer","full_name":"lukasz-lapczyk/review-dealer","owner":{"login":"lukasz-lapczyk","id":34340088,"avatar_url":"https://avatars1.githubusercontent.com/u/34340088?v=4","gravatar_id":"","url":"https://api.github.com/users/lukasz-lapczyk","html_url":"https://github.com/lukasz-lapczyk","followers_url":"https://api.github.com/users/lukasz-lapczyk/followers","following_url":"https://api.github.com/users/lukasz-lapczyk/following{/other_user}","gists_url":"https://api.github.com/users/lukasz-lapczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasz-lapczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasz-lapczyk/subscriptions","organizations_url":"https://api.github.com/users/lukasz-lapczyk/orgs","repos_url":"https://api.github.com/users/lukasz-lapczyk/repos","events_url":"https://api.github.com/users/lukasz-lapczyk/events{/privacy}","received_events_url":"https://api.github.com/users/lukasz-lapczyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukasz-lapczyk/review-dealer","description":null,"fork":false,"url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer","forks_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/forks","keys_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/teams","hooks_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/hooks","issue_events_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/events{/number}","events_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/events","assignees_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/assignees{/user}","branches_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/branches{/branch}","tags_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/tags","blobs_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/statuses/{sha}","languages_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/languages","stargazers_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/stargazers","contributors_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/contributors","subscribers_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/subscribers","subscription_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/subscription","commits_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/contents/{+path}","compare_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/merges","archive_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/downloads","issues_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues{/number}","pulls_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls{/number}","milestones_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/milestones{/number}","notifications_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/labels{/name}","releases_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/releases{/id}","deployments_url":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/deployments","created_at":"2018-03-06T09:07:40Z","updated_at":"2018-03-20T14:15:25Z","pushed_at":"2018-03-21T09:43:27Z","git_url":"git://github.com/lukasz-lapczyk/review-dealer.git","ssh_url":"git@github.com:lukasz-lapczyk/review-dealer.git","clone_url":"https://github.com/lukasz-lapczyk/review-dealer.git","svn_url":"https://github.com/lukasz-lapczyk/review-dealer","homepage":null,"size":301,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8"},"html":{"href":"https://github.com/lukasz-lapczyk/review-dealer/pull/8"},"issue":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/8"},"comments":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/lukasz-lapczyk/review-dealer/statuses/5152f124238a3b7b0342efc008d992fe7ecfdd72"}},"author_association":"OWNER"}}
{"actor":{"display_login":"polakowski"}}