-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
I often want a list of the 3 latest Ruby and Rails releases. Today this came up because I wanted to look at the CI config on Braze Ruby and see if it was in sync with the latest 3 Rubies. Here's what I found:
$ gh release list --exclude-drafts --exclude-pre-releases --repo ruby/ruby --json name | jq .[].name | sort --reverse
"3.3.6"
"3.3.5"
"3.3.4"
"3.3.3"
"3.3.2"
"3.3.1"
"3.3.0"
"3.2.6"
"3.2.5"
"3.2.4"
"3.2.3"
"3.2.2"
"3.2.1"
"3.2.0"
"3.1.6"
"3.1.5"
"3.1.4"
"3.1.3"
"3.1.2"
"3.1.1"
"3.1.0"
"3.0.7"
"3.0.6"
"3.0.5"
"3.0.4"
"2.7.8"
"2.7.7"
"2.7.6"
"2.6.9"
"2.6.10"
This is good - I can eyeball this list and see that the 3 latest Rubies are:
- 3.3.6
- 3.2.6
- 3.1.6
But it would be even better if I could filter down this list. I'd probably do this in Ruby so I'm not sure where to put this. It doesn't really fit here in the dotfiles repo and doesn't fit in jay so IDK - need a spot for this!