View Source GitHub.Issues (GitHub Issues v0.4.46)
Fetches a list of issues from a GitHub project.
Link to this section Summary
Functions
Fetches issues from the GitHub project
of a given user
.
Link to this section Types
Specs
issue() :: map()
GitHub issue
Link to this section Functions
Specs
fetch(GitHub.Issues.CLI.user(), GitHub.Issues.CLI.project()) :: {:ok, [issue()]} | {:error, String.t()}
Fetches issues from the GitHub project
of a given user
.
Returns a tuple of either {:ok, [issue]}
or {:error, text}
.
Examples
iex> alias GitHub.Issues
iex> {:ok, issues} = Issues.fetch("opendrops", "passport")
iex> Enum.all?(issues, &is_map/1) and length(issues) > 0
true