Skip to contents

Uses gh::gh() to fetch the latest GitHub release of the specified GitHub repository via GitHub's RESTful API and returns its metadata as a single-row tibble containing the columns id, version_nr, is_pre_release and is_draft.

Usage

gh_release_latest(owner, name)

Arguments

owner

GitHub repository owner (GitHub user or organisation). A character scalar.

name

Repository name. A character scalar.

Value

A tibble with the columns id, version_nr, is_pre_release, and is_draft.

See also

Other GitHub functions: gh_dir_ls(), gh_releases(), gh_text_file(), gh_text_files()

Examples

yay::gh_release_latest(owner = "jgm",
                       name = "pandoc")
#> # A tibble: 1 × 4
#>          id version_nr is_pre_release is_draft
#>       <int> <nmrc_vrs> <lgl>          <lgl>   
#> 1 206105971 3.6.4      FALSE          FALSE