Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "${{ matrix.config.container != '' }}"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
cache-version: copilot
Expand Down
118 changes: 0 additions & 118 deletions .github/workflows/install/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qcthat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pkgskills (development version)

* `use_github_copilot()` now uses the external, stable `api2r/actions/install@v1` composite workflow instead of the local `install` action (#84).

* `use_ai()` no longer fails when `DESCRIPTION` has no `BugReports` field; it now falls back to git remotes (`upstream` then `origin`) to construct the URL and writes it to `DESCRIPTION` automatically (#82).

* `use_github_copilot_whitelist()` configures the Copilot coding agent firewall allowlist (#79).
Expand Down
16 changes: 3 additions & 13 deletions R/use_github_copilot.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#' Install GitHub Copilot setup workflow into a project
#'
#' Installs a `copilot-setup-steps.yml` workflow and its companion reusable
#' `install` action into the project's `.github/workflows/` directory. Also
#' calls [use_github_copilot_whitelist()] to configure the coding agent firewall
#' allowlist.
#' Installs a `copilot-setup-steps.yml` workflow into the project's
#' `.github/workflows/` directory. Also calls [use_github_copilot_whitelist()]
#' to configure the coding agent firewall allowlist.
#'
#' @param overwrite (`logical(1)`) Whether to overwrite existing files. Defaults
#' to `FALSE`.
Expand Down Expand Up @@ -39,21 +38,12 @@ use_github_copilot <- function(
".github/workflows/copilot-setup-steps.yml",
overwrite
)
path_install_abs <- .path_proj_save_as(
".github/workflows/install/action.yml",
overwrite
)

.use_template_as_is(
"workflows/copilot-setup-steps.yml",
".github/workflows/copilot-setup-steps.yml",
open = open
)
.use_template_as_is(
"workflows/install/action.yml",
".github/workflows/install/action.yml",
open = FALSE
)

use_github_copilot_whitelist(allowlist = allowlist, gh_token = gh_token)

Expand Down
2 changes: 1 addition & 1 deletion inst/templates/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
cache-version: copilot
Expand Down
118 changes: 0 additions & 118 deletions inst/templates/workflows/install/action.yml

This file was deleted.

Loading
Loading