Skip to content

Commit

Permalink
add 'stats' flag to dashboard data
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Mar 7, 2024
1 parent c8b80e2 commit 9ad031c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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.1.005
Version: 0.0.1.006
Authors@R:
person(given = "First",
family = "Last",
Expand Down
3 changes: 3 additions & 0 deletions R/dashboard-fn.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ dashboard_gh_data <- function (open_only = TRUE, quiet = FALSE) {
names (stages) <- c ("label", "date")
stages$date <- as.Date (stages$date)

stats <- vapply (labels, function (i) "stats" %in% i, logical (1L))

# Also identify any issues with multiple stages:
multiple_stages <- vapply (event_labels, function (i) {
n_total <- length (grep ("^[0-9]\\/", i))
Expand Down Expand Up @@ -179,6 +181,7 @@ dashboard_gh_data <- function (open_only = TRUE, quiet = FALSE) {
number = number,
title = titles,
state = state,
stats = stats,
stage = stages$label,
stage_date = stages$date,
has_multiple_stages = multiple_stages,
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.1.005",
"version": "0.0.1.006",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 9ad031c

Please sign in to comment.