Skip to content
Closed
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "gh-aw workshop (terminal triggers)",
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"codespaces": {
"repositories": {
"YOUR-USERNAME/YOUR-REPO": {
"permissions": {
"actions": "write",
"workflows": "write",
"issues": "write",
"pull_requests": "write"
}
}
}
},
"vscode": {
"extensions": [
"GitHub.copilot",
"GitHub.copilot-chat"
]
}
},
"postCreateCommand": "bash .devcontainer/post-create.sh"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

if command -v code >/dev/null 2>&1; then
code --install-extension GitHub.copilot --force
code --install-extension GitHub.copilot-chat --force
else
echo "The code CLI is not available during post-create."
echo "GitHub Copilot extensions will still install from devcontainer customizations."
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "gh-aw workshop",
"image": "mcr.microsoft.com/devcontainers/universal:2",
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"GitHub.copilot-chat"
]
}
},
"postCreateCommand": "bash .devcontainer/post-create.sh"
}
10 changes: 10 additions & 0 deletions workshop/examples/devcontainers/base/.devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

if command -v code >/dev/null 2>&1; then
code --install-extension GitHub.copilot --force
code --install-extension GitHub.copilot-chat --force
else
echo "The code CLI is not available during post-create."
echo "GitHub Copilot extensions will still install from devcontainer customizations."
fi
Loading