Skip to content
Merged
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
33 changes: 33 additions & 0 deletions .github/copilot-setup-steps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# GitHub Copilot Setup Steps
# This file defines the environment setup steps that GitHub Copilot coding agent
# should perform before working on tasks in this repository.

name: Setup GitHub MCP Server Development Environment
steps:
- name: Install Go dependencies
run: go mod download
description: Download all Go module dependencies required for the project

- name: Install golangci-lint
run: |
BINDIR="$(git rev-parse --show-toplevel)"/bin
BINARY=$BINDIR/golangci-lint
GOLANGCI_LINT_VERSION=v2.5.0

if [ ! -f "$BINARY" ]; then
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $GOLANGCI_LINT_VERSION

Copilot AI Jan 13, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $GOLANGCI_LINT_VERSION should be quoted to prevent potential word splitting or globbing issues. The corresponding code in script/lint line 11 uses quotes: sh -s "$GOLANGCI_LINT_VERSION". This ensures consistent behavior even if the variable contains spaces or special characters.

Suggested change
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $GOLANGCI_LINT_VERSION
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GOLANGCI_LINT_VERSION"

Copilot uses AI. Check for mistakes.
fi
description: Install golangci-lint v2.5.0 in bin/ directory (defaults to ./bin)

- name: Verify setup
run: |
go version
BINDIR="$(git rev-parse --show-toplevel)"/bin
if [ -f "$BINDIR/golangci-lint" ]; then
$BINDIR/golangci-lint --version
echo "Setup complete! Ready to build and test."
else
echo "Error: golangci-lint installation failed"
exit 1
fi
description: Verify Go and linting tools are properly installed
Loading