View Source GitHub.Gitignore (GitHub REST API Client v0.3.1)
Provides API endpoints related to gitignore
Link to this section Summary
Link to this section Functions
@spec get_all_templates(keyword()) :: {:ok, [String.t()]} | {:error, GitHub.Error.t()}
Get all gitignore templates
List all templates available to pass as an option when creating a repository.
resources
Resources
@spec get_template( String.t(), keyword() ) :: {:ok, GitHub.Git.IgnoreTemplate.t()} | {:error, GitHub.Error.t()}
Get a gitignore template
Get the content of a gitignore template.
This endpoint supports the following custom media types. For more information, see "Media types."
application/vnd.github.raw+json
: Returns the raw .gitignore contents.