Skip to content

[BUG]: octokit.repos.listReleases() does not list all releases #2909

@eregon

Description

@eregon

What happened?

See ruby/setup-ruby#826
Even though the step:

Run gh release edit "v20251117.190611" --draft=false
https://github.com/ruby/ruby-dev-builder/releases/tag/v20251117.190611

succeeded, a call in the next step to octokit.repos.listReleases() did not list that release.

That in turn can lead to severe bugs.

I also tried updating dependencies (to @octokit/core 5.2.2 as a dependency of @actions/github@^6.0.1) but that didn't help:
https://github.com/eregon/keep-last-n-releases/actions/runs/19442944621/job/55630473093
In that log v0.4.test-prerelease-tag-kept-19442944621 is not seen as a release even though it is.

Versions

@octokit/core 5.1.0 as a dependency of @actions/github@^6.0.0 on Node 20.

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions