{"action":"created","comment":{"url":"https://api.github.com/repos/RaiseLabs/hermes/pulls/comments/56436413","id":56436413,"diff_hunk":"@@ -86,15 +133,36 @@ func sendEmail(msg *sqs.Message) error {\n \t\tHTML:    body,\n \t}\n \n-\treturn mailer.SendEmail(email)\n+\tfor i := 0; i < maxTries; i++ {\n+\t\terr = mailer.SendEmail(email)\n+\n+\t\tif err == nil {\n+\t\t\treturn err","path":"worker.go","position":115,"original_position":115,"commit_id":"e1926542854b14c2070a3017cfe2ebc522454e63","original_commit_id":"e1926542854b14c2070a3017cfe2ebc522454e63","user":{"login":"yefim","id":1170843,"avatar_url":"https://avatars.githubusercontent.com/u/1170843?v=3","gravatar_id":"","url":"https://api.github.com/users/yefim","html_url":"https://github.com/yefim","followers_url":"https://api.github.com/users/yefim/followers","following_url":"https://api.github.com/users/yefim/following{/other_user}","gists_url":"https://api.github.com/users/yefim/gists{/gist_id}","starred_url":"https://api.github.com/users/yefim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yefim/subscriptions","organizations_url":"https://api.github.com/users/yefim/orgs","repos_url":"https://api.github.com/users/yefim/repos","events_url":"https://api.github.com/users/yefim/events{/privacy}","received_events_url":"https://api.github.com/users/yefim/received_events","type":"User","site_admin":false},"body":"`return nil` is better","created_at":"2016-03-16T23:55:55Z","updated_at":"2016-03-16T23:55:55Z","html_url":"https://github.com/RaiseLabs/hermes/pull/8#discussion_r56436413","pull_request_url":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/RaiseLabs/hermes/pulls/comments/56436413"},"html":{"href":"https://github.com/RaiseLabs/hermes/pull/8#discussion_r56436413"},"pull_request":{"href":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8","id":63147377,"html_url":"https://github.com/RaiseLabs/hermes/pull/8","diff_url":"https://github.com/RaiseLabs/hermes/pull/8.diff","patch_url":"https://github.com/RaiseLabs/hermes/pull/8.patch","issue_url":"https://api.github.com/repos/RaiseLabs/hermes/issues/8","number":8,"state":"open","locked":false,"title":"Add error handling","user":{"login":"danielleknudson","id":4325329,"avatar_url":"https://avatars.githubusercontent.com/u/4325329?v=3","gravatar_id":"","url":"https://api.github.com/users/danielleknudson","html_url":"https://github.com/danielleknudson","followers_url":"https://api.github.com/users/danielleknudson/followers","following_url":"https://api.github.com/users/danielleknudson/following{/other_user}","gists_url":"https://api.github.com/users/danielleknudson/gists{/gist_id}","starred_url":"https://api.github.com/users/danielleknudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielleknudson/subscriptions","organizations_url":"https://api.github.com/users/danielleknudson/orgs","repos_url":"https://api.github.com/users/danielleknudson/repos","events_url":"https://api.github.com/users/danielleknudson/events{/privacy}","received_events_url":"https://api.github.com/users/danielleknudson/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-16T22:38:27Z","updated_at":"2016-03-16T23:55:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b8292be252b2202840155a6860e787ead866cd7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8/commits","review_comments_url":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8/comments","review_comment_url":"https://api.github.com/repos/RaiseLabs/hermes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RaiseLabs/hermes/issues/8/comments","statuses_url":"https://api.github.com/repos/RaiseLabs/hermes/statuses/e1926542854b14c2070a3017cfe2ebc522454e63","head":{"label":"RaiseLabs:error-handling","ref":"error-handling","sha":"e1926542854b14c2070a3017cfe2ebc522454e63","user":{"login":"RaiseLabs","id":4141445,"avatar_url":"https://avatars.githubusercontent.com/u/4141445?v=3","gravatar_id":"","url":"https://api.github.com/users/RaiseLabs","html_url":"https://github.com/RaiseLabs","followers_url":"https://api.github.com/users/RaiseLabs/followers","following_url":"https://api.github.com/users/RaiseLabs/following{/other_user}","gists_url":"https://api.github.com/users/RaiseLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiseLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiseLabs/subscriptions","organizations_url":"https://api.github.com/users/RaiseLabs/orgs","repos_url":"https://api.github.com/users/RaiseLabs/repos","events_url":"https://api.github.com/users/RaiseLabs/events{/privacy}","received_events_url":"https://api.github.com/users/RaiseLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":53546226,"name":"hermes","full_name":"RaiseLabs/hermes","owner":{"login":"RaiseLabs","id":4141445,"avatar_url":"https://avatars.githubusercontent.com/u/4141445?v=3","gravatar_id":"","url":"https://api.github.com/users/RaiseLabs","html_url":"https://github.com/RaiseLabs","followers_url":"https://api.github.com/users/RaiseLabs/followers","following_url":"https://api.github.com/users/RaiseLabs/following{/other_user}","gists_url":"https://api.github.com/users/RaiseLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiseLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiseLabs/subscriptions","organizations_url":"https://api.github.com/users/RaiseLabs/orgs","repos_url":"https://api.github.com/users/RaiseLabs/repos","events_url":"https://api.github.com/users/RaiseLabs/events{/privacy}","received_events_url":"https://api.github.com/users/RaiseLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RaiseLabs/hermes","description":"Go worker that polls SQS and sends emails via SES","fork":false,"url":"https://api.github.com/repos/RaiseLabs/hermes","forks_url":"https://api.github.com/repos/RaiseLabs/hermes/forks","keys_url":"https://api.github.com/repos/RaiseLabs/hermes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RaiseLabs/hermes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RaiseLabs/hermes/teams","hooks_url":"https://api.github.com/repos/RaiseLabs/hermes/hooks","issue_events_url":"https://api.github.com/repos/RaiseLabs/hermes/issues/events{/number}","events_url":"https://api.github.com/repos/RaiseLabs/hermes/events","assignees_url":"https://api.github.com/repos/RaiseLabs/hermes/assignees{/user}","branches_url":"https://api.github.com/repos/RaiseLabs/hermes/branches{/branch}","tags_url":"https://api.github.com/repos/RaiseLabs/hermes/tags","blobs_url":"https://api.github.com/repos/RaiseLabs/hermes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RaiseLabs/hermes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RaiseLabs/hermes/git/refs{/sha}","trees_url":"https://api.github.com/repos/RaiseLabs/hermes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RaiseLabs/hermes/statuses/{sha}","languages_url":"https://api.github.com/repos/RaiseLabs/hermes/languages","stargazers_url":"https://api.github.com/repos/RaiseLabs/hermes/stargazers","contributors_url":"https://api.github.com/repos/RaiseLabs/hermes/contributors","subscribers_url":"https://api.github.com/repos/RaiseLabs/hermes/subscribers","subscription_url":"https://api.github.com/repos/RaiseLabs/hermes/subscription","commits_url":"https://api.github.com/repos/RaiseLabs/hermes/commits{/sha}","git_commits_url":"https://api.github.com/repos/RaiseLabs/hermes/git/commits{/sha}","comments_url":"https://api.github.com/repos/RaiseLabs/hermes/comments{/number}","issue_comment_url":"https://api.github.com/repos/RaiseLabs/hermes/issues/comments{/number}","contents_url":"https://api.github.com/repos/RaiseLabs/hermes/contents/{+path}","compare_url":"https://api.github.com/repos/RaiseLabs/hermes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RaiseLabs/hermes/merges","archive_url":"https://api.github.com/repos/RaiseLabs/hermes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RaiseLabs/hermes/downloads","issues_url":"https://api.github.com/repos/RaiseLabs/hermes/issues{/number}","pulls_url":"https://api.github.com/repos/RaiseLabs/hermes/pulls{/number}","milestones_url":"https://api.github.com/repos/RaiseLabs/hermes/milestones{/number}","notifications_url":"https://api.github.com/repos/RaiseLabs/hermes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RaiseLabs/hermes/labels{/name}","releases_url":"https://api.github.com/repos/RaiseLabs/hermes/releases{/id}","deployments_url":"https://api.github.com/repos/RaiseLabs/hermes/deployments","created_at":"2016-03-10T01:50:15Z","updated_at":"2016-03-16T21:25:47Z","pushed_at":"2016-03-16T23:54:55Z","git_url":"git://github.com/RaiseLabs/hermes.git","ssh_url":"git@github.com:RaiseLabs/hermes.git","clone_url":"https://github.com/RaiseLabs/hermes.git","svn_url":"https://github.com/RaiseLabs/hermes","homepage":"","size":12092,"stargazers_count":6,"watchers_count":6,"language":"Go","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":6,"default_branch":"master"}},"base":{"label":"RaiseLabs:master","ref":"master","sha":"3c9708e3181ce5810fb122aa50cf7cb8dcc32d62","user":{"login":"RaiseLabs","id":4141445,"avatar_url":"https://avatars.githubusercontent.com/u/4141445?v=3","gravatar_id":"","url":"https://api.github.com/users/RaiseLabs","html_url":"https://github.com/RaiseLabs","followers_url":"https://api.github.com/users/RaiseLabs/followers","following_url":"https://api.github.com/users/RaiseLabs/following{/other_user}","gists_url":"https://api.github.com/users/RaiseLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiseLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiseLabs/subscriptions","organizations_url":"https://api.github.com/users/RaiseLabs/orgs","repos_url":"https://api.github.com/users/RaiseLabs/repos","events_url":"https://api.github.com/users/RaiseLabs/events{/privacy}","received_events_url":"https://api.github.com/users/RaiseLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":53546226,"name":"hermes","full_name":"RaiseLabs/hermes","owner":{"login":"RaiseLabs","id":4141445,"avatar_url":"https://avatars.githubusercontent.com/u/4141445?v=3","gravatar_id":"","url":"https://api.github.com/users/RaiseLabs","html_url":"https://github.com/RaiseLabs","followers_url":"https://api.github.com/users/RaiseLabs/followers","following_url":"https://api.github.com/users/RaiseLabs/following{/other_user}","gists_url":"https://api.github.com/users/RaiseLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiseLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiseLabs/subscriptions","organizations_url":"https://api.github.com/users/RaiseLabs/orgs","repos_url":"https://api.github.com/users/RaiseLabs/repos","events_url":"https://api.github.com/users/RaiseLabs/events{/privacy}","received_events_url":"https://api.github.com/users/RaiseLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RaiseLabs/hermes","description":"Go worker that polls SQS and sends emails via SES","fork":false,"url":"https://api.github.com/repos/RaiseLabs/hermes","forks_url":"https://api.github.com/repos/RaiseLabs/hermes/forks","keys_url":"https://api.github.com/repos/RaiseLabs/hermes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RaiseLabs/hermes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RaiseLabs/hermes/teams","hooks_url":"https://api.github.com/repos/RaiseLabs/hermes/hooks","issue_events_url":"https://api.github.com/repos/RaiseLabs/hermes/issues/events{/number}","events_url":"https://api.github.com/repos/RaiseLabs/hermes/events","assignees_url":"https://api.github.com/repos/RaiseLabs/hermes/assignees{/user}","branches_url":"https://api.github.com/repos/RaiseLabs/hermes/branches{/branch}","tags_url":"https://api.github.com/repos/RaiseLabs/hermes/tags","blobs_url":"https://api.github.com/repos/RaiseLabs/hermes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RaiseLabs/hermes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RaiseLabs/hermes/git/refs{/sha}","trees_url":"https://api.github.com/repos/RaiseLabs/hermes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RaiseLabs/hermes/statuses/{sha}","languages_url":"https://api.github.com/repos/RaiseLabs/hermes/languages","stargazers_url":"https://api.github.com/repos/RaiseLabs/hermes/stargazers","contributors_url":"https://api.github.com/repos/RaiseLabs/hermes/contributors","subscribers_url":"https://api.github.com/repos/RaiseLabs/hermes/subscribers","subscription_url":"https://api.github.com/repos/RaiseLabs/hermes/subscription","commits_url":"https://api.github.com/repos/RaiseLabs/hermes/commits{/sha}","git_commits_url":"https://api.github.com/repos/RaiseLabs/hermes/git/commits{/sha}","comments_url":"https://api.github.com/repos/RaiseLabs/hermes/comments{/number}","issue_comment_url":"https://api.github.com/repos/RaiseLabs/hermes/issues/comments{/number}","contents_url":"https://api.github.com/repos/RaiseLabs/hermes/contents/{+path}","compare_url":"https://api.github.com/repos/RaiseLabs/hermes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RaiseLabs/hermes/merges","archive_url":"https://api.github.com/repos/RaiseLabs/hermes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RaiseLabs/hermes/downloads","issues_url":"https://api.github.com/repos/RaiseLabs/hermes/issues{/number}","pulls_url":"https://api.github.com/repos/RaiseLabs/hermes/pulls{/number}","milestones_url":"https://api.github.com/repos/RaiseLabs/hermes/milestones{/number}","notifications_url":"https://api.github.com/repos/RaiseLabs/hermes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RaiseLabs/hermes/labels{/name}","releases_url":"https://api.github.com/repos/RaiseLabs/hermes/releases{/id}","deployments_url":"https://api.github.com/repos/RaiseLabs/hermes/deployments","created_at":"2016-03-10T01:50:15Z","updated_at":"2016-03-16T21:25:47Z","pushed_at":"2016-03-16T23:54:55Z","git_url":"git://github.com/RaiseLabs/hermes.git","ssh_url":"git@github.com:RaiseLabs/hermes.git","clone_url":"https://github.com/RaiseLabs/hermes.git","svn_url":"https://github.com/RaiseLabs/hermes","homepage":"","size":12092,"stargazers_count":6,"watchers_count":6,"language":"Go","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":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8"},"html":{"href":"https://github.com/RaiseLabs/hermes/pull/8"},"issue":{"href":"https://api.github.com/repos/RaiseLabs/hermes/issues/8"},"comments":{"href":"https://api.github.com/repos/RaiseLabs/hermes/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/RaiseLabs/hermes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RaiseLabs/hermes/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/RaiseLabs/hermes/statuses/e1926542854b14c2070a3017cfe2ebc522454e63"}}}}