Skip to content

[BUG]: Redirect option is not passed through... #635

Closed
@mitchcapper

Description

@mitchcapper

What happened?

Seems to be:
#611

which in theory was fixed by #612 but #612 seems to be missing any code that actually passes the redirect through, only removes it as an option on the primary object.

What is interesting is this used to work (not sure if after #612 ) octokit/octokit.js#1999 but I didn't bisect to figure out what changes stopped it from doing so.

While I could be missing something it looks like we manually build the fetch object, so I don't see how this option would be properly set other than with specifying it (see PR for this).

This specifically breaks the situation where you want to get the download URL for an artifact but not actually download it.

Versions

Octokit/request 8.1.1

Relevant log output

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as documentedreleased

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions