use_tic_badge: Add a CI Status Badge to README files

View source: R/use-badge.R

use_tic_badgeR Documentation

Add a CI Status Badge to README files

Description

Adds a CI status badge to README.Rmd or README.md. By default the label is "tic".

A custom branch can be specified via argument branch.

Usage

use_tic_badge(provider, branch = NULL, label = "tic")

Arguments

provider

character(1)
The CI provider to generate a badge for. Only ghactions is currently supported

branch

character(1)
Which branch should the badge represent? Defaults to the default repo branch.

label

character(1)
Text to use for the badge.

Examples

## Not run: 
use_tic_badge(provider = "ghactions")

# use a different branch
use_tic_badge(provider = "ghactions", branch = "develop")

## End(Not run)

ropensci/tic documentation built on Jan. 18, 2024, 3:57 a.m.