-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
69 lines (62 loc) · 1.46 KB
/
README.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
title: "GitHub Actions"
output: github_document
# the repository where this repo exists
status_repo: abjur/abjStatus
# list of repositories by owner name and repo
params:
abjur:
- obsFase2
- obsFase3
- obsRJRS
- obsRJRJ
- obsCRSFN
- obsMC
- saudeJFCE
- falrec
- associados
- authLogs
- relatorioPesquisadores
- abjMktAnalytics
- obsDash
- abjDash
- abjutils
- cnc
- abjMaps
---
![](https://github.com/`r rmarkdown::metadata$status_repo`/workflows/Render%20Status/badge.svg)
`r strftime(Sys.time(), "%F %T %Z")`
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE)
library(purrr)
library(dplyr)
library(glue)
```
```{r gh-get-repos}
# agora lidando com runs vazios
source("gh-repo-info.R")
repos <- gh_get_repo_status(params)
```
```{r repo-status}
repos |>
dplyr::select(-where(is.list)) |>
dplyr::filter(
purrr::map_chr(repos$workflows, "state") != "disabled_manually"
) |>
dplyr::arrange(repo_name) |>
dplyr::mutate(
commit_message = map_chr(commit_message, ~strsplit(.x, "\n")[[1]][1]),
commit_id_6 = substr(commit_id, 1, 6)
) |>
dplyr::transmute(
Repo = glue("[{repo_name}]({html_url_repo})"),
Name = basename(dirname(badge_url)),
Stars = stargazers_count,
Issues = open_issues_count,
Status = glue("[![{Name}]({badge_url})]({html_url_run})")
) |>
dplyr::filter(
Name != "pages-build-deployment"
) |>
knitr::kable(escape = FALSE)
```