Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
assign github data for show in live view
Browse files Browse the repository at this point in the history
  • Loading branch information
carlogilmar committed Sep 22, 2019
1 parent c7c7cb8 commit 61d2bec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/spawnfest_web/live/repo_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ defmodule SpawnfestWeb.RepoLive do
{:ok, socket}
end

def handle_info(%{event: "show_analysis", payload: %{repo: {url_repo, branches, branch}}}, socket) do
def handle_info(%{event: "show_analysis", payload: %{repo: {url_repo, branches, branch, github_repo, issues, prs, contributors}}}, socket) do
socket =
socket
|> assign(:url, url_repo)
|> assign(:branches, branches)
|> assign(:branch, branch)
|> assign(:repo, github_repo)
|> assign(:issues, issues)
|> assign(:prs, prs)
|> assign(:contributors, contributors)
{:noreply, socket}
end

Expand Down

0 comments on commit 61d2bec

Please sign in to comment.