File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,12 @@ use_github_action <- function(name = NULL,
124124 ui_bullets(c(" _" = " Learn more at {.url {readme}}." ))
125125 }
126126
127- badge <- badge %|| % is_check_action(url )
128- if (badge ) {
127+ if (badge %|| % is_check_action(url )) {
129128 use_github_actions_badge(path_file(save_as ))
130129 }
130+ if (badge %|| % is_coverage_action(url )) {
131+ use_codecov_badge(target_repo_spec())
132+ }
131133
132134 invisible (new )
133135}
@@ -167,6 +169,10 @@ is_check_action <- function(url) {
167169 grepl(" ^check-" , path_file(url ))
168170}
169171
172+ is_coverage_action <- function (url ) {
173+ grepl(" test-coverage" , path_file(url ))
174+ }
175+
170176# ' Generates a GitHub Actions badge
171177# '
172178# ' Generates a GitHub Actions badge and that's all. This exists primarily for
You can’t perform that action at this time.
0 commit comments