R/api-get-last-tag.R

Defines functions get_last_tag

Documented in get_last_tag

#' The most recent tag
#'
#' Returns the most recent Git tag.
#'
#' @return A one-row tibble with columns `name`, `ref` and `commit`.
#'   For annotated tags (as created by fledge), `commit` may be different
#'   from the SHA of the commit that this tag points to.
#'   Use [gert::git_log()] to find the actual commit.
#'
#' @example man/examples/get-last-tag.R
#'
#' @export
get_last_tag <- function() {
  with_repo(get_last_tag_impl())
}

Try the fledge package in your browser

Any scripts or data that you put into this service are public.

fledge documentation built on May 29, 2024, 8:59 a.m.