action_badge | R Documentation |
action_add_badge()
- Add a GitHub Actions badge to a file.
action_remove_badge()
- Remove one or more GitHub Action badges from a file.
action_add_badge(
repo,
workflow = NULL,
where = "^.",
line_padding = "\n\n\n",
file = "README.md"
)
action_remove_badge(repo, workflow_pat = ".*?", file = "README.md")
repo |
Character. Address of repository in |
workflow |
Character. Name of the workflow. |
where |
Character. Regex pattern indicating where to insert the badge, defaults to the beginning of the target file. |
line_padding |
Character. What text should be added after the badge. |
file |
Character. Target file to be modified, defaults to |
workflow_pat |
Character. Name of the workflow to be removed, or a regex pattern that matches the workflow name. |
Both action_add_badge()
and action_remove_badge()
invisibly return a list
containing the results of the relevant GitHub API call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.