{"action":"created","comment":{"url":"https://api.github.com/repos/Ricoch/Target/pulls/comments/214663765","pull_request_review_id":151766431,"id":214663765,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDY2Mzc2NQ==","diff_hunk":"@@ -0,0 +1,51 @@\n+require 'rails_helper'\n+\n+describe 'DELETE api/v1/targets/:id' do\n+  let!(:user)   { create(:user) }","path":"spec/requests/api/v1/targets/destroy_spec.rb","position":4,"original_position":4,"commit_id":"fd8b7805dfb4ba1a6a2b8880a480a7d4d2bf7468","original_commit_id":"fd8b7805dfb4ba1a6a2b8880a480a7d4d2bf7468","user":{"login":"federicoaldunate","id":39736940,"node_id":"MDQ6VXNlcjM5NzM2OTQw","avatar_url":"https://avatars3.githubusercontent.com/u/39736940?v=4","gravatar_id":"","url":"https://api.github.com/users/federicoaldunate","html_url":"https://github.com/federicoaldunate","followers_url":"https://api.github.com/users/federicoaldunate/followers","following_url":"https://api.github.com/users/federicoaldunate/following{/other_user}","gists_url":"https://api.github.com/users/federicoaldunate/gists{/gist_id}","starred_url":"https://api.github.com/users/federicoaldunate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/federicoaldunate/subscriptions","organizations_url":"https://api.github.com/users/federicoaldunate/orgs","repos_url":"https://api.github.com/users/federicoaldunate/repos","events_url":"https://api.github.com/users/federicoaldunate/events{/privacy}","received_events_url":"https://api.github.com/users/federicoaldunate/received_events","type":"User","site_admin":false},"body":"Maybe you can do it without `!` here","created_at":"2018-09-03T11:49:49Z","updated_at":"2018-09-03T11:52:20Z","html_url":"https://github.com/Ricoch/Target/pull/13#discussion_r214663765","pull_request_url":"https://api.github.com/repos/Ricoch/Target/pulls/13","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Ricoch/Target/pulls/comments/214663765"},"html":{"href":"https://github.com/Ricoch/Target/pull/13#discussion_r214663765"},"pull_request":{"href":"https://api.github.com/repos/Ricoch/Target/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/Ricoch/Target/pulls/13","id":212424748,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNDI0NzQ4","html_url":"https://github.com/Ricoch/Target/pull/13","diff_url":"https://github.com/Ricoch/Target/pull/13.diff","patch_url":"https://github.com/Ricoch/Target/pull/13.patch","issue_url":"https://api.github.com/repos/Ricoch/Target/issues/13","number":13,"state":"open","locked":false,"title":"Destroy target","user":{"login":"Ricoch","id":42209955,"node_id":"MDQ6VXNlcjQyMjA5OTU1","avatar_url":"https://avatars0.githubusercontent.com/u/42209955?v=4","gravatar_id":"","url":"https://api.github.com/users/Ricoch","html_url":"https://github.com/Ricoch","followers_url":"https://api.github.com/users/Ricoch/followers","following_url":"https://api.github.com/users/Ricoch/following{/other_user}","gists_url":"https://api.github.com/users/Ricoch/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricoch/subscriptions","organizations_url":"https://api.github.com/users/Ricoch/orgs","repos_url":"https://api.github.com/users/Ricoch/repos","events_url":"https://api.github.com/users/Ricoch/events{/privacy}","received_events_url":"https://api.github.com/users/Ricoch/received_events","type":"User","site_admin":false},"body":"Tasks:\r\n- Added route for destroy action\r\n- Added destroy action on targets controller to handle the request\r\n- Added destroy.json.jbuilder to render a response\r\n- Updated Apiary blueprint to include the targets#destroy action\r\n- Added private target_id method to get the target id from params and changed show method to use this","created_at":"2018-08-31T15:47:53Z","updated_at":"2018-09-03T11:52:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d371305af5f4a4bd7644f36c0fd0d01631994436","assignee":{"login":"Ricoch","id":42209955,"node_id":"MDQ6VXNlcjQyMjA5OTU1","avatar_url":"https://avatars0.githubusercontent.com/u/42209955?v=4","gravatar_id":"","url":"https://api.github.com/users/Ricoch","html_url":"https://github.com/Ricoch","followers_url":"https://api.github.com/users/Ricoch/followers","following_url":"https://api.github.com/users/Ricoch/following{/other_user}","gists_url":"https://api.github.com/users/Ricoch/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricoch/subscriptions","organizations_url":"https://api.github.com/users/Ricoch/orgs","repos_url":"https://api.github.com/users/Ricoch/repos","events_url":"https://api.github.com/users/Ricoch/events{/privacy}","received_events_url":"https://api.github.com/users/Ricoch/received_events","type":"User","site_admin":false},"assignees":[{"login":"Ricoch","id":42209955,"node_id":"MDQ6VXNlcjQyMjA5OTU1","avatar_url":"https://avatars0.githubusercontent.com/u/42209955?v=4","gravatar_id":"","url":"https://api.github.com/users/Ricoch","html_url":"https://github.com/Ricoch","followers_url":"https://api.github.com/users/Ricoch/followers","following_url":"https://api.github.com/users/Ricoch/following{/other_user}","gists_url":"https://api.github.com/users/Ricoch/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricoch/subscriptions","organizations_url":"https://api.github.com/users/Ricoch/orgs","repos_url":"https://api.github.com/users/Ricoch/repos","events_url":"https://api.github.com/users/Ricoch/events{/privacy}","received_events_url":"https://api.github.com/users/Ricoch/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"letiesperon","id":17788257,"node_id":"MDQ6VXNlcjE3Nzg4MjU3","avatar_url":"https://avatars2.githubusercontent.com/u/17788257?v=4","gravatar_id":"","url":"https://api.github.com/users/letiesperon","html_url":"https://github.com/letiesperon","followers_url":"https://api.github.com/users/letiesperon/followers","following_url":"https://api.github.com/users/letiesperon/following{/other_user}","gists_url":"https://api.github.com/users/letiesperon/gists{/gist_id}","starred_url":"https://api.github.com/users/letiesperon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letiesperon/subscriptions","organizations_url":"https://api.github.com/users/letiesperon/orgs","repos_url":"https://api.github.com/users/letiesperon/repos","events_url":"https://api.github.com/users/letiesperon/events{/privacy}","received_events_url":"https://api.github.com/users/letiesperon/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ricoch/Target/pulls/13/commits","review_comments_url":"https://api.github.com/repos/Ricoch/Target/pulls/13/comments","review_comment_url":"https://api.github.com/repos/Ricoch/Target/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ricoch/Target/issues/13/comments","statuses_url":"https://api.github.com/repos/Ricoch/Target/statuses/fd8b7805dfb4ba1a6a2b8880a480a7d4d2bf7468","head":{"label":"Ricoch:feature/destroy_target","ref":"feature/destroy_target","sha":"fd8b7805dfb4ba1a6a2b8880a480a7d4d2bf7468","user":{"login":"Ricoch","id":42209955,"node_id":"MDQ6VXNlcjQyMjA5OTU1","avatar_url":"https://avatars0.githubusercontent.com/u/42209955?v=4","gravatar_id":"","url":"https://api.github.com/users/Ricoch","html_url":"https://github.com/Ricoch","followers_url":"https://api.github.com/users/Ricoch/followers","following_url":"https://api.github.com/users/Ricoch/following{/other_user}","gists_url":"https://api.github.com/users/Ricoch/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricoch/subscriptions","organizations_url":"https://api.github.com/users/Ricoch/orgs","repos_url":"https://api.github.com/users/Ricoch/repos","events_url":"https://api.github.com/users/Ricoch/events{/privacy}","received_events_url":"https://api.github.com/users/Ricoch/received_events","type":"User","site_admin":false},"repo":{"id":144599068,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1OTkwNjg=","name":"Target","full_name":"Ricoch/Target","owner":{"login":"Ricoch","id":42209955,"node_id":"MDQ6VXNlcjQyMjA5OTU1","avatar_url":"https://avatars0.githubusercontent.com/u/42209955?v=4","gravatar_id":"","url":"https://api.github.com/users/Ricoch","html_url":"https://github.com/Ricoch","followers_url":"https://api.github.com/users/Ricoch/followers","following_url":"https://api.github.com/users/Ricoch/following{/other_user}","gists_url":"https://api.github.com/users/Ricoch/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricoch/subscriptions","organizations_url":"https://api.github.com/users/Ricoch/orgs","repos_url":"https://api.github.com/users/Ricoch/repos","events_url":"https://api.github.com/users/Ricoch/events{/privacy}","received_events_url":"https://api.github.com/users/Ricoch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ricoch/Target","description":null,"fork":false,"url":"https://api.github.com/repos/Ricoch/Target","forks_url":"https://api.github.com/repos/Ricoch/Target/forks","keys_url":"https://api.github.com/repos/Ricoch/Target/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ricoch/Target/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ricoch/Target/teams","hooks_url":"https://api.github.com/repos/Ricoch/Target/hooks","issue_events_url":"https://api.github.com/repos/Ricoch/Target/issues/events{/number}","events_url":"https://api.github.com/repos/Ricoch/Target/events","assignees_url":"https://api.github.com/repos/Ricoch/Target/assignees{/user}","branches_url":"https://api.github.com/repos/Ricoch/Target/branches{/branch}","tags_url":"https://api.github.com/repos/Ricoch/Target/tags","blobs_url":"https://api.github.com/repos/Ricoch/Target/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ricoch/Target/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ricoch/Target/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ricoch/Target/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ricoch/Target/statuses/{sha}","languages_url":"https://api.github.com/repos/Ricoch/Target/languages","stargazers_url":"https://api.github.com/repos/Ricoch/Target/stargazers","contributors_url":"https://api.github.com/repos/Ricoch/Target/contributors","subscribers_url":"https://api.github.com/repos/Ricoch/Target/subscribers","subscription_url":"https://api.github.com/repos/Ricoch/Target/subscription","commits_url":"https://api.github.com/repos/Ricoch/Target/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ricoch/Target/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ricoch/Target/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ricoch/Target/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ricoch/Target/contents/{+path}","compare_url":"https://api.github.com/repos/Ricoch/Target/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ricoch/Target/merges","archive_url":"https://api.github.com/repos/Ricoch/Target/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ricoch/Target/downloads","issues_url":"https://api.github.com/repos/Ricoch/Target/issues{/number}","pulls_url":"https://api.github.com/repos/Ricoch/Target/pulls{/number}","milestones_url":"https://api.github.com/repos/Ricoch/Target/milestones{/number}","notifications_url":"https://api.github.com/repos/Ricoch/Target/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ricoch/Target/labels{/name}","releases_url":"https://api.github.com/repos/Ricoch/Target/releases{/id}","deployments_url":"https://api.github.com/repos/Ricoch/Target/deployments","created_at":"2018-08-13T15:31:03Z","updated_at":"2018-08-20T17:36:24Z","pushed_at":"2018-08-31T15:47:53Z","git_url":"git://github.com/Ricoch/Target.git","ssh_url":"git@github.com:Ricoch/Target.git","clone_url":"https://github.com/Ricoch/Target.git","svn_url":"https://github.com/Ricoch/Target","homepage":null,"size":5660,"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":"Ricoch:develop","ref":"develop","sha":"55ffc5b16540b1aaeed169d7a6f0535938804fd6","user":{"login":"Ricoch","id":42209955,"node_id":"MDQ6VXNlcjQyMjA5OTU1","avatar_url":"https://avatars0.githubusercontent.com/u/42209955?v=4","gravatar_id":"","url":"https://api.github.com/users/Ricoch","html_url":"https://github.com/Ricoch","followers_url":"https://api.github.com/users/Ricoch/followers","following_url":"https://api.github.com/users/Ricoch/following{/other_user}","gists_url":"https://api.github.com/users/Ricoch/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricoch/subscriptions","organizations_url":"https://api.github.com/users/Ricoch/orgs","repos_url":"https://api.github.com/users/Ricoch/repos","events_url":"https://api.github.com/users/Ricoch/events{/privacy}","received_events_url":"https://api.github.com/users/Ricoch/received_events","type":"User","site_admin":false},"repo":{"id":144599068,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1OTkwNjg=","name":"Target","full_name":"Ricoch/Target","owner":{"login":"Ricoch","id":42209955,"node_id":"MDQ6VXNlcjQyMjA5OTU1","avatar_url":"https://avatars0.githubusercontent.com/u/42209955?v=4","gravatar_id":"","url":"https://api.github.com/users/Ricoch","html_url":"https://github.com/Ricoch","followers_url":"https://api.github.com/users/Ricoch/followers","following_url":"https://api.github.com/users/Ricoch/following{/other_user}","gists_url":"https://api.github.com/users/Ricoch/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricoch/subscriptions","organizations_url":"https://api.github.com/users/Ricoch/orgs","repos_url":"https://api.github.com/users/Ricoch/repos","events_url":"https://api.github.com/users/Ricoch/events{/privacy}","received_events_url":"https://api.github.com/users/Ricoch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ricoch/Target","description":null,"fork":false,"url":"https://api.github.com/repos/Ricoch/Target","forks_url":"https://api.github.com/repos/Ricoch/Target/forks","keys_url":"https://api.github.com/repos/Ricoch/Target/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ricoch/Target/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ricoch/Target/teams","hooks_url":"https://api.github.com/repos/Ricoch/Target/hooks","issue_events_url":"https://api.github.com/repos/Ricoch/Target/issues/events{/number}","events_url":"https://api.github.com/repos/Ricoch/Target/events","assignees_url":"https://api.github.com/repos/Ricoch/Target/assignees{/user}","branches_url":"https://api.github.com/repos/Ricoch/Target/branches{/branch}","tags_url":"https://api.github.com/repos/Ricoch/Target/tags","blobs_url":"https://api.github.com/repos/Ricoch/Target/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ricoch/Target/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ricoch/Target/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ricoch/Target/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ricoch/Target/statuses/{sha}","languages_url":"https://api.github.com/repos/Ricoch/Target/languages","stargazers_url":"https://api.github.com/repos/Ricoch/Target/stargazers","contributors_url":"https://api.github.com/repos/Ricoch/Target/contributors","subscribers_url":"https://api.github.com/repos/Ricoch/Target/subscribers","subscription_url":"https://api.github.com/repos/Ricoch/Target/subscription","commits_url":"https://api.github.com/repos/Ricoch/Target/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ricoch/Target/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ricoch/Target/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ricoch/Target/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ricoch/Target/contents/{+path}","compare_url":"https://api.github.com/repos/Ricoch/Target/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ricoch/Target/merges","archive_url":"https://api.github.com/repos/Ricoch/Target/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ricoch/Target/downloads","issues_url":"https://api.github.com/repos/Ricoch/Target/issues{/number}","pulls_url":"https://api.github.com/repos/Ricoch/Target/pulls{/number}","milestones_url":"https://api.github.com/repos/Ricoch/Target/milestones{/number}","notifications_url":"https://api.github.com/repos/Ricoch/Target/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ricoch/Target/labels{/name}","releases_url":"https://api.github.com/repos/Ricoch/Target/releases{/id}","deployments_url":"https://api.github.com/repos/Ricoch/Target/deployments","created_at":"2018-08-13T15:31:03Z","updated_at":"2018-08-20T17:36:24Z","pushed_at":"2018-08-31T15:47:53Z","git_url":"git://github.com/Ricoch/Target.git","ssh_url":"git@github.com:Ricoch/Target.git","clone_url":"https://github.com/Ricoch/Target.git","svn_url":"https://github.com/Ricoch/Target","homepage":null,"size":5660,"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/Ricoch/Target/pulls/13"},"html":{"href":"https://github.com/Ricoch/Target/pull/13"},"issue":{"href":"https://api.github.com/repos/Ricoch/Target/issues/13"},"comments":{"href":"https://api.github.com/repos/Ricoch/Target/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/Ricoch/Target/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/Ricoch/Target/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ricoch/Target/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/Ricoch/Target/statuses/fd8b7805dfb4ba1a6a2b8880a480a7d4d2bf7468"}},"author_association":"OWNER"}}
{"actor":{"display_login":"federicoaldunate"}}