defmodule SlackCoder.Github do
  require Logger
  alias SlackCoder.Github.EventProcessor

  def client do
    Tentacat.Client.new(%{
      user: Application.get_env(:slack_coder, :github)[:user],
      password: Application.get_env(:slack_coder, :github)[:pat]
    })
  end

  @events ~w(commit_comment create delete deployment deployment_status download follow fork fork_apply gist
    gollum issue_comment issues label member membership milestone page_build ping public pull_request pull_request_review
    pull_request_review_comment push release repository status team_add watch)a
  def events(), do: @events

  def ingest(owner, repository) do
    raw_prs = Tentacat.Pulls.list(owner, repository, client)
    raw_prs |> Enum.each(fn(pr)->
      EventProcessor.process_async(:pull_request, %{"action" => "opened", "number" => pr["number"], "pull_request" => pr})
    end)
  end
end

defmodule SlackCoder.Github do
  require Logger
  alias SlackCoder.Github.EventProcessor

  def client do
    Tentacat.Client.new(%{
      user: Application.get_env(:slack_coder, :github)[:user],
      password: Application.get_env(:slack_coder, :github)[:pat]
    })
  end

  @events ~w(commit_comment create delete deployment deployment_status download follow fork fork_apply gist
    gollum issue_comment issues label member membership milestone page_build ping public pull_request pull_request_review
    pull_request_review_comment push release repository status team_add watch)
  def events(), do: @events

  def ingest(owner, repository) do
    raw_prs = Tentacat.Pulls.list(owner, repository, client)
    raw_prs |> Enum.each(fn(pr)->
      EventProcessor.process_async(:pull_request, %{"action" => "opened", "number" => pr["number"], "pull_request" => pr})
    end)
  end
end

Make back into string to Enum.member works correctly.
Make back into string to Enum.member works correctly.

mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder