@@ -139,7 +139,7 @@ defmodule CodeCorps.GitHub.Sync do
139139 end )
140140 |> Multi . run ( :github_pull_request , fn % { repo: github_repo , fetch_pull_request: pr_payload } ->
141141 pr_payload
142- |> Sync.PullRequest . create_or_update_pull_request ( github_repo )
142+ |> Sync.GithubPullRequest . create_or_update_pull_request ( github_repo )
143143 end )
144144 |> Multi . run ( :github_issue , fn % { repo: github_repo , github_pull_request: github_pull_request } ->
145145 issue_payload
@@ -394,7 +394,7 @@ defmodule CodeCorps.GitHub.Sync do
394394 end )
395395 |> Multi . run ( :github_pull_request , fn % { repo: github_repo } ->
396396 pr_payload
397- |> Sync.PullRequest . create_or_update_pull_request ( github_repo )
397+ |> Sync.GithubPullRequest . create_or_update_pull_request ( github_repo )
398398 end )
399399 |> Multi . run ( :github_issue , fn % { fetch_issue: issue_payload , repo: github_repo , github_pull_request: github_pull_request } ->
400400 issue_payload
@@ -465,7 +465,7 @@ defmodule CodeCorps.GitHub.Sync do
465465 with { :ok , repo } <- repo |> mark_repo ( "fetching_pull_requests" ) ,
466466 { :ok , pr_payloads } <- repo |> API.Repository . pulls |> sync_step ( :fetch_pull_requests ) ,
467467 { :ok , repo } <- repo |> mark_repo ( "syncing_github_pull_requests" , % { syncing_pull_requests_count: pr_payloads |> Enum . count } ) ,
468- { :ok , pull_requests } <- pr_payloads |> Enum . map ( & Sync.PullRequest . create_or_update_pull_request ( & 1 , repo ) ) |> ResultAggregator . aggregate |> sync_step ( :sync_pull_requests ) ,
468+ { :ok , pull_requests } <- pr_payloads |> Enum . map ( & Sync.GithubPullRequest . create_or_update_pull_request ( & 1 , repo ) ) |> ResultAggregator . aggregate |> sync_step ( :sync_pull_requests ) ,
469469 { :ok , repo } <- repo |> mark_repo ( "fetching_issues" ) ,
470470 { :ok , issue_payloads } <- repo |> API.Repository . issues |> sync_step ( :fetch_issues ) ,
471471 { :ok , repo } <- repo |> mark_repo ( "syncing_github_issues" , % { syncing_issues_count: issue_payloads |> Enum . count } ) ,
0 commit comments