Skip to content

Fix ActionsSelfHostedRunnersClient Delete Calls#2740

Merged
nickfloyd merged 6 commits intooctokit:mainfrom
lineville:fix-self-hosted-runner-client
Jul 5, 2023
Merged

Fix ActionsSelfHostedRunnersClient Delete Calls#2740
nickfloyd merged 6 commits intooctokit:mainfrom
lineville:fix-self-hosted-runner-client

Conversation

@lineville
Copy link
Contributor


Behavior

Before the change?

  • Calls to all of the Delete___Runner methods would throw an exception caused by passing the wrong kind of Object to the underlying Delete call. We we're previously passing ApiOptions which are the wrong type and not relevant.

After the change?

  • Calls to all of the Delete___Runner methods succeed.
  • Calls to the Create__Token methods allow for passing a CancellationToken and still succeed.

Other information


Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Please add the corresponding label for change this PR introduces:

  • Bugfix: Type: Bug
  • Feature/model/API additions: Type: Feature
  • Updates to docs or samples: Type: Documentation
  • Dependencies/code cleanup: Type: Maintenance

@nickfloyd nickfloyd added the Type: Bug Something isn't working as documented label Jul 5, 2023
Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM ❤️. Thanks for the 🏕️ work on the comments and descriptions as well.

@nickfloyd nickfloyd merged commit 0c901dc into octokit:main Jul 5, 2023
Lulalaby referenced this pull request in Fortunevale/ProjectMakoto Jul 6, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [Octokit](https://togithub.com/octokit/octokit.net) | nuget | major |
`6.2.1` -> `7.0.1` |

---

### Release Notes

<details>
<summary>octokit/octokit.net (Octokit)</summary>

###
[`v7.0.1`](https://togithub.com/octokit/octokit.net/releases/tag/v7.0.1)

#### What's Changed

##### Fixes

- Fix ActionsSelfHostedRunnersClient Delete Calls by
[@&#8203;lineville](https://togithub.com/lineville) in
[https://github.com/octokit/octokit.net/pull/2740](https://togithub.com/octokit/octokit.net/pull/2740)

##### Dependencies

- build(deps): bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/octokit/octokit.net/pull/2741](https://togithub.com/octokit/octokit.net/pull/2741)

**Full Changelog**:
octokit/octokit.net@v7.0.0...v7.0.1

###
[`v7.0.0`](https://togithub.com/octokit/octokit.net/releases/tag/v7.0.0)

#### What's Changed

##### Breaking changes

- Fix DeploymentStatus IDs Overflowing by
[@&#8203;Cyberboss](https://togithub.com/Cyberboss) in
[https://github.com/octokit/octokit.net/pull/2736](https://togithub.com/octokit/octokit.net/pull/2736)

##### Features

- Add Waiting to WorkflowJobStatus by
[@&#8203;vuryleo](https://togithub.com/vuryleo) in
[https://github.com/octokit/octokit.net/pull/2732](https://togithub.com/octokit/octokit.net/pull/2732)

#### New Contributors

- [@&#8203;vuryleo](https://togithub.com/vuryleo) made their first
contribution in
[https://github.com/octokit/octokit.net/pull/2732](https://togithub.com/octokit/octokit.net/pull/2732)

**Full Changelog**:
octokit/octokit.net@v6.2.1...v7.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Fortunevale/ProjectMakoto).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2In0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG]: Fix ActionsSelfHostedRunnersClient Delete calls

2 participants