
Install GitHub Copilot setup workflow into a project
Source:R/use_github_copilot.R
use_github_copilot.RdInstalls a copilot-setup-steps.yml workflow into the project's
.github/workflows/ directory, installs Copilot code review instructions via
use_github_copilot_code_review(), and calls
use_github_copilot_whitelist() to configure the coding agent firewall
allowlist.
Usage
use_github_copilot(
overwrite = FALSE,
open = rlang::is_interactive(),
allowlist = default_allowlist(),
gh_token = gh::gh_token()
)Arguments
- overwrite
(
logical(1)) Whether to overwrite existing file(s). Defaults toFALSE.- open
(
logical(1)) Whether to open the file after creation.- allowlist
(
character) Hostnames to add to the GitHub Copilot coding agent firewall allowlist. Defaults todefault_allowlist(), a curated set of R and GitHub domains.- gh_token
(
character(1)) A GitHub personal access token. Defaults togh::gh_token().