Skip to content

Commit

Permalink
return ed-review data from main 'editor_status' fn for #7
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Mar 19, 2024
1 parent b70af8b commit 33756f7
Show file tree
Hide file tree
Showing 3 changed files with 15 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.5.013
Version: 0.0.5.014
Authors@R:
person(given = "First",
family = "Last",
Expand Down
14 changes: 13 additions & 1 deletion R/editors.R
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,17 @@ editor_status <- function (quiet = FALSE) {
eds <- unique (timeline$name)
timeline$y <- match (timeline$name, eds)

return (list (status = status, timeline = timeline))
# Finally, reviews for each editor
ed_rev <- split (dat$reviews, f = as.factor (dat$reviews$editor))
ed_rev <- lapply (ed_rev, function (i) {
i$editor <- NULL
i$closed_at [i$state == "OPEN"] <- NA
return (i)
})

return (list (
status = status,
timeline = timeline,
reviews = ed_rev
))
}
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.5.013",
"version": "0.0.5.014",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 33756f7

Please sign in to comment.