Skip to content

Make all formatter releases available#45

Open
j-emmel wants to merge 6 commits intoaxel-op:masterfrom
j-emmel:list-all-releases
Open

Make all formatter releases available#45
j-emmel wants to merge 6 commits intoaxel-op:masterfrom
j-emmel:list-all-releases

Conversation

@j-emmel
Copy link

@j-emmel j-emmel commented Feb 25, 2026

This action isn't able to run on Java 8 because it only sees the Github API's default of the 30 latest formatter releases. There are 42 releases currently, and the list cuts off at version 1.11.0 (JDK 11+).

This branch starts with the commits from #40, then increases the number of releases requested so any release can be used with the action:

  • when getting releases with curl, add ?per_page=100 (the maximum) to the end of everything
  • when listing releases with Octokit, use 100-length pages, and paginate

The curl version is clunky, but the API allows page length even for /latest:

I think it could be possible to use Octokit in the no-token case, too, with something like this: j-emmel@a409c3b

Resolves: #39
Resolves: #44

NickDub and others added 6 commits October 23, 2025 16:52
By default, Github's API returns 30 results per page for 'list'
requests; this cuts off old Google Java Format releases, including
any that run on Java 8.

100 is the maxmimum. There are 42 releases at time of writing, so
this happens to let them all through.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Old formatter releases aren't selectable The action no longer works since Google released v1.29.0 of "google-java-format"

2 participants