View Source GitHub.Gitignore (GitHub REST API Client v0.3.1)

Provides API endpoints related to gitignore

Link to this section Summary

Functions

Get all gitignore templates

Get a gitignore template

Link to this section Functions

Link to this function

get_all_templates(opts \\ [])

View Source
@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

Link to this function

get_template(name, opts \\ [])

View Source
@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.

resources

Resources