format_issues {IssueTrackeR} | R Documentation |
Format the issue in a simpler format
Description
Format the issue in a simpler format
Usage
format_issues(
raw_issues,
raw_comments,
repo = getOption("IssueTrackeR.repo"),
owner = getOption("IssueTrackeR.owner"),
verbose = TRUE
)
Arguments
raw_issues |
a |
raw_comments |
a |
repo |
A character string specifying the GitHub repository name (only
taken into account if |
owner |
A character string specifying the GitHub owner (only taken
into account if |
verbose |
A logical value indicating whether to print additional
information. Default is |
Value
a list representing an issue with simpler structure (with number, title, body and labels) of all issues.
Examples
raw_issues <- gh::gh(
repo = "rjdemetra",
owner = "rjdverse",
endpoint = "/repos/:owner/:repo/issues",
.limit = Inf
)
raw_comments <- gh::gh(
repo = "rjdemetra",
owner = "rjdverse",
endpoint = "/repos/:owner/:repo/issues/comments",
.limit = Inf
)
all_issues <- format_issues(raw_issues = raw_issues,
raw_comments = raw_comments,
verbose = FALSE)