Skip to content

Commit 181b092

Browse files
authored
Merge branch 'main' into copilot/port-upstream-pr-329
2 parents d8140d8 + 0b532c6 commit 181b092

File tree

6 files changed

+31
-6
lines changed

6 files changed

+31
-6
lines changed

.github/aw/actions-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"version": "v0.46.0",
3131
"sha": "f88ec26c65cc20ebb8ceabe809c9153385945bfe"
3232
},
33+
"github/gh-aw/actions/setup-cli@v0.48.1": {
34+
"repo": "github/gh-aw/actions/setup-cli",
35+
"version": "v0.48.1",
36+
"sha": "26b6572ae210580303087bc3142fe58d140bf65c"
37+
},
3338
"github/gh-aw/actions/setup@v0.43.23": {
3439
"repo": "github/gh-aw/actions/setup",
3540
"version": "v0.43.23",

.github/copilot-instructions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ bb test
7070
COPILOT_E2E_TESTS=true bb test
7171
```
7272

73+
**Copilot Coding Agent**: When running as a Copilot Coding Agent, `COPILOT_GITHUB_TOKEN` is set
74+
by `copilot-setup-steps.yml`. Use it to authenticate E2E tests and examples:
75+
76+
```bash
77+
export COPILOT_GITHUB_TOKEN="${COPILOT_GITHUB_TOKEN:-$GITHUB_TOKEN}"
78+
COPILOT_E2E_TESTS=true bb test
79+
./run-all-examples.sh
80+
```
81+
7382
### Instrumented Testing
7483

7584
All public API functions have `clojure.spec` fdefs defined in `instrument.clj`.

.github/workflows/copilot-setup-steps.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ jobs:
7373
# /root/ paths, so bb finds them regardless of $HOME.
7474
# Ensure deps directories are readable by any user
7575
chmod -R a+rX ~/.m2/repository ~/.deps.clj 2>/dev/null || true
76+
- name: Export Copilot token for SDK E2E tests
77+
run: |
78+
# Make the GitHub token available as COPILOT_GITHUB_TOKEN so the
79+
# Copilot SDK E2E tests and examples can authenticate with the
80+
# same token the Copilot Coding Agent uses.
81+
echo "COPILOT_GITHUB_TOKEN=${COPILOT_GITHUB_TOKEN:-$GITHUB_TOKEN}" >> "$GITHUB_ENV"
7682
- name: Install gh-aw extension
77-
uses: github/gh-aw/actions/setup-cli@v0.46.0
83+
uses: github/gh-aw/actions/setup-cli@v0.48.1
7884
with:
79-
version: v0.46.0
85+
version: v0.48.1

.github/workflows/daily-doc-updater.lock.yml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/upstream-sync.lock.yml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ prompt.md
3434
plan.md
3535
update.sh
3636

37+
session.txt

0 commit comments

Comments
 (0)