Skip to content

Commit 4e15cac

Browse files
Add cli
1 parent 42f7577 commit 4e15cac

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
"ghcr.io/devcontainers/features/sshd:1": {
2424
"version": "latest"
2525
}
26+
},
27+
"customizations": {
28+
"codespaces": {
29+
"repositories": {
30+
"github/gh-runtime-cli": {
31+
"permissions": {
32+
"contents": "read",
33+
"packages": "read"
34+
}
35+
}
36+
}
37+
}
2638
}
2739
}
2840

.devcontainer/onCreate.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ echo "Installing the GitHub CLI"
1212
&& sudo apt update \
1313
&& sudo apt install gh inotify-tools -y
1414

15+
echo "Installing the GitHub CLI Runtime extension"
16+
# if the GITHUB_USER is monalisa, then install the plugin from the local folder
17+
if [ "$GITHUB_USER" = "monalisa" ]; then
18+
cd ./gh-runtime-cli
19+
gh extension install .
20+
else
21+
gh extension install github/gh-runtime-cli
22+
fi
23+
24+
echo "Adding an alias for the GitHub CLI Runtime extension"
25+
gh alias set runtime runtime-cli
26+
1527
echo "Downloading the latest release of workbench-template from GitHub"
1628

1729
GITHUB_PAT="$RELEASE_PAT"

0 commit comments

Comments
 (0)