{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/hound/pulls/comments/32883541","id":32883541,"diff_hunk":"@@ -32,7 +32,18 @@\n   end\n \n   factory :user do\n-    github_username { generate(:github_name) }\n+    ignore do\n+      github_username { generate(:github_name) }\n+    end\n+\n+    after(:build) do |record, e|\n+      create :identity, user: record, username: e.github_username\n+    end\n+  end\n+\n+  factory :identity do\n+    username { generate(:github_name) }\n+    provider 'github'","path":"spec/factories.rb","position":16,"original_position":16,"commit_id":"daaebaea554ca862833f667650d735b8654e21df","original_commit_id":"daaebaea554ca862833f667650d735b8654e21df","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-06-20T09:27:28Z","updated_at":"2015-06-20T09:27:28Z","html_url":"https://github.com/thoughtbot/hound/pull/827#discussion_r32883541","pull_request_url":"https://api.github.com/repos/thoughtbot/hound/pulls/827","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound/pulls/comments/32883541"},"html":{"href":"https://github.com/thoughtbot/hound/pull/827#discussion_r32883541"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/hound/pulls/827"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/hound/pulls/827","id":38165486,"html_url":"https://github.com/thoughtbot/hound/pull/827","diff_url":"https://github.com/thoughtbot/hound/pull/827.diff","patch_url":"https://github.com/thoughtbot/hound/pull/827.patch","issue_url":"https://api.github.com/repos/thoughtbot/hound/issues/827","number":827,"state":"open","locked":false,"title":"Add ability to signup using bitbucket","user":{"login":"bronislav","id":125880,"avatar_url":"https://avatars.githubusercontent.com/u/125880?v=3","gravatar_id":"","url":"https://api.github.com/users/bronislav","html_url":"https://github.com/bronislav","followers_url":"https://api.github.com/users/bronislav/followers","following_url":"https://api.github.com/users/bronislav/following{/other_user}","gists_url":"https://api.github.com/users/bronislav/gists{/gist_id}","starred_url":"https://api.github.com/users/bronislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronislav/subscriptions","organizations_url":"https://api.github.com/users/bronislav/orgs","repos_url":"https://api.github.com/users/bronislav/repos","events_url":"https://api.github.com/users/bronislav/events{/privacy}","received_events_url":"https://api.github.com/users/bronislav/received_events","type":"User","site_admin":false},"body":"I know that this question is asked in #222 and #285, but those questions was without pull request.\r\n\r\nI just want to add bitbucket support to this awesome service, because at my work I'm mostly using Bitbucket.\r\n\r\nAny thoughts?","created_at":"2015-06-20T09:27:23Z","updated_at":"2015-06-20T09:27:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f232003e4d55dd2e37af4ecf90326540b5cf966b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/hound/pulls/827/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/hound/pulls/827/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/hound/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/hound/issues/827/comments","statuses_url":"https://api.github.com/repos/thoughtbot/hound/statuses/daaebaea554ca862833f667650d735b8654e21df","head":{"label":"bronislav:ai-add-bitbucket-oauth","ref":"ai-add-bitbucket-oauth","sha":"daaebaea554ca862833f667650d735b8654e21df","user":{"login":"bronislav","id":125880,"avatar_url":"https://avatars.githubusercontent.com/u/125880?v=3","gravatar_id":"","url":"https://api.github.com/users/bronislav","html_url":"https://github.com/bronislav","followers_url":"https://api.github.com/users/bronislav/followers","following_url":"https://api.github.com/users/bronislav/following{/other_user}","gists_url":"https://api.github.com/users/bronislav/gists{/gist_id}","starred_url":"https://api.github.com/users/bronislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronislav/subscriptions","organizations_url":"https://api.github.com/users/bronislav/orgs","repos_url":"https://api.github.com/users/bronislav/repos","events_url":"https://api.github.com/users/bronislav/events{/privacy}","received_events_url":"https://api.github.com/users/bronislav/received_events","type":"User","site_admin":false},"repo":{"id":36931836,"name":"hound","full_name":"bronislav/hound","owner":{"login":"bronislav","id":125880,"avatar_url":"https://avatars.githubusercontent.com/u/125880?v=3","gravatar_id":"","url":"https://api.github.com/users/bronislav","html_url":"https://github.com/bronislav","followers_url":"https://api.github.com/users/bronislav/followers","following_url":"https://api.github.com/users/bronislav/following{/other_user}","gists_url":"https://api.github.com/users/bronislav/gists{/gist_id}","starred_url":"https://api.github.com/users/bronislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronislav/subscriptions","organizations_url":"https://api.github.com/users/bronislav/orgs","repos_url":"https://api.github.com/users/bronislav/repos","events_url":"https://api.github.com/users/bronislav/events{/privacy}","received_events_url":"https://api.github.com/users/bronislav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bronislav/hound","description":"Review your Ruby, JavaScript, CoffeeScript, and SCSS code for style guide violations with a trusty hound.","fork":true,"url":"https://api.github.com/repos/bronislav/hound","forks_url":"https://api.github.com/repos/bronislav/hound/forks","keys_url":"https://api.github.com/repos/bronislav/hound/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bronislav/hound/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bronislav/hound/teams","hooks_url":"https://api.github.com/repos/bronislav/hound/hooks","issue_events_url":"https://api.github.com/repos/bronislav/hound/issues/events{/number}","events_url":"https://api.github.com/repos/bronislav/hound/events","assignees_url":"https://api.github.com/repos/bronislav/hound/assignees{/user}","branches_url":"https://api.github.com/repos/bronislav/hound/branches{/branch}","tags_url":"https://api.github.com/repos/bronislav/hound/tags","blobs_url":"https://api.github.com/repos/bronislav/hound/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bronislav/hound/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bronislav/hound/git/refs{/sha}","trees_url":"https://api.github.com/repos/bronislav/hound/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bronislav/hound/statuses/{sha}","languages_url":"https://api.github.com/repos/bronislav/hound/languages","stargazers_url":"https://api.github.com/repos/bronislav/hound/stargazers","contributors_url":"https://api.github.com/repos/bronislav/hound/contributors","subscribers_url":"https://api.github.com/repos/bronislav/hound/subscribers","subscription_url":"https://api.github.com/repos/bronislav/hound/subscription","commits_url":"https://api.github.com/repos/bronislav/hound/commits{/sha}","git_commits_url":"https://api.github.com/repos/bronislav/hound/git/commits{/sha}","comments_url":"https://api.github.com/repos/bronislav/hound/comments{/number}","issue_comment_url":"https://api.github.com/repos/bronislav/hound/issues/comments{/number}","contents_url":"https://api.github.com/repos/bronislav/hound/contents/{+path}","compare_url":"https://api.github.com/repos/bronislav/hound/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bronislav/hound/merges","archive_url":"https://api.github.com/repos/bronislav/hound/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bronislav/hound/downloads","issues_url":"https://api.github.com/repos/bronislav/hound/issues{/number}","pulls_url":"https://api.github.com/repos/bronislav/hound/pulls{/number}","milestones_url":"https://api.github.com/repos/bronislav/hound/milestones{/number}","notifications_url":"https://api.github.com/repos/bronislav/hound/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bronislav/hound/labels{/name}","releases_url":"https://api.github.com/repos/bronislav/hound/releases{/id}","created_at":"2015-06-05T12:35:26Z","updated_at":"2015-06-05T12:35:27Z","pushed_at":"2015-06-20T09:21:48Z","git_url":"git://github.com/bronislav/hound.git","ssh_url":"git@github.com:bronislav/hound.git","clone_url":"https://github.com/bronislav/hound.git","svn_url":"https://github.com/bronislav/hound","homepage":"https://houndci.com","size":3506,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"thoughtbot:master","ref":"master","sha":"3ed1c28af0822b96e174ed740c797c3077524e58","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":7411076,"name":"hound","full_name":"thoughtbot/hound","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/hound","description":"Review your Ruby, JavaScript, CoffeeScript, and SCSS code for style guide violations with a trusty hound.","fork":false,"url":"https://api.github.com/repos/thoughtbot/hound","forks_url":"https://api.github.com/repos/thoughtbot/hound/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound/releases{/id}","created_at":"2013-01-02T18:12:40Z","updated_at":"2015-06-18T12:30:59Z","pushed_at":"2015-06-20T09:27:23Z","git_url":"git://github.com/thoughtbot/hound.git","ssh_url":"git@github.com:thoughtbot/hound.git","clone_url":"https://github.com/thoughtbot/hound.git","svn_url":"https://github.com/thoughtbot/hound","homepage":"https://houndci.com","size":15395,"stargazers_count":928,"watchers_count":928,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":191,"mirror_url":null,"open_issues_count":34,"forks":191,"open_issues":34,"watchers":928,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound/pulls/827"},"html":{"href":"https://github.com/thoughtbot/hound/pull/827"},"issue":{"href":"https://api.github.com/repos/thoughtbot/hound/issues/827"},"comments":{"href":"https://api.github.com/repos/thoughtbot/hound/issues/827/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/hound/pulls/827/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/hound/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/hound/pulls/827/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/hound/statuses/daaebaea554ca862833f667650d735b8654e21df"}}}}