Tentacat v1.6.0 Tentacat.Search View Source
The Search API allows the search of pretty much anything on GitHub
Link to this section Summary
Functions
Search in code files
Search in issues and pull requests
Searches for repositories
Searches for users
Link to this section Functions
Link to this function
code(client \\ %Client{}, params, options \\ [])
View Source
code(client \\ %Client{}, params, options \\ [])
View Source
code(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
code(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
Search in code files
Example
Tentacat.Search.code %{q: "code language:elixir repo:edgurgel/tentacat", sort: "url"}
Tentacat.Search.code client, %{q: "code language:elixir repo:edgurgel/tentacat", sort: "url"}
More info at: https://developer.github.com/v3/search/#search-code
Link to this function
issues(client \\ %Client{}, params, options \\ [])
View Source
issues(client \\ %Client{}, params, options \\ [])
View Source
issues(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
issues(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
Search in issues and pull requests
Example
Tentacat.Search.issues %{q: "repo:edgurgel/tentacat is:merged", sort: "comments"}
Tentacat.Search.issues client, %{q: "repo:edgurgel/tentacat is:merged", sort: "created"}
More info at: https://developer.github.com/v3/search/#search-issues
Link to this function
repositories(client \\ %Client{}, params, options \\ [])
View Source
repositories(client \\ %Client{}, params, options \\ [])
View Source
repositories(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
repositories(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
Searches for repositories
Example
Tentacat.Search.repositories %{q: "elixir-lang language:elixir", sort: "stars"}
Tentacat.Search.repositories client, %{q: "elixir-lang language:elixir", sort: "stars"}
More info at: https://developer.github.com/v3/search/#search-repositories
Link to this function
users(client \\ %Client{}, params, options \\ [])
View Source
users(client \\ %Client{}, params, options \\ [])
View Source
users(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
users(Tentacat.Client.t(), any(), Keyword.t()) :: Tentacat.response()
Searches for users
Example
Tentacat.Search.users %{q: "users language:elixir", sort: "followers"}
Tentacat.Search.users client, %{q: "users language:elixir", sort: "followers"}
More info at: https://developer.github.com/v3/search/#search-users