{"action":"created","comment":{"url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/comments/30472386","id":30472386,"diff_hunk":"@@ -0,0 +1,16 @@\n+from rq import Queue\n+from flask.ext.security import SQLAlchemyUserDatastore, Security\n+from sourcemash.models import User, Role\n+from sourcemash.database import db\n+from sourcemash.mail import send_security_email\n+from worker import create_worker\n+\n+user_datastore = SQLAlchemyUserDatastore(db, User, Role)\n+security = Security()\n+REDIS_CONNECTION = create_worker()\n+\n+\n+def delay_security_email(msg):\n+    q = Queue('default', connection=REDIS_CONNECTION)","path":"sourcemash/security.py","position":14,"original_position":14,"commit_id":"e4675ec54eb2366a87f5111d030260edda7820e9","original_commit_id":"e4675ec54eb2366a87f5111d030260edda7820e9","user":{"login":"alexgerstein","id":1390314,"avatar_url":"https://avatars.githubusercontent.com/u/1390314?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgerstein","html_url":"https://github.com/alexgerstein","followers_url":"https://api.github.com/users/alexgerstein/followers","following_url":"https://api.github.com/users/alexgerstein/following{/other_user}","gists_url":"https://api.github.com/users/alexgerstein/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgerstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgerstein/subscriptions","organizations_url":"https://api.github.com/users/alexgerstein/orgs","repos_url":"https://api.github.com/users/alexgerstein/repos","events_url":"https://api.github.com/users/alexgerstein/events{/privacy}","received_events_url":"https://api.github.com/users/alexgerstein/received_events","type":"User","site_admin":false},"body":"Yeah. That's a good idea. I'll do that now.","created_at":"2015-05-17T17:23:32Z","updated_at":"2015-05-17T17:23:32Z","html_url":"https://github.com/sourcemash/Sourcemash/pull/303#discussion_r30472386","pull_request_url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303","_links":{"self":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/comments/30472386"},"html":{"href":"https://github.com/sourcemash/Sourcemash/pull/303#discussion_r30472386"},"pull_request":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303"}}},"pull_request":{"url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303","id":35580516,"html_url":"https://github.com/sourcemash/Sourcemash/pull/303","diff_url":"https://github.com/sourcemash/Sourcemash/pull/303.diff","patch_url":"https://github.com/sourcemash/Sourcemash/pull/303.patch","issue_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues/303","number":303,"state":"open","locked":false,"title":"Queue emails","user":{"login":"alexgerstein","id":1390314,"avatar_url":"https://avatars.githubusercontent.com/u/1390314?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgerstein","html_url":"https://github.com/alexgerstein","followers_url":"https://api.github.com/users/alexgerstein/followers","following_url":"https://api.github.com/users/alexgerstein/following{/other_user}","gists_url":"https://api.github.com/users/alexgerstein/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgerstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgerstein/subscriptions","organizations_url":"https://api.github.com/users/alexgerstein/orgs","repos_url":"https://api.github.com/users/alexgerstein/repos","events_url":"https://api.github.com/users/alexgerstein/events{/privacy}","received_events_url":"https://api.github.com/users/alexgerstein/received_events","type":"User","site_admin":false},"body":"Closes #277.","created_at":"2015-05-17T02:16:15Z","updated_at":"2015-05-17T17:23:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"407f10c342af7bc14d591e5b5aaa626a3c2d2b2c","assignee":{"login":"swglad","id":5695548,"avatar_url":"https://avatars.githubusercontent.com/u/5695548?v=3","gravatar_id":"","url":"https://api.github.com/users/swglad","html_url":"https://github.com/swglad","followers_url":"https://api.github.com/users/swglad/followers","following_url":"https://api.github.com/users/swglad/following{/other_user}","gists_url":"https://api.github.com/users/swglad/gists{/gist_id}","starred_url":"https://api.github.com/users/swglad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swglad/subscriptions","organizations_url":"https://api.github.com/users/swglad/orgs","repos_url":"https://api.github.com/users/swglad/repos","events_url":"https://api.github.com/users/swglad/events{/privacy}","received_events_url":"https://api.github.com/users/swglad/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sourcemash/Sourcemash/milestones/17","html_url":"https://github.com/sourcemash/Sourcemash/milestones/Week%2017","labels_url":"https://api.github.com/repos/sourcemash/Sourcemash/milestones/17/labels","id":1096301,"number":17,"title":"Week 17","description":"","creator":{"login":"swglad","id":5695548,"avatar_url":"https://avatars.githubusercontent.com/u/5695548?v=3","gravatar_id":"","url":"https://api.github.com/users/swglad","html_url":"https://github.com/swglad","followers_url":"https://api.github.com/users/swglad/followers","following_url":"https://api.github.com/users/swglad/following{/other_user}","gists_url":"https://api.github.com/users/swglad/gists{/gist_id}","starred_url":"https://api.github.com/users/swglad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swglad/subscriptions","organizations_url":"https://api.github.com/users/swglad/orgs","repos_url":"https://api.github.com/users/swglad/repos","events_url":"https://api.github.com/users/swglad/events{/privacy}","received_events_url":"https://api.github.com/users/swglad/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":24,"state":"open","created_at":"2015-05-05T07:02:21Z","updated_at":"2015-05-17T06:40:24Z","due_on":"2015-05-18T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303/commits","review_comments_url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303/comments","review_comment_url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues/303/comments","statuses_url":"https://api.github.com/repos/sourcemash/Sourcemash/statuses/e4675ec54eb2366a87f5111d030260edda7820e9","head":{"label":"sourcemash:queue-emails","ref":"queue-emails","sha":"e4675ec54eb2366a87f5111d030260edda7820e9","user":{"login":"sourcemash","id":11763607,"avatar_url":"https://avatars.githubusercontent.com/u/11763607?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcemash","html_url":"https://github.com/sourcemash","followers_url":"https://api.github.com/users/sourcemash/followers","following_url":"https://api.github.com/users/sourcemash/following{/other_user}","gists_url":"https://api.github.com/users/sourcemash/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcemash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcemash/subscriptions","organizations_url":"https://api.github.com/users/sourcemash/orgs","repos_url":"https://api.github.com/users/sourcemash/repos","events_url":"https://api.github.com/users/sourcemash/events{/privacy}","received_events_url":"https://api.github.com/users/sourcemash/received_events","type":"Organization","site_admin":false},"repo":{"id":29208817,"name":"Sourcemash","full_name":"sourcemash/Sourcemash","owner":{"login":"sourcemash","id":11763607,"avatar_url":"https://avatars.githubusercontent.com/u/11763607?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcemash","html_url":"https://github.com/sourcemash","followers_url":"https://api.github.com/users/sourcemash/followers","following_url":"https://api.github.com/users/sourcemash/following{/other_user}","gists_url":"https://api.github.com/users/sourcemash/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcemash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcemash/subscriptions","organizations_url":"https://api.github.com/users/sourcemash/orgs","repos_url":"https://api.github.com/users/sourcemash/repos","events_url":"https://api.github.com/users/sourcemash/events{/privacy}","received_events_url":"https://api.github.com/users/sourcemash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcemash/Sourcemash","description":"Read Your News Faster.","fork":false,"url":"https://api.github.com/repos/sourcemash/Sourcemash","forks_url":"https://api.github.com/repos/sourcemash/Sourcemash/forks","keys_url":"https://api.github.com/repos/sourcemash/Sourcemash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcemash/Sourcemash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcemash/Sourcemash/teams","hooks_url":"https://api.github.com/repos/sourcemash/Sourcemash/hooks","issue_events_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues/events{/number}","events_url":"https://api.github.com/repos/sourcemash/Sourcemash/events","assignees_url":"https://api.github.com/repos/sourcemash/Sourcemash/assignees{/user}","branches_url":"https://api.github.com/repos/sourcemash/Sourcemash/branches{/branch}","tags_url":"https://api.github.com/repos/sourcemash/Sourcemash/tags","blobs_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcemash/Sourcemash/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcemash/Sourcemash/languages","stargazers_url":"https://api.github.com/repos/sourcemash/Sourcemash/stargazers","contributors_url":"https://api.github.com/repos/sourcemash/Sourcemash/contributors","subscribers_url":"https://api.github.com/repos/sourcemash/Sourcemash/subscribers","subscription_url":"https://api.github.com/repos/sourcemash/Sourcemash/subscription","commits_url":"https://api.github.com/repos/sourcemash/Sourcemash/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcemash/Sourcemash/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcemash/Sourcemash/contents/{+path}","compare_url":"https://api.github.com/repos/sourcemash/Sourcemash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcemash/Sourcemash/merges","archive_url":"https://api.github.com/repos/sourcemash/Sourcemash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcemash/Sourcemash/downloads","issues_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues{/number}","pulls_url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcemash/Sourcemash/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcemash/Sourcemash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcemash/Sourcemash/labels{/name}","releases_url":"https://api.github.com/repos/sourcemash/Sourcemash/releases{/id}","created_at":"2015-01-13T20:12:47Z","updated_at":"2015-05-08T16:50:04Z","pushed_at":"2015-05-17T17:21:28Z","git_url":"git://github.com/sourcemash/Sourcemash.git","ssh_url":"git@github.com:sourcemash/Sourcemash.git","clone_url":"https://github.com/sourcemash/Sourcemash.git","svn_url":"https://github.com/sourcemash/Sourcemash","homepage":"http://sourcemash.com","size":5048,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":46,"forks":0,"open_issues":46,"watchers":2,"default_branch":"master"}},"base":{"label":"sourcemash:master","ref":"master","sha":"08b823cb9083bde0d3337adb6f0cc2e167c13ecf","user":{"login":"sourcemash","id":11763607,"avatar_url":"https://avatars.githubusercontent.com/u/11763607?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcemash","html_url":"https://github.com/sourcemash","followers_url":"https://api.github.com/users/sourcemash/followers","following_url":"https://api.github.com/users/sourcemash/following{/other_user}","gists_url":"https://api.github.com/users/sourcemash/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcemash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcemash/subscriptions","organizations_url":"https://api.github.com/users/sourcemash/orgs","repos_url":"https://api.github.com/users/sourcemash/repos","events_url":"https://api.github.com/users/sourcemash/events{/privacy}","received_events_url":"https://api.github.com/users/sourcemash/received_events","type":"Organization","site_admin":false},"repo":{"id":29208817,"name":"Sourcemash","full_name":"sourcemash/Sourcemash","owner":{"login":"sourcemash","id":11763607,"avatar_url":"https://avatars.githubusercontent.com/u/11763607?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcemash","html_url":"https://github.com/sourcemash","followers_url":"https://api.github.com/users/sourcemash/followers","following_url":"https://api.github.com/users/sourcemash/following{/other_user}","gists_url":"https://api.github.com/users/sourcemash/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcemash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcemash/subscriptions","organizations_url":"https://api.github.com/users/sourcemash/orgs","repos_url":"https://api.github.com/users/sourcemash/repos","events_url":"https://api.github.com/users/sourcemash/events{/privacy}","received_events_url":"https://api.github.com/users/sourcemash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcemash/Sourcemash","description":"Read Your News Faster.","fork":false,"url":"https://api.github.com/repos/sourcemash/Sourcemash","forks_url":"https://api.github.com/repos/sourcemash/Sourcemash/forks","keys_url":"https://api.github.com/repos/sourcemash/Sourcemash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcemash/Sourcemash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcemash/Sourcemash/teams","hooks_url":"https://api.github.com/repos/sourcemash/Sourcemash/hooks","issue_events_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues/events{/number}","events_url":"https://api.github.com/repos/sourcemash/Sourcemash/events","assignees_url":"https://api.github.com/repos/sourcemash/Sourcemash/assignees{/user}","branches_url":"https://api.github.com/repos/sourcemash/Sourcemash/branches{/branch}","tags_url":"https://api.github.com/repos/sourcemash/Sourcemash/tags","blobs_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcemash/Sourcemash/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcemash/Sourcemash/languages","stargazers_url":"https://api.github.com/repos/sourcemash/Sourcemash/stargazers","contributors_url":"https://api.github.com/repos/sourcemash/Sourcemash/contributors","subscribers_url":"https://api.github.com/repos/sourcemash/Sourcemash/subscribers","subscription_url":"https://api.github.com/repos/sourcemash/Sourcemash/subscription","commits_url":"https://api.github.com/repos/sourcemash/Sourcemash/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcemash/Sourcemash/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcemash/Sourcemash/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcemash/Sourcemash/contents/{+path}","compare_url":"https://api.github.com/repos/sourcemash/Sourcemash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcemash/Sourcemash/merges","archive_url":"https://api.github.com/repos/sourcemash/Sourcemash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcemash/Sourcemash/downloads","issues_url":"https://api.github.com/repos/sourcemash/Sourcemash/issues{/number}","pulls_url":"https://api.github.com/repos/sourcemash/Sourcemash/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcemash/Sourcemash/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcemash/Sourcemash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcemash/Sourcemash/labels{/name}","releases_url":"https://api.github.com/repos/sourcemash/Sourcemash/releases{/id}","created_at":"2015-01-13T20:12:47Z","updated_at":"2015-05-08T16:50:04Z","pushed_at":"2015-05-17T17:21:28Z","git_url":"git://github.com/sourcemash/Sourcemash.git","ssh_url":"git@github.com:sourcemash/Sourcemash.git","clone_url":"https://github.com/sourcemash/Sourcemash.git","svn_url":"https://github.com/sourcemash/Sourcemash","homepage":"http://sourcemash.com","size":5048,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":46,"forks":0,"open_issues":46,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303"},"html":{"href":"https://github.com/sourcemash/Sourcemash/pull/303"},"issue":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/issues/303"},"comments":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/issues/303/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/pulls/303/commits"},"statuses":{"href":"https://api.github.com/repos/sourcemash/Sourcemash/statuses/e4675ec54eb2366a87f5111d030260edda7820e9"}}}}