GitOps.GitHub (Git Ops v2.9.0)

View Source

GitHub API integration for looking up user information.

Summary

Functions

Batch find GitHub users by their email addresses. Returns a map of %{email => {:ok, user_info} | {:error, reason}}

Find a GitHub user by their email address. Returns {:ok, user} if found, where user contains :username, :id, and :url. Returns {:error, reason} if not found or if there's an error.

Functions

batch_find_users_by_emails(emails)

Batch find GitHub users by their email addresses. Returns a map of %{email => {:ok, user_info} | {:error, reason}}

batch_pull_requests_from_commits(hashes)

fetch_user_from_api(email)

Find a GitHub user by their email address. Returns {:ok, user} if found, where user contains :username, :id, and :url. Returns {:error, reason} if not found or if there's an error.

get_pull_request_from_commit(hash)

@spec get_pull_request_from_commit(String.t()) ::
  {:ok, %{number: integer(), url: String.t()} | nil} | {:error, String.t()}