{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/bamboo/pulls/comments/70739559","id":70739559,"diff_hunk":"@@ -1,167 +1,12 @@\n defmodule Bamboo.SendgridAdapter do\n-  @moduledoc \"\"\"\n-  Sends email using SendGrid's JSON API.\n-\n-  Use this adapter to send emails through SendGrid's API. Requires that an API\n-  key is set in the config.\n-\n-  ## Example config\n-\n-      # In config/config.exs, or config.prod.exs, etc.\n-      config :my_app, MyApp.Mailer,\n-        adapter: Bamboo.SendgridAdapter,\n-        api_key: \"my_api_key\"\n-\n-      # Define a Mailer. Maybe in lib/my_app/mailer.ex\n-      defmodule MyApp.Mailer do\n-        use Bamboo.Mailer, otp_app: :my_app\n-      end\n-  \"\"\"\n-\n-  @default_base_uri \"https://api.sendgrid.com/api\"\n-  @send_message_path \"/mail.send.json\"\n-  @behaviour Bamboo.Adapter\n-\n-  alias Bamboo.Email\n-\n-  defmodule ApiError do\n-    defexception [:message]\n-\n-    def exception(%{params: params, response: response}) do\n-      filtered_params = params |> Plug.Conn.Query.decode |> Map.put(\"key\", \"[FILTERED]\")\n-\n-      message = \"\"\"\n-      There was a problem sending the email through the SendGrid API.\n-\n-      Here is the response:\n-\n-      #{inspect response, limit: :infinity}\n-\n-      Here are the params we sent:\n-\n-      #{inspect filtered_params, limit: :infinity}\n-\n-      If you are deploying to Heroku and using ENV variables to handle your API key,\n-      you will need to explicitly export the variables so they are available at compile time.\n-      Add the following configuration to your elixir_buildpack.config:\n-\n-      config_vars_to_export=(\n-        DATABASE_URL\n-        SENDGRID_API_KEY\n-      )\n-      \"\"\"\n-      %ApiError{message: message}\n-    end\n-  end\n+  @moduledoc false\n \n   def deliver(email, config) do","path":"lib/bamboo/adapters/sendgrid_adapter.ex","position":58,"original_position":58,"commit_id":"dfd3f37fbb779813897ab08e565a7cb31dc3feb5","original_commit_id":"dfd3f37fbb779813897ab08e565a7cb31dc3feb5","user":{"login":"geofflane","id":6378,"avatar_url":"https://avatars.githubusercontent.com/u/6378?v=3","gravatar_id":"","url":"https://api.github.com/users/geofflane","html_url":"https://github.com/geofflane","followers_url":"https://api.github.com/users/geofflane/followers","following_url":"https://api.github.com/users/geofflane/following{/other_user}","gists_url":"https://api.github.com/users/geofflane/gists{/gist_id}","starred_url":"https://api.github.com/users/geofflane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geofflane/subscriptions","organizations_url":"https://api.github.com/users/geofflane/orgs","repos_url":"https://api.github.com/users/geofflane/repos","events_url":"https://api.github.com/users/geofflane/events{/privacy}","received_events_url":"https://api.github.com/users/geofflane/received_events","type":"User","site_admin":false},"body":"Since these are unused, they should be renamed to `_email` and `_config` so that you don't get build warnings.","created_at":"2016-07-14T02:15:29Z","updated_at":"2016-07-14T02:15:29Z","html_url":"https://github.com/thoughtbot/bamboo/pull/195#discussion_r70739559","pull_request_url":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/bamboo/pulls/comments/70739559"},"html":{"href":"https://github.com/thoughtbot/bamboo/pull/195#discussion_r70739559"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195","id":76568650,"html_url":"https://github.com/thoughtbot/bamboo/pull/195","diff_url":"https://github.com/thoughtbot/bamboo/pull/195.diff","patch_url":"https://github.com/thoughtbot/bamboo/pull/195.patch","issue_url":"https://api.github.com/repos/thoughtbot/bamboo/issues/195","number":195,"state":"open","locked":false,"title":"Soft deprecates SendgridAdapter and adds SendGridAdapter","user":{"login":"jbernardo95","id":6342528,"avatar_url":"https://avatars.githubusercontent.com/u/6342528?v=3","gravatar_id":"","url":"https://api.github.com/users/jbernardo95","html_url":"https://github.com/jbernardo95","followers_url":"https://api.github.com/users/jbernardo95/followers","following_url":"https://api.github.com/users/jbernardo95/following{/other_user}","gists_url":"https://api.github.com/users/jbernardo95/gists{/gist_id}","starred_url":"https://api.github.com/users/jbernardo95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbernardo95/subscriptions","organizations_url":"https://api.github.com/users/jbernardo95/orgs","repos_url":"https://api.github.com/users/jbernardo95/repos","events_url":"https://api.github.com/users/jbernardo95/events{/privacy}","received_events_url":"https://api.github.com/users/jbernardo95/received_events","type":"User","site_admin":false},"body":"This PR aims to fix #141\r\n\r\nThis PR includes:\r\n- SendgridAdapter soft deprecation\r\n- Adds SendGridAdapter and SendGridAdapterTest\r\n\r\nPs: This is my first Elixir PR feel free to tell me what's wrong 🙂","created_at":"2016-07-07T09:58:55Z","updated_at":"2016-07-14T02:15:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bab58709444edcd8026e4dd56018dc34ba1f8422","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/bamboo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/bamboo/issues/195/comments","statuses_url":"https://api.github.com/repos/thoughtbot/bamboo/statuses/dfd3f37fbb779813897ab08e565a7cb31dc3feb5","head":{"label":"jbernardo95:soft-deprecate-sendgrid-adapter","ref":"soft-deprecate-sendgrid-adapter","sha":"dfd3f37fbb779813897ab08e565a7cb31dc3feb5","user":{"login":"jbernardo95","id":6342528,"avatar_url":"https://avatars.githubusercontent.com/u/6342528?v=3","gravatar_id":"","url":"https://api.github.com/users/jbernardo95","html_url":"https://github.com/jbernardo95","followers_url":"https://api.github.com/users/jbernardo95/followers","following_url":"https://api.github.com/users/jbernardo95/following{/other_user}","gists_url":"https://api.github.com/users/jbernardo95/gists{/gist_id}","starred_url":"https://api.github.com/users/jbernardo95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbernardo95/subscriptions","organizations_url":"https://api.github.com/users/jbernardo95/orgs","repos_url":"https://api.github.com/users/jbernardo95/repos","events_url":"https://api.github.com/users/jbernardo95/events{/privacy}","received_events_url":"https://api.github.com/users/jbernardo95/received_events","type":"User","site_admin":false},"repo":{"id":62795759,"name":"bamboo","full_name":"jbernardo95/bamboo","owner":{"login":"jbernardo95","id":6342528,"avatar_url":"https://avatars.githubusercontent.com/u/6342528?v=3","gravatar_id":"","url":"https://api.github.com/users/jbernardo95","html_url":"https://github.com/jbernardo95","followers_url":"https://api.github.com/users/jbernardo95/followers","following_url":"https://api.github.com/users/jbernardo95/following{/other_user}","gists_url":"https://api.github.com/users/jbernardo95/gists{/gist_id}","starred_url":"https://api.github.com/users/jbernardo95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbernardo95/subscriptions","organizations_url":"https://api.github.com/users/jbernardo95/orgs","repos_url":"https://api.github.com/users/jbernardo95/repos","events_url":"https://api.github.com/users/jbernardo95/events{/privacy}","received_events_url":"https://api.github.com/users/jbernardo95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbernardo95/bamboo","description":"Testable, composable, and adapter based Elixir email library for devs that love piping.","fork":true,"url":"https://api.github.com/repos/jbernardo95/bamboo","forks_url":"https://api.github.com/repos/jbernardo95/bamboo/forks","keys_url":"https://api.github.com/repos/jbernardo95/bamboo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbernardo95/bamboo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbernardo95/bamboo/teams","hooks_url":"https://api.github.com/repos/jbernardo95/bamboo/hooks","issue_events_url":"https://api.github.com/repos/jbernardo95/bamboo/issues/events{/number}","events_url":"https://api.github.com/repos/jbernardo95/bamboo/events","assignees_url":"https://api.github.com/repos/jbernardo95/bamboo/assignees{/user}","branches_url":"https://api.github.com/repos/jbernardo95/bamboo/branches{/branch}","tags_url":"https://api.github.com/repos/jbernardo95/bamboo/tags","blobs_url":"https://api.github.com/repos/jbernardo95/bamboo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbernardo95/bamboo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbernardo95/bamboo/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbernardo95/bamboo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbernardo95/bamboo/statuses/{sha}","languages_url":"https://api.github.com/repos/jbernardo95/bamboo/languages","stargazers_url":"https://api.github.com/repos/jbernardo95/bamboo/stargazers","contributors_url":"https://api.github.com/repos/jbernardo95/bamboo/contributors","subscribers_url":"https://api.github.com/repos/jbernardo95/bamboo/subscribers","subscription_url":"https://api.github.com/repos/jbernardo95/bamboo/subscription","commits_url":"https://api.github.com/repos/jbernardo95/bamboo/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbernardo95/bamboo/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbernardo95/bamboo/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbernardo95/bamboo/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbernardo95/bamboo/contents/{+path}","compare_url":"https://api.github.com/repos/jbernardo95/bamboo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbernardo95/bamboo/merges","archive_url":"https://api.github.com/repos/jbernardo95/bamboo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbernardo95/bamboo/downloads","issues_url":"https://api.github.com/repos/jbernardo95/bamboo/issues{/number}","pulls_url":"https://api.github.com/repos/jbernardo95/bamboo/pulls{/number}","milestones_url":"https://api.github.com/repos/jbernardo95/bamboo/milestones{/number}","notifications_url":"https://api.github.com/repos/jbernardo95/bamboo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbernardo95/bamboo/labels{/name}","releases_url":"https://api.github.com/repos/jbernardo95/bamboo/releases{/id}","deployments_url":"https://api.github.com/repos/jbernardo95/bamboo/deployments","created_at":"2016-07-07T09:50:58Z","updated_at":"2016-07-07T09:50:59Z","pushed_at":"2016-07-13T18:29:20Z","git_url":"git://github.com/jbernardo95/bamboo.git","ssh_url":"git@github.com:jbernardo95/bamboo.git","clone_url":"https://github.com/jbernardo95/bamboo.git","svn_url":"https://github.com/jbernardo95/bamboo","homepage":"https://hex.pm/packages/bamboo","size":226,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"thoughtbot:master","ref":"master","sha":"f1beac040dfd47483778e7d58defd705653497f8","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":45436531,"name":"bamboo","full_name":"thoughtbot/bamboo","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/bamboo","description":"Testable, composable, and adapter based Elixir email library for devs that love piping.","fork":false,"url":"https://api.github.com/repos/thoughtbot/bamboo","forks_url":"https://api.github.com/repos/thoughtbot/bamboo/forks","keys_url":"https://api.github.com/repos/thoughtbot/bamboo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/bamboo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/bamboo/teams","hooks_url":"https://api.github.com/repos/thoughtbot/bamboo/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/bamboo/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/bamboo/events","assignees_url":"https://api.github.com/repos/thoughtbot/bamboo/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/bamboo/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/bamboo/tags","blobs_url":"https://api.github.com/repos/thoughtbot/bamboo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/bamboo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/bamboo/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/bamboo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/bamboo/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/bamboo/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/bamboo/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/bamboo/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/bamboo/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/bamboo/subscription","commits_url":"https://api.github.com/repos/thoughtbot/bamboo/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/bamboo/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/bamboo/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/bamboo/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/bamboo/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/bamboo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/bamboo/merges","archive_url":"https://api.github.com/repos/thoughtbot/bamboo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/bamboo/downloads","issues_url":"https://api.github.com/repos/thoughtbot/bamboo/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/bamboo/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/bamboo/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/bamboo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/bamboo/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/bamboo/releases{/id}","deployments_url":"https://api.github.com/repos/thoughtbot/bamboo/deployments","created_at":"2015-11-03T02:30:34Z","updated_at":"2016-07-13T21:17:20Z","pushed_at":"2016-07-13T18:29:21Z","git_url":"git://github.com/thoughtbot/bamboo.git","ssh_url":"git@github.com:thoughtbot/bamboo.git","clone_url":"https://github.com/thoughtbot/bamboo.git","svn_url":"https://github.com/thoughtbot/bamboo","homepage":"https://hex.pm/packages/bamboo","size":489,"stargazers_count":275,"watchers_count":275,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":16,"forks":28,"open_issues":16,"watchers":275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195"},"html":{"href":"https://github.com/thoughtbot/bamboo/pull/195"},"issue":{"href":"https://api.github.com/repos/thoughtbot/bamboo/issues/195"},"comments":{"href":"https://api.github.com/repos/thoughtbot/bamboo/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/bamboo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/bamboo/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/bamboo/statuses/dfd3f37fbb779813897ab08e565a7cb31dc3feb5"}}}}
{"actor":{"display_login":"geofflane"}}