Skip to content

Commit

Permalink
exclude @noamross 'legacy' label from review stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Mar 20, 2024
1 parent 9fa8cae commit 483bf89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dashboard
Title: What the Package Does (One Line, Title Case)
Version: 0.0.10.003
Version: 0.0.10.004
Authors@R:
person(given = "First",
family = "Last",
Expand Down
5 changes: 4 additions & 1 deletion R/reviews.R
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,9 @@ review_history <- function (quiet = FALSE) {
)
std_stats <- submission_type %in% c ("Standard", "Stats") &
is.na (closed_at)
pkg_index <- which (approved | std_stats)
# There is also a "legacy" label on #137 that should be excluded:
legacy <- vapply (labels, function (i) "legacy" %in% i, logical (1L))
pkg_index <- which ((approved | std_stats) & !legacy)

number <- number [pkg_index]
opened_at <- opened_at [pkg_index]
Expand All @@ -521,6 +523,7 @@ review_history <- function (quiet = FALSE) {
# labels are then only used to identify stats submissions:
stats <- vapply (labels, function (i) "stats" %in% i, logical (1L))


res <- data.frame (
number = number,
state = state,
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "dashboard: What the Package Does (One Line, Title Case)",
"codeRepository": "https://github.com/ropensci-review-tools/dashboard",
"license": "https://spdx.org/licenses/MIT",
"version": "0.0.10.003",
"version": "0.0.10.004",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 483bf89

Please sign in to comment.