R/wrangling_dataset_milestones.R
format_milestones.RdFormat the milestones in a simpler format
format_milestones(raw_milestones, verbose = TRUE)a gh_response object output from the function
gh which contains all the data and metadata for GitHub
milestones.
A logical value indicating whether to print additional
information. Default is TRUE.
a list representing milestones with simpler structure (with title, description and due_on)
if (FALSE) { # \dontrun{
# With milestones
milestones_jdplus_main <- gh::gh(
repo = "jdplus-main",
owner = "jdemetra",
endpoint = "/repos/:owner/:repo/milestones",
state = "all",
.limit = Inf
)
format_milestones(milestones_jdplus_main)
} # }