{"action":"created","comment":{"url":"https://api.github.com/repos/jetruby/errbit/pulls/comments/49978555","id":49978555,"diff_hunk":"@@ -0,0 +1,45 @@\n+require 'spec_helper'\n+\n+describe 'Automatic issue creation' do\n+  let(:xml) { Rails.root.join('spec','fixtures','hoptoad_test_notice.xml').read }\n+  let(:issue_creation) { double 'issue creation' }\n+  let(:errbit_app) { Fabricate(:app, api_key: 'APIKEY', auto_issue_creation: true) }\n+\n+  before { allow(IssueCreation).to receive(:new) { issue_creation } }\n+  before { allow(issue_creation).to receive(:execute) {} }\n+\n+  context 'without issue link' do\n+    it \"generates a notice from xml and creates issue\" do","path":"spec/requests/auto_issue_creation_spec.rb","position":12,"original_position":12,"commit_id":"4f2843f0edaf4bed0f88cbf721b8ac3aabe0ac30","original_commit_id":"4f2843f0edaf4bed0f88cbf721b8ac3aabe0ac30","user":{"login":"DmitriyBaklikov","id":25715,"avatar_url":"https://avatars.githubusercontent.com/u/25715?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitriyBaklikov","html_url":"https://github.com/DmitriyBaklikov","followers_url":"https://api.github.com/users/DmitriyBaklikov/followers","following_url":"https://api.github.com/users/DmitriyBaklikov/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyBaklikov/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyBaklikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyBaklikov/subscriptions","organizations_url":"https://api.github.com/users/DmitriyBaklikov/orgs","repos_url":"https://api.github.com/users/DmitriyBaklikov/repos","events_url":"https://api.github.com/users/DmitriyBaklikov/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyBaklikov/received_events","type":"User","site_admin":false},"body":"double quotes","created_at":"2016-01-18T09:56:54Z","updated_at":"2016-01-18T09:56:54Z","html_url":"https://github.com/jetruby/errbit/pull/4#discussion_r49978555","pull_request_url":"https://api.github.com/repos/jetruby/errbit/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/jetruby/errbit/pulls/comments/49978555"},"html":{"href":"https://github.com/jetruby/errbit/pull/4#discussion_r49978555"},"pull_request":{"href":"https://api.github.com/repos/jetruby/errbit/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/jetruby/errbit/pulls/4","id":42681758,"html_url":"https://github.com/jetruby/errbit/pull/4","diff_url":"https://github.com/jetruby/errbit/pull/4.diff","patch_url":"https://github.com/jetruby/errbit/pull/4.patch","issue_url":"https://api.github.com/repos/jetruby/errbit/issues/4","number":4,"state":"open","locked":false,"title":"[ID-217] Autocreate fix","user":{"login":"Astarodubtcev","id":12110146,"avatar_url":"https://avatars.githubusercontent.com/u/12110146?v=3","gravatar_id":"","url":"https://api.github.com/users/Astarodubtcev","html_url":"https://github.com/Astarodubtcev","followers_url":"https://api.github.com/users/Astarodubtcev/followers","following_url":"https://api.github.com/users/Astarodubtcev/following{/other_user}","gists_url":"https://api.github.com/users/Astarodubtcev/gists{/gist_id}","starred_url":"https://api.github.com/users/Astarodubtcev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Astarodubtcev/subscriptions","organizations_url":"https://api.github.com/users/Astarodubtcev/orgs","repos_url":"https://api.github.com/users/Astarodubtcev/repos","events_url":"https://api.github.com/users/Astarodubtcev/events{/privacy}","received_events_url":"https://api.github.com/users/Astarodubtcev/received_events","type":"User","site_admin":false},"body":"Now issue creates when there is no link to tracker","created_at":"2015-08-18T10:12:35Z","updated_at":"2016-01-18T09:56:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c0b6a77e306ee18bce7595d0333dc2a0f1410cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jetruby/errbit/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jetruby/errbit/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jetruby/errbit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jetruby/errbit/issues/4/comments","statuses_url":"https://api.github.com/repos/jetruby/errbit/statuses/4f2843f0edaf4bed0f88cbf721b8ac3aabe0ac30","head":{"label":"Astarodubtcev:autocreate-fix","ref":"autocreate-fix","sha":"4f2843f0edaf4bed0f88cbf721b8ac3aabe0ac30","user":{"login":"Astarodubtcev","id":12110146,"avatar_url":"https://avatars.githubusercontent.com/u/12110146?v=3","gravatar_id":"","url":"https://api.github.com/users/Astarodubtcev","html_url":"https://github.com/Astarodubtcev","followers_url":"https://api.github.com/users/Astarodubtcev/followers","following_url":"https://api.github.com/users/Astarodubtcev/following{/other_user}","gists_url":"https://api.github.com/users/Astarodubtcev/gists{/gist_id}","starred_url":"https://api.github.com/users/Astarodubtcev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Astarodubtcev/subscriptions","organizations_url":"https://api.github.com/users/Astarodubtcev/orgs","repos_url":"https://api.github.com/users/Astarodubtcev/repos","events_url":"https://api.github.com/users/Astarodubtcev/events{/privacy}","received_events_url":"https://api.github.com/users/Astarodubtcev/received_events","type":"User","site_admin":false},"repo":{"id":39624281,"name":"errbit","full_name":"Astarodubtcev/errbit","owner":{"login":"Astarodubtcev","id":12110146,"avatar_url":"https://avatars.githubusercontent.com/u/12110146?v=3","gravatar_id":"","url":"https://api.github.com/users/Astarodubtcev","html_url":"https://github.com/Astarodubtcev","followers_url":"https://api.github.com/users/Astarodubtcev/followers","following_url":"https://api.github.com/users/Astarodubtcev/following{/other_user}","gists_url":"https://api.github.com/users/Astarodubtcev/gists{/gist_id}","starred_url":"https://api.github.com/users/Astarodubtcev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Astarodubtcev/subscriptions","organizations_url":"https://api.github.com/users/Astarodubtcev/orgs","repos_url":"https://api.github.com/users/Astarodubtcev/repos","events_url":"https://api.github.com/users/Astarodubtcev/events{/privacy}","received_events_url":"https://api.github.com/users/Astarodubtcev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Astarodubtcev/errbit","description":"The open source error catcher that's Airbrake API compliant","fork":true,"url":"https://api.github.com/repos/Astarodubtcev/errbit","forks_url":"https://api.github.com/repos/Astarodubtcev/errbit/forks","keys_url":"https://api.github.com/repos/Astarodubtcev/errbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Astarodubtcev/errbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Astarodubtcev/errbit/teams","hooks_url":"https://api.github.com/repos/Astarodubtcev/errbit/hooks","issue_events_url":"https://api.github.com/repos/Astarodubtcev/errbit/issues/events{/number}","events_url":"https://api.github.com/repos/Astarodubtcev/errbit/events","assignees_url":"https://api.github.com/repos/Astarodubtcev/errbit/assignees{/user}","branches_url":"https://api.github.com/repos/Astarodubtcev/errbit/branches{/branch}","tags_url":"https://api.github.com/repos/Astarodubtcev/errbit/tags","blobs_url":"https://api.github.com/repos/Astarodubtcev/errbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Astarodubtcev/errbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Astarodubtcev/errbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/Astarodubtcev/errbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Astarodubtcev/errbit/statuses/{sha}","languages_url":"https://api.github.com/repos/Astarodubtcev/errbit/languages","stargazers_url":"https://api.github.com/repos/Astarodubtcev/errbit/stargazers","contributors_url":"https://api.github.com/repos/Astarodubtcev/errbit/contributors","subscribers_url":"https://api.github.com/repos/Astarodubtcev/errbit/subscribers","subscription_url":"https://api.github.com/repos/Astarodubtcev/errbit/subscription","commits_url":"https://api.github.com/repos/Astarodubtcev/errbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/Astarodubtcev/errbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/Astarodubtcev/errbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/Astarodubtcev/errbit/issues/comments{/number}","contents_url":"https://api.github.com/repos/Astarodubtcev/errbit/contents/{+path}","compare_url":"https://api.github.com/repos/Astarodubtcev/errbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Astarodubtcev/errbit/merges","archive_url":"https://api.github.com/repos/Astarodubtcev/errbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Astarodubtcev/errbit/downloads","issues_url":"https://api.github.com/repos/Astarodubtcev/errbit/issues{/number}","pulls_url":"https://api.github.com/repos/Astarodubtcev/errbit/pulls{/number}","milestones_url":"https://api.github.com/repos/Astarodubtcev/errbit/milestones{/number}","notifications_url":"https://api.github.com/repos/Astarodubtcev/errbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Astarodubtcev/errbit/labels{/name}","releases_url":"https://api.github.com/repos/Astarodubtcev/errbit/releases{/id}","created_at":"2015-07-24T09:47:37Z","updated_at":"2015-07-24T09:47:39Z","pushed_at":"2015-08-18T10:11:43Z","git_url":"git://github.com/Astarodubtcev/errbit.git","ssh_url":"git@github.com:Astarodubtcev/errbit.git","clone_url":"https://github.com/Astarodubtcev/errbit.git","svn_url":"https://github.com/Astarodubtcev/errbit","homepage":"http://errbit.github.com/errbit/","size":22415,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jetruby:0-3-stable-autonotification","ref":"0-3-stable-autonotification","sha":"a38cf7f4cccf1479aca89215877b14d26282ffed","user":{"login":"jetruby","id":4881537,"avatar_url":"https://avatars.githubusercontent.com/u/4881537?v=3","gravatar_id":"","url":"https://api.github.com/users/jetruby","html_url":"https://github.com/jetruby","followers_url":"https://api.github.com/users/jetruby/followers","following_url":"https://api.github.com/users/jetruby/following{/other_user}","gists_url":"https://api.github.com/users/jetruby/gists{/gist_id}","starred_url":"https://api.github.com/users/jetruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetruby/subscriptions","organizations_url":"https://api.github.com/users/jetruby/orgs","repos_url":"https://api.github.com/users/jetruby/repos","events_url":"https://api.github.com/users/jetruby/events{/privacy}","received_events_url":"https://api.github.com/users/jetruby/received_events","type":"Organization","site_admin":false},"repo":{"id":40605095,"name":"errbit","full_name":"jetruby/errbit","owner":{"login":"jetruby","id":4881537,"avatar_url":"https://avatars.githubusercontent.com/u/4881537?v=3","gravatar_id":"","url":"https://api.github.com/users/jetruby","html_url":"https://github.com/jetruby","followers_url":"https://api.github.com/users/jetruby/followers","following_url":"https://api.github.com/users/jetruby/following{/other_user}","gists_url":"https://api.github.com/users/jetruby/gists{/gist_id}","starred_url":"https://api.github.com/users/jetruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetruby/subscriptions","organizations_url":"https://api.github.com/users/jetruby/orgs","repos_url":"https://api.github.com/users/jetruby/repos","events_url":"https://api.github.com/users/jetruby/events{/privacy}","received_events_url":"https://api.github.com/users/jetruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jetruby/errbit","description":"The open source error catcher that's Airbrake API compliant","fork":true,"url":"https://api.github.com/repos/jetruby/errbit","forks_url":"https://api.github.com/repos/jetruby/errbit/forks","keys_url":"https://api.github.com/repos/jetruby/errbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jetruby/errbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jetruby/errbit/teams","hooks_url":"https://api.github.com/repos/jetruby/errbit/hooks","issue_events_url":"https://api.github.com/repos/jetruby/errbit/issues/events{/number}","events_url":"https://api.github.com/repos/jetruby/errbit/events","assignees_url":"https://api.github.com/repos/jetruby/errbit/assignees{/user}","branches_url":"https://api.github.com/repos/jetruby/errbit/branches{/branch}","tags_url":"https://api.github.com/repos/jetruby/errbit/tags","blobs_url":"https://api.github.com/repos/jetruby/errbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jetruby/errbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jetruby/errbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/jetruby/errbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jetruby/errbit/statuses/{sha}","languages_url":"https://api.github.com/repos/jetruby/errbit/languages","stargazers_url":"https://api.github.com/repos/jetruby/errbit/stargazers","contributors_url":"https://api.github.com/repos/jetruby/errbit/contributors","subscribers_url":"https://api.github.com/repos/jetruby/errbit/subscribers","subscription_url":"https://api.github.com/repos/jetruby/errbit/subscription","commits_url":"https://api.github.com/repos/jetruby/errbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/jetruby/errbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/jetruby/errbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/jetruby/errbit/issues/comments{/number}","contents_url":"https://api.github.com/repos/jetruby/errbit/contents/{+path}","compare_url":"https://api.github.com/repos/jetruby/errbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jetruby/errbit/merges","archive_url":"https://api.github.com/repos/jetruby/errbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jetruby/errbit/downloads","issues_url":"https://api.github.com/repos/jetruby/errbit/issues{/number}","pulls_url":"https://api.github.com/repos/jetruby/errbit/pulls{/number}","milestones_url":"https://api.github.com/repos/jetruby/errbit/milestones{/number}","notifications_url":"https://api.github.com/repos/jetruby/errbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jetruby/errbit/labels{/name}","releases_url":"https://api.github.com/repos/jetruby/errbit/releases{/id}","created_at":"2015-08-12T14:26:55Z","updated_at":"2015-08-12T14:26:56Z","pushed_at":"2015-08-18T10:12:35Z","git_url":"git://github.com/jetruby/errbit.git","ssh_url":"git@github.com:jetruby/errbit.git","clone_url":"https://github.com/jetruby/errbit.git","svn_url":"https://github.com/jetruby/errbit","homepage":"http://errbit.github.com/errbit/","size":22528,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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/jetruby/errbit/pulls/4"},"html":{"href":"https://github.com/jetruby/errbit/pull/4"},"issue":{"href":"https://api.github.com/repos/jetruby/errbit/issues/4"},"comments":{"href":"https://api.github.com/repos/jetruby/errbit/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jetruby/errbit/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jetruby/errbit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jetruby/errbit/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jetruby/errbit/statuses/4f2843f0edaf4bed0f88cbf721b8ac3aabe0ac30"}}}}