Skip to content

Commit bbc0879

Browse files
authored
Merge pull request #586 from infosiftr/commitsRefRoute
Deal with GitHub API change
2 parents 6dbb0d3 + aac78de commit bbc0879

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

versions.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ for version in "${versions[@]}"; do
103103
# ... so we use GitHub's "atom feeds" endpoint instead, which if you ask for JSON, gives back JSON 😄
104104
wget -qO- --header 'Accept: application/json' "https://github.com/golang/go/commits/$commit.atom" \
105105
| jq -r '
106-
.payload.commitGroups[].commits[]
106+
..
107+
| .commits?[]?
107108
| first([ .committedDate, .authoredDate ] | sort | reverse[]) as $date
108109
| "\(.oid) \($date)"
109110
| @sh

0 commit comments

Comments
 (0)