   end
 
   def start(conn, %{
-        "user_name" => _user,
         "channel_name" => channel_name,
         "text" => "reveal"
       }) do

      channel_name: channel_name,
      text: current_estimates
    })

    text(conn, "")
  end

    client = Tentacat.Client.new(%{access_token: access_token})

    case Tentacat.Issues.find(client, org, repo, issue) do
      {200, issue, _http_response} -> {:ok, issue}
      {_response_code, %{"message" => error_message}, _http_response} -> {:error, error_message}
    end
  end

  defp decide_issue(access_token, repo_issue_and_score) do
    repo_issue_and_score = String.trim(repo_issue_and_score)

    [org, repo, issue, score] =
      case String.split(repo_issue_and_score, "/") do
        [org, repo, issue, score] -> [org, repo, issue, score]
        [repo, issue, score] -> ["revelrylabs", repo, issue, score]
      end

    client = Tentacat.Client.new(%{access_token: access_token})

    case Tentacat.Issues.update(client, org, repo, issue, %{labels: ["Score: #{score}"]}) do
      {200, issue, _http_response} -> {:ok, issue}
      {_response_code, %{"message" => error_message}, _http_response} -> {:error, error_message}
    end
