Learn R Programming

IssueTrackeR (version 1.2.0)

format_labels: Format the label in a simpler format

Description

Format the label in a simpler format

Usage

format_labels(raw_labels, verbose = TRUE)

Value

a list representing labels with simpler structure (with name, description, colour)

Arguments

raw_labels

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

verbose

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

Examples

Run this code

# \donttest{
# With labels
raw_labels <- gh::gh(
   repo = "rjdemetra",
   owner = "rjdverse",
   endpoint = "/repos/:owner/:repo/labels",
   .limit = Inf
)
format_labels(raw_labels)
# }

Run the code above in your browser using DataLab