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
6 changes: 6 additions & 0 deletions .github/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@ RUN echo 'local({ \
RUN Rscript -e 'install.packages("pak")'
COPY install-packages.R /tmp/install-packages.R
RUN Rscript /tmp/install-packages.R && rm /tmp/install-packages.R

# GitHub Copilot's injected "Prepare Copilot" step uses `set -o pipefail` via
# `shell: sh`, which dash (Debian's default /bin/sh) doesn't support. Redirect
# /bin/sh to bash, which is already installed and is a superset of POSIX sh.
# Placed last so no apt postinst script can overwrite the symlink during build.
RUN ln -sf /bin/bash /bin/sh
2 changes: 2 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
container: ghcr.io/api2r/pkgskills-ci:release

permissions:
contents: read
Expand All @@ -24,6 +25,7 @@ jobs:

- uses: ./.github/workflows/install
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
cache-version: copilot
needs: build, check, website
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pkgskills (development version)

* `use_github_copilot()` now installs a container-based `copilot-setup-steps.yml` for faster agent startup (#67).
* `AGENTS.md` and `tdd-workflow` skill instructions now explicitly explain how to determine the GitHub issue number and warn agents never to guess or invent one (@copilot, #61).
* `use_agent()` template is reconciled with this package's `AGENTS.md` file (#59).
* `tdd-workflow` skill now documents `stbl::expect_pkg_error_snapshot()` with an explicit `package` argument instead of a helper-defined version (#51).
Expand Down
2 changes: 2 additions & 0 deletions inst/templates/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
container: ghcr.io/api2r/pkgskills-ci:release

permissions:
contents: read
Expand All @@ -24,6 +25,7 @@ jobs:

- uses: ./.github/workflows/install
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
cache-version: copilot
needs: build, check, website
Expand Down
Loading