 
                    {:ok, res}
 
-                 err ->
-                   {:error, :get_commit_status, :check, err}
+                 %{body: body, status: status} ->
+                   {:error, :get_commit_status, status, body}
                end),
          do: {:ok, Map.merge(status, check)}
   end

        r = Poison.decode!(raw)["commit"]
        {:ok, %{commit: r["sha"], tree: r["commit"]["tree"]["sha"]}}

      err ->
        {:error, :get_branch, err}
    end
  end



          {:ok, app_link}

        %{body: body, status: status} ->
          {:error, :get_app, status, body}
      end

    {:reply, result, state}
