Skip to content

Commit

Permalink
fix editors list to include members from ed-stats only
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Mar 20, 2024
1 parent 6a85b7c commit 55907d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 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.11.003
Version: 0.1.0
Authors@R:
person(given = "First",
family = "Last",
Expand Down
6 changes: 2 additions & 4 deletions R/editors.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@
editor_gh_data <- function (quiet = FALSE) {

q <- gh_editors_team_qry (stats = FALSE)
stopifnot (nchar (q) == 267L)
editors <- gh::gh_gql (query = q)
editors <- editors$data$organization$team$members$nodes
stopifnot (length (editors) > 0L)
editors <- vapply (editors, function (i) i$login, character (1L))
stopifnot (length (editors) > 0L)

q <- gh_editors_team_qry (stats = TRUE)
editors_stats <- gh::gh_gql (query = q)
editors_stats <- editors_stats$data$organization$team$members$nodes
editors_stats <-
vapply (editors_stats, function (i) i$login, character (1L))
stopifnot (length (editors_stats) > 0L)

editors <- data.frame (
login = editors,
stats = editors %in% editors_stats
)
editors_stats <- editors_stats [which (!editors_stats %in% editors$login)]
editors <- rbind (editors, data.frame (login = editors_stats, stats = TRUE))

has_next_page <- TRUE
end_cursor <- NULL
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.11.003",
"version": "0.1.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 55907d9

Please sign in to comment.