Skip to content

[BUG]: Fix ActionsSelfHostedRunnersClient Delete calls #2739

@lineville

Description

@lineville

What happened?

Calling ActionsSelfHostedRunnersClient.DeleteEnterpriseRunner, ActionsSelfHostedRunnersClient.DeleteOrganizationRunner, ActionsSelfHostedRunnersClient.DeleteRepositoryRunner throw exceptions with the following message: The value cannot be null or empty. (Parameter 'mediaType').

The source of this error is that ApiOptions are being passed in to the delete methods which don't expect this kind of object. They expect a request body type, but for these calls we can actually just omit this argument altogether. I have a fix for this that I've tested.

Versions

Octokit.net 6.2.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

    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