Skip to content

Commit

Permalink
Ouput initial info on multiple-stage issues in reviews.qmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Mar 20, 2024
1 parent 0a1dd6a commit af13f6a
Show file tree
Hide file tree
Showing 3 changed files with 20 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.7.006
Version: 0.0.7.007
Authors@R:
person(given = "First",
family = "Last",
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.7.006",
"version": "0.0.7.007",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
19 changes: 18 additions & 1 deletion quarto/reviews.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,26 @@ format:
library (dashboard)
library (gt)
rev_dat <- review_status (open_only = TRUE, browse = FALSE, quiet = TRUE)
# The rest is code from dashboard/pkg/R/gh-table.R
has_multiple_stages <- !is.null (attr (rev_dat, "multiple_stages"))
```

```{r multiple-stages, eval = has_multiple_stages, echo = FALSE, results = "asis"}
stages <- attr (rev_dat, "multiple_stages")
u <- "https//github.com/ropensci/software-review/issues/"
stages <- paste0 ("<a href='", u, stages, "'>", stages, "</a>")
stages <- paste0 (stages, collapse = ", ")
iss <- ifelse (length (stages) > 1L, "issues", "issue")
v <- ifelse (length (stages) > 1L, "have", "has")
cat (paste0 (
"<hr><span style='color:red'>The following ",
iss, " ", v,
" multiple stages:<br>",
stages,
"</span><br><hr>"
))
```


```{r add-html-to-table, echo = FALSE}
u <- "https://github.com/ropensci/software-review/issues/"
dat <- rev_dat
Expand Down

0 comments on commit af13f6a

Please sign in to comment.