Skip to content

Commit 4a939f8

Browse files
Copilotstephentoub
andcommitted
Add documentation comments to copilot-setup.sh
Co-authored-by: stephentoub <[email protected]>
1 parent f0547c6 commit 4a939f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/copilot-setup.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
#!/bin/bash
2+
#
3+
# GitHub Copilot Agent Setup Script
4+
#
5+
# This script is automatically executed by GitHub Copilot Agent before starting work.
6+
# It ensures the correct .NET SDK version (as specified in global.json) is installed.
7+
#
8+
# See: https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
9+
#
210
set -e
311

412
echo "=== Copilot Setup: .NET SDK Installation ==="
513

614
# Parse the SDK version from global.json
15+
# Uses GITHUB_WORKSPACE if available, otherwise uses current directory
716
GLOBAL_JSON_PATH="${GITHUB_WORKSPACE:-$(pwd)}/global.json"
817

918
if [ ! -f "$GLOBAL_JSON_PATH" ]; then

0 commit comments

Comments
 (0)