Lilictocat v0.1.0 Lilictocat.Github View Source
this module consumes the github API, and makes the necessary transformations to use the data
Link to this section Summary
Functions
returns a list of pull requests with status open
returns a list of repositories
returns a list of organiztions
returns a boolean to indicate if the pull request has any review
Link to this section Functions
Specs
open_pull_requests_of_organization() :: Enumerable.t()
returns a list of pull requests with status open
Example
iex> Lilictocat.Github.open_pull_requests_of_organization() [
%{
created_at: "2020-07-23T17:41:20Z",
html_url: "https://link_pr.com/1",
number: 1,
base: %{repo: %{full_name: "dominaria_inc/zoombie"}}
},
%{
created_at: "2020-08-23T17:41:20Z",
html_url: "https://link_pr.com/2",
number: 2,
base: %{repo: %{full_name: "dominaria_inc/goblin"}}
}
]
Specs
organization_repos() :: Enumerable.t()
returns a list of repositories
Example
iex> Lilictocat.Github.organization_repos() [
%{owner: %{login: "dominaria inc"}, name: "zoombie"},
%{owner: %{login: "dominaria inc"}, name: "goblin"}
]
Specs
organizations() :: list()
returns a list of organiztions
Example
iex> Lilictocat.Github.organizations() ["dominaria inc"]
Specs
returns a boolean to indicate if the pull request has any review
Example
iex> Lilictocat.Github.pull_request_without_review(%{project: "dominaria_inc/goblin", number: 21}) true