From 209ef1d3b8ca46b32146d61d37b1fb9b71e7e06c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:16:20 +0000 Subject: [PATCH] Address code review comments - Clarify comment to say "matches" instead of "matches or exceeds" - Update PR body to accurately reflect final go.mod state - Show actual toolchain if present, or note it's not specified - Provide clear explanation when toolchain is omitted Co-authored-by: williammartin <1611510+williammartin@users.noreply.github.com> --- .github/workflows/scripts/bump-go.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/scripts/bump-go.sh b/.github/workflows/scripts/bump-go.sh index a49497939..24b995b4e 100755 --- a/.github/workflows/scripts/bump-go.sh +++ b/.github/workflows/scripts/bump-go.sh @@ -66,13 +66,13 @@ cleanup() { trap cleanup EXIT # Check if we're already up to date -# Note: toolchain directive may be missing when go directive >= latest toolchain. +# Note: toolchain directive may be missing when go directive matches latest toolchain. # This is expected behavior - `go mod tidy` removes the toolchain line when -# the minimum Go version matches or exceeds the latest toolchain, as it's redundant. +# the minimum Go version matches the latest toolchain, as it's redundant. if [[ "$CURRENT_MAJOR_MINOR" = "$LATEST_MAJOR_MINOR" ]]; then # Current go directive is at the same major.minor as latest if [[ -z "$CURRENT_TOOLCHAIN_DIRECTIVE" ]]; then - # No toolchain directive present - this is expected when go version >= latest + # No toolchain directive present - this is expected when go version matches latest echo "Already on latest Go version: $CURRENT_GO_DIRECTIVE (latest toolchain: $TOOLCHAIN_VERSION)" echo " → Note: No toolchain directive (expected when go version matches latest toolchain)" exit 0 @@ -151,14 +151,25 @@ fi # ---- Push & PR -------------------------------------------------------------- # Get the actual go directive from the updated go.mod FINAL_GO_DIRECTIVE=$(grep -E '^go ' "$GO_MOD" | cut -d ' ' -f2) +FINAL_TOOLCHAIN_DIRECTIVE=$(grep -E '^toolchain ' "$GO_MOD" | cut -d ' ' -f2 || true) -PR_BODY=$(cat <