code_corps v0.0.1 CodeCorps.GitHub.Sync.Utils.Finder View Source

Used to retrieve locally stored github records, using data contained in GitHub API payloads.

Link to this section Summary

Functions

For a provided Github API payload, attemps to find a CodeCorps.GithubAppInstallation record

For a provided Github API payload, attemps to find a CodeCorps.GithubRepo record

Link to this section Functions

Link to this function find_installation(map) View Source
find_installation(map()) ::
  {:ok, CodeCorps.GithubAppInstallation.t()} |
  {:error, :unmatched_installation}

For a provided Github API payload, attemps to find a CodeCorps.GithubAppInstallation record.

Link to this function find_repo(map) View Source
find_repo(map()) ::
  {:ok, CodeCorps.GithubRepo.t()} |
  {:error, :unmatched_repository}

For a provided Github API payload, attemps to find a CodeCorps.GithubRepo record.