{"action":"created","comment":{"url":"https://api.github.com/repos/q3ry/test-pronto/pulls/comments/60829021","id":60829021,"diff_hunk":"@@ -0,0 +1,74 @@\n+class PostsController < ApplicationController\n+  before_action :set_post, only: [:show, :edit, :update, :destroy]\n+\n+  # GET /posts\n+  # GET /posts.json\n+  def index\n+    @posts = Post.all\n+  end\n+\n+  # GET /posts/1\n+  # GET /posts/1.json\n+  def show\n+  end\n+\n+  # GET /posts/new\n+  def new\n+    @post = Post.new\n+  end\n+\n+  # GET /posts/1/edit\n+  def edit\n+  end\n+\n+  # POST /posts\n+  # POST /posts.json\n+  def create\n+    @post = Post.new(post_params)\n+\n+    respond_to do |format|\n+      if @post.save\n+        format.html { redirect_to @post, notice: 'Post was successfully created.' }","path":"app/controllers/posts_controller.rb","position":31,"original_position":31,"commit_id":"be2661407722a8c70aed66c7e2f6a308f74fbbc3","original_commit_id":"be2661407722a8c70aed66c7e2f6a308f74fbbc3","user":{"login":"q3ry","id":2273745,"avatar_url":"https://avatars.githubusercontent.com/u/2273745?v=3","gravatar_id":"","url":"https://api.github.com/users/q3ry","html_url":"https://github.com/q3ry","followers_url":"https://api.github.com/users/q3ry/followers","following_url":"https://api.github.com/users/q3ry/following{/other_user}","gists_url":"https://api.github.com/users/q3ry/gists{/gist_id}","starred_url":"https://api.github.com/users/q3ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q3ry/subscriptions","organizations_url":"https://api.github.com/users/q3ry/orgs","repos_url":"https://api.github.com/users/q3ry/repos","events_url":"https://api.github.com/users/q3ry/events{/privacy}","received_events_url":"https://api.github.com/users/q3ry/received_events","type":"User","site_admin":false},"body":"Similar code found in posts_controller.rb:31, posts_controller.rb:45 (mass = 38)","created_at":"2016-04-23T14:07:38Z","updated_at":"2016-04-23T14:07:38Z","html_url":"https://github.com/q3ry/test-pronto/pull/2#discussion_r60829021","pull_request_url":"https://api.github.com/repos/q3ry/test-pronto/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/q3ry/test-pronto/pulls/comments/60829021"},"html":{"href":"https://github.com/q3ry/test-pronto/pull/2#discussion_r60829021"},"pull_request":{"href":"https://api.github.com/repos/q3ry/test-pronto/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/q3ry/test-pronto/pulls/2","id":67607691,"html_url":"https://github.com/q3ry/test-pronto/pull/2","diff_url":"https://github.com/q3ry/test-pronto/pull/2.diff","patch_url":"https://github.com/q3ry/test-pronto/pull/2.patch","issue_url":"https://api.github.com/repos/q3ry/test-pronto/issues/2","number":2,"state":"open","locked":false,"title":"Test brakeman","user":{"login":"q3ry","id":2273745,"avatar_url":"https://avatars.githubusercontent.com/u/2273745?v=3","gravatar_id":"","url":"https://api.github.com/users/q3ry","html_url":"https://github.com/q3ry","followers_url":"https://api.github.com/users/q3ry/followers","following_url":"https://api.github.com/users/q3ry/following{/other_user}","gists_url":"https://api.github.com/users/q3ry/gists{/gist_id}","starred_url":"https://api.github.com/users/q3ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q3ry/subscriptions","organizations_url":"https://api.github.com/users/q3ry/orgs","repos_url":"https://api.github.com/users/q3ry/repos","events_url":"https://api.github.com/users/q3ry/events{/privacy}","received_events_url":"https://api.github.com/users/q3ry/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-04-23T14:07:32Z","updated_at":"2016-04-23T14:07:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da8496eb04a63da730ac7da4eced87423c3bf8ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/q3ry/test-pronto/pulls/2/commits","review_comments_url":"https://api.github.com/repos/q3ry/test-pronto/pulls/2/comments","review_comment_url":"https://api.github.com/repos/q3ry/test-pronto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/q3ry/test-pronto/issues/2/comments","statuses_url":"https://api.github.com/repos/q3ry/test-pronto/statuses/be2661407722a8c70aed66c7e2f6a308f74fbbc3","head":{"label":"q3ry:test-brakeman","ref":"test-brakeman","sha":"be2661407722a8c70aed66c7e2f6a308f74fbbc3","user":{"login":"q3ry","id":2273745,"avatar_url":"https://avatars.githubusercontent.com/u/2273745?v=3","gravatar_id":"","url":"https://api.github.com/users/q3ry","html_url":"https://github.com/q3ry","followers_url":"https://api.github.com/users/q3ry/followers","following_url":"https://api.github.com/users/q3ry/following{/other_user}","gists_url":"https://api.github.com/users/q3ry/gists{/gist_id}","starred_url":"https://api.github.com/users/q3ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q3ry/subscriptions","organizations_url":"https://api.github.com/users/q3ry/orgs","repos_url":"https://api.github.com/users/q3ry/repos","events_url":"https://api.github.com/users/q3ry/events{/privacy}","received_events_url":"https://api.github.com/users/q3ry/received_events","type":"User","site_admin":false},"repo":{"id":56917514,"name":"test-pronto","full_name":"q3ry/test-pronto","owner":{"login":"q3ry","id":2273745,"avatar_url":"https://avatars.githubusercontent.com/u/2273745?v=3","gravatar_id":"","url":"https://api.github.com/users/q3ry","html_url":"https://github.com/q3ry","followers_url":"https://api.github.com/users/q3ry/followers","following_url":"https://api.github.com/users/q3ry/following{/other_user}","gists_url":"https://api.github.com/users/q3ry/gists{/gist_id}","starred_url":"https://api.github.com/users/q3ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q3ry/subscriptions","organizations_url":"https://api.github.com/users/q3ry/orgs","repos_url":"https://api.github.com/users/q3ry/repos","events_url":"https://api.github.com/users/q3ry/events{/privacy}","received_events_url":"https://api.github.com/users/q3ry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/q3ry/test-pronto","description":"","fork":false,"url":"https://api.github.com/repos/q3ry/test-pronto","forks_url":"https://api.github.com/repos/q3ry/test-pronto/forks","keys_url":"https://api.github.com/repos/q3ry/test-pronto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/q3ry/test-pronto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/q3ry/test-pronto/teams","hooks_url":"https://api.github.com/repos/q3ry/test-pronto/hooks","issue_events_url":"https://api.github.com/repos/q3ry/test-pronto/issues/events{/number}","events_url":"https://api.github.com/repos/q3ry/test-pronto/events","assignees_url":"https://api.github.com/repos/q3ry/test-pronto/assignees{/user}","branches_url":"https://api.github.com/repos/q3ry/test-pronto/branches{/branch}","tags_url":"https://api.github.com/repos/q3ry/test-pronto/tags","blobs_url":"https://api.github.com/repos/q3ry/test-pronto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/q3ry/test-pronto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/q3ry/test-pronto/git/refs{/sha}","trees_url":"https://api.github.com/repos/q3ry/test-pronto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/q3ry/test-pronto/statuses/{sha}","languages_url":"https://api.github.com/repos/q3ry/test-pronto/languages","stargazers_url":"https://api.github.com/repos/q3ry/test-pronto/stargazers","contributors_url":"https://api.github.com/repos/q3ry/test-pronto/contributors","subscribers_url":"https://api.github.com/repos/q3ry/test-pronto/subscribers","subscription_url":"https://api.github.com/repos/q3ry/test-pronto/subscription","commits_url":"https://api.github.com/repos/q3ry/test-pronto/commits{/sha}","git_commits_url":"https://api.github.com/repos/q3ry/test-pronto/git/commits{/sha}","comments_url":"https://api.github.com/repos/q3ry/test-pronto/comments{/number}","issue_comment_url":"https://api.github.com/repos/q3ry/test-pronto/issues/comments{/number}","contents_url":"https://api.github.com/repos/q3ry/test-pronto/contents/{+path}","compare_url":"https://api.github.com/repos/q3ry/test-pronto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/q3ry/test-pronto/merges","archive_url":"https://api.github.com/repos/q3ry/test-pronto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/q3ry/test-pronto/downloads","issues_url":"https://api.github.com/repos/q3ry/test-pronto/issues{/number}","pulls_url":"https://api.github.com/repos/q3ry/test-pronto/pulls{/number}","milestones_url":"https://api.github.com/repos/q3ry/test-pronto/milestones{/number}","notifications_url":"https://api.github.com/repos/q3ry/test-pronto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/q3ry/test-pronto/labels{/name}","releases_url":"https://api.github.com/repos/q3ry/test-pronto/releases{/id}","deployments_url":"https://api.github.com/repos/q3ry/test-pronto/deployments","created_at":"2016-04-23T12:12:57Z","updated_at":"2016-04-23T13:18:57Z","pushed_at":"2016-04-23T14:07:32Z","git_url":"git://github.com/q3ry/test-pronto.git","ssh_url":"git@github.com:q3ry/test-pronto.git","clone_url":"https://github.com/q3ry/test-pronto.git","svn_url":"https://github.com/q3ry/test-pronto","homepage":null,"size":27,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"q3ry:master","ref":"master","sha":"e329da02259aad17a8414dd1600e58432d11556d","user":{"login":"q3ry","id":2273745,"avatar_url":"https://avatars.githubusercontent.com/u/2273745?v=3","gravatar_id":"","url":"https://api.github.com/users/q3ry","html_url":"https://github.com/q3ry","followers_url":"https://api.github.com/users/q3ry/followers","following_url":"https://api.github.com/users/q3ry/following{/other_user}","gists_url":"https://api.github.com/users/q3ry/gists{/gist_id}","starred_url":"https://api.github.com/users/q3ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q3ry/subscriptions","organizations_url":"https://api.github.com/users/q3ry/orgs","repos_url":"https://api.github.com/users/q3ry/repos","events_url":"https://api.github.com/users/q3ry/events{/privacy}","received_events_url":"https://api.github.com/users/q3ry/received_events","type":"User","site_admin":false},"repo":{"id":56917514,"name":"test-pronto","full_name":"q3ry/test-pronto","owner":{"login":"q3ry","id":2273745,"avatar_url":"https://avatars.githubusercontent.com/u/2273745?v=3","gravatar_id":"","url":"https://api.github.com/users/q3ry","html_url":"https://github.com/q3ry","followers_url":"https://api.github.com/users/q3ry/followers","following_url":"https://api.github.com/users/q3ry/following{/other_user}","gists_url":"https://api.github.com/users/q3ry/gists{/gist_id}","starred_url":"https://api.github.com/users/q3ry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q3ry/subscriptions","organizations_url":"https://api.github.com/users/q3ry/orgs","repos_url":"https://api.github.com/users/q3ry/repos","events_url":"https://api.github.com/users/q3ry/events{/privacy}","received_events_url":"https://api.github.com/users/q3ry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/q3ry/test-pronto","description":"","fork":false,"url":"https://api.github.com/repos/q3ry/test-pronto","forks_url":"https://api.github.com/repos/q3ry/test-pronto/forks","keys_url":"https://api.github.com/repos/q3ry/test-pronto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/q3ry/test-pronto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/q3ry/test-pronto/teams","hooks_url":"https://api.github.com/repos/q3ry/test-pronto/hooks","issue_events_url":"https://api.github.com/repos/q3ry/test-pronto/issues/events{/number}","events_url":"https://api.github.com/repos/q3ry/test-pronto/events","assignees_url":"https://api.github.com/repos/q3ry/test-pronto/assignees{/user}","branches_url":"https://api.github.com/repos/q3ry/test-pronto/branches{/branch}","tags_url":"https://api.github.com/repos/q3ry/test-pronto/tags","blobs_url":"https://api.github.com/repos/q3ry/test-pronto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/q3ry/test-pronto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/q3ry/test-pronto/git/refs{/sha}","trees_url":"https://api.github.com/repos/q3ry/test-pronto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/q3ry/test-pronto/statuses/{sha}","languages_url":"https://api.github.com/repos/q3ry/test-pronto/languages","stargazers_url":"https://api.github.com/repos/q3ry/test-pronto/stargazers","contributors_url":"https://api.github.com/repos/q3ry/test-pronto/contributors","subscribers_url":"https://api.github.com/repos/q3ry/test-pronto/subscribers","subscription_url":"https://api.github.com/repos/q3ry/test-pronto/subscription","commits_url":"https://api.github.com/repos/q3ry/test-pronto/commits{/sha}","git_commits_url":"https://api.github.com/repos/q3ry/test-pronto/git/commits{/sha}","comments_url":"https://api.github.com/repos/q3ry/test-pronto/comments{/number}","issue_comment_url":"https://api.github.com/repos/q3ry/test-pronto/issues/comments{/number}","contents_url":"https://api.github.com/repos/q3ry/test-pronto/contents/{+path}","compare_url":"https://api.github.com/repos/q3ry/test-pronto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/q3ry/test-pronto/merges","archive_url":"https://api.github.com/repos/q3ry/test-pronto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/q3ry/test-pronto/downloads","issues_url":"https://api.github.com/repos/q3ry/test-pronto/issues{/number}","pulls_url":"https://api.github.com/repos/q3ry/test-pronto/pulls{/number}","milestones_url":"https://api.github.com/repos/q3ry/test-pronto/milestones{/number}","notifications_url":"https://api.github.com/repos/q3ry/test-pronto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/q3ry/test-pronto/labels{/name}","releases_url":"https://api.github.com/repos/q3ry/test-pronto/releases{/id}","deployments_url":"https://api.github.com/repos/q3ry/test-pronto/deployments","created_at":"2016-04-23T12:12:57Z","updated_at":"2016-04-23T13:18:57Z","pushed_at":"2016-04-23T14:07:32Z","git_url":"git://github.com/q3ry/test-pronto.git","ssh_url":"git@github.com:q3ry/test-pronto.git","clone_url":"https://github.com/q3ry/test-pronto.git","svn_url":"https://github.com/q3ry/test-pronto","homepage":null,"size":27,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/q3ry/test-pronto/pulls/2"},"html":{"href":"https://github.com/q3ry/test-pronto/pull/2"},"issue":{"href":"https://api.github.com/repos/q3ry/test-pronto/issues/2"},"comments":{"href":"https://api.github.com/repos/q3ry/test-pronto/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/q3ry/test-pronto/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/q3ry/test-pronto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/q3ry/test-pronto/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/q3ry/test-pronto/statuses/be2661407722a8c70aed66c7e2f6a308f74fbbc3"}}}}