Learn R Programming

IssueTrackeR (version 1.2.0)

format_milestones: Format the milestones in a simpler format

Description

Format the milestones in a simpler format

Usage

format_milestones(raw_milestones, verbose = TRUE)

Value

a list representing milestones with simpler structure (with title, description and due_on)

Arguments

raw_milestones

a gh_response object output from the function gh which contains all the data and metadata for GitHub milestones.

verbose

A logical value indicating whether to print additional information. Default is TRUE.

Examples

Run this code

# \donttest{
# 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)
# }

Run the code above in your browser using DataLab