From 5a0ef19e461595f6d9d1d67a9a663903b3b06b34 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 10:25:23 +0000 Subject: [PATCH 1/4] Initial plan From 85027b052f866ecda4a0743452a2b4c82cf05d11 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 10:29:57 +0000 Subject: [PATCH 2/4] Add GitHub Copilot setup steps configuration Co-authored-by: CertifiedWebMaster <16684345+CertifiedWebMaster@users.noreply.github.com> --- .github/copilot-setup-steps.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/copilot-setup-steps.yaml diff --git a/.github/copilot-setup-steps.yaml b/.github/copilot-setup-steps.yaml new file mode 100644 index 0000000000..5589183af7 --- /dev/null +++ b/.github/copilot-setup-steps.yaml @@ -0,0 +1,27 @@ +# 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" + fi + description: Install golangci-lint v2.5.0 if not already present in bin/ directory + + - name: Verify setup + run: | + go version + script/lint --version || echo "Lint tool installed successfully" + echo "Setup complete! Ready to build and test." + description: Verify Go and linting tools are properly installed From 3357b563e503a736db8162df0270f0432b029bb7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 10:32:28 +0000 Subject: [PATCH 3/4] Fix copilot-setup-steps.yaml based on code review feedback Co-authored-by: CertifiedWebMaster <16684345+CertifiedWebMaster@users.noreply.github.com> --- .github/copilot-setup-steps.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/copilot-setup-steps.yaml b/.github/copilot-setup-steps.yaml index 5589183af7..c3ef9eac3c 100644 --- a/.github/copilot-setup-steps.yaml +++ b/.github/copilot-setup-steps.yaml @@ -15,13 +15,14 @@ steps: 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" + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $GOLANGCI_LINT_VERSION fi - description: Install golangci-lint v2.5.0 if not already present in bin/ directory + description: Install golangci-lint v2.5.0 in bin/ directory (defaults to ./bin) - name: Verify setup run: | go version - script/lint --version || echo "Lint tool installed successfully" + BINDIR="$(git rev-parse --show-toplevel)"/bin + $BINDIR/golangci-lint --version echo "Setup complete! Ready to build and test." description: Verify Go and linting tools are properly installed From 2a793cf0e6f9607da04c45ca4443952a0639af62 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 10:34:01 +0000 Subject: [PATCH 4/4] Add error handling to copilot-setup-steps verification Co-authored-by: CertifiedWebMaster <16684345+CertifiedWebMaster@users.noreply.github.com> --- .github/copilot-setup-steps.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/copilot-setup-steps.yaml b/.github/copilot-setup-steps.yaml index c3ef9eac3c..1189b52bc8 100644 --- a/.github/copilot-setup-steps.yaml +++ b/.github/copilot-setup-steps.yaml @@ -23,6 +23,11 @@ steps: run: | go version BINDIR="$(git rev-parse --show-toplevel)"/bin - $BINDIR/golangci-lint --version - echo "Setup complete! Ready to build and test." + 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