From aac78de5058301070b1adb2b81a7e4b04d36460f Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 18 Aug 2026 13:59:43 -0700 Subject: [PATCH] Deal with GitHub API change They've added a `commitsRefRoute` indirection to this API now. --- versions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/versions.sh b/versions.sh index 728a204b..684a1013 100755 --- a/versions.sh +++ b/versions.sh @@ -103,7 +103,8 @@ for version in "${versions[@]}"; do # ... so we use GitHub's "atom feeds" endpoint instead, which if you ask for JSON, gives back JSON 😄 wget -qO- --header 'Accept: application/json' "https://github.com/golang/go/commits/$commit.atom" \ | jq -r ' - .payload.commitGroups[].commits[] + .. + | .commits?[]? | first([ .committedDate, .authoredDate ] | sort | reverse[]) as $date | "\(.oid) \($date)" | @sh