Generic function to filter issues with labels
with_labels(x, ...)
# S3 method for class 'IssuesTB'
with_labels(x, ...)An object of class IssuesTB.
Additional arguments passed to grepl(), such as pattern
and ignore.case.
An object IssuesTB with issues that satisfy the condition.
issues_selector <- init_selector(
source = "Local",
file = file.path(
system.file("data_issues", package = "IssueTrackeR"),
"list_issues.yaml"
)
)
all_issues <- get_issues(selector = issues_selector)
#> The issues will be read from /home/runner/work/_temp/Library/IssueTrackeR/data_issues/list_issues.yaml.
with_labels(all_issues, pattern = "Bug")
#> No issues
#>