code_corps v0.0.1 CodeCorps.GitHub.API.Repository View Source
Functions for retrieving a GitHub repository’s issues, pull requests, and comments from the GitHub API.
Link to this section Summary
Functions
Retrieves comments from all issues in a github repository
Retrieves issues for a repository
Retrieves pull requests for a repository
Link to this section Functions
Link to this function
issue_comments(github_repo)
View Source
issue_comments(CodeCorps.GithubRepo.t()) :: {:ok, [map()]} | {:error, CodeCorps.GitHub.paginated_endpoint_error()}
Retrieves comments from all issues in a github repository.
Link to this function
issues(github_repo)
View Source
issues(CodeCorps.GithubRepo.t()) :: {:ok, [map()]} | {:error, CodeCorps.GitHub.paginated_endpoint_error()}
Retrieves issues for a repository
All pages of records are retrieved. Closed issues are included.
Link to this function
pulls(github_repo)
View Source
pulls(CodeCorps.GithubRepo.t()) :: {:ok, [map()]} | {:error, CodeCorps.GitHub.paginated_endpoint_error()}
Retrieves pull requests for a repository.
All pages of records are retrieved.