-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
42 lines (39 loc) · 845 Bytes
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
output:
html_document:
self_contained: false
title: '`r Sys.getenv("GITHUB_REPOSITORY_OWNER")` Action Dashboard'
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
eval = Sys.getenv("CI", FALSE),
echo = FALSE
)
```
```{r}
repos <- gh::gh(
"/orgs/{org}/repos",
org = Sys.getenv("GITHUB_REPOSITORY_OWNER"),
type = "public",
sort = "full_name",
per_page = 100,
.limit = Inf
) |>
purrr::discard(~ .x[["archived"]]) |>
identity()
```
```{r, results='asis'}
repos |>
purrr::map(function(repo) {
knitr::knit_child("_repo_section.Rmd", envir = environment())
}) |>
unlist() |>
sort(method = "radix") |>
knitr::knit_child(text = _, quiet = TRUE) |>
cat(sep = "\n\n") |>
identity()
```