List all templates available to pass as an option when creating a repository.
octokit.gitignore.getAllTemplates();
This endpoint has no parameters
See also: GitHub Developer Guide documentation.
The API also allows fetching the source of a single template. Use the raw media type to get the raw contents.
octokit.gitignore.getTemplate({name,});
name | required | description |
---|---|---|
name | yes |
See also: GitHub Developer Guide documentation.