gh_releases | R Documentation |
Uses gh::gh()
to fetch all available releases of the specified GitHub repository
via GitHub's RESTful API and returns them as a tibble containing the
columns id
, version_nr
, is_pre_release
and is_draft
.
gh_releases(
owner,
name,
n = Inf,
incl_pre_releases = FALSE,
incl_drafts = FALSE
)
owner |
GitHub repository owner (GitHub user or organisation). A character scalar. |
name |
Repository name. A character scalar. |
n |
Number of releases to return. A positive integer or |
incl_pre_releases |
Whether or not to include pre-releases in the result. Pre-releases are usually not deemed ready for production and may be unstable. For more information, see the GitHub Docs. |
incl_drafts |
Whether or not to include draft releases in the result. For more information, see the GitHub Docs. |
A tibble with the columns id
, version_nr
, is_pre_release
, and is_draft
.
Other GitHub functions:
gh_dir_ls()
,
gh_release_latest()
,
gh_text_file()
,
gh_text_files()
yay::gh_releases(owner = "jgm",
name = "pandoc",
n = 3L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.