filter_issues {IssueTrackeR} | R Documentation |
Filter issue or issues
Description
Filtering issues with some constraint on the labels, the title and the body.
Usage
filter_issues(x, ...)
## S3 method for class 'IssuesTB'
filter_issues(x, ...)
## Default S3 method:
filter_issues(x, ...)
Arguments
x |
a |
... |
Other options used to control filtering behaviour with different
fields and values. Passed on to
|
Details
This function relies on the function contains
.
More informations on the filtering in the documentation of the function
contains
.
Value
a IssuesTB
object filtered
Examples
all_issues <- get_issues(source = "online", verbose = FALSE)
# Condition: issues containing "README" in its body OR title
filtered_issues <- filter_issues(
x = all_issues,
fields = c("body", "title"),
values = "README",
fields_logic_gate = "OR"
)
# Condition: issues containing neither "unknown" nor "medium" in their label
filtered_issues <- filter_issues(
x = all_issues,
fields = "labels",
values = c("unknown", "medium"),
values_logic_gate = "OR",
negate = TRUE,
fields_logic_gate = "AND"
)