Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for GitHub-hosted runner API endpoints #3487

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

atilsensalduz
Copy link

@atilsensalduz atilsensalduz commented Feb 20, 2025

This pull request introduces support for the GitHub-hosted runner API endpoints in the go-github library, addressing Issue #3461.

Changes Include:

  • Implementation of API endpoints for managing GitHub-hosted runners.
  • Support for the following operations:
  • Create a new hosted runner.
  • Update existing hosted runner details.
  • Delete a hosted runner.
  • Retrieve details of hosted runners.
  • Corresponding unit tests for each operation.

Additional Information:
API Reference: GitHub REST API: Hosted Runners.

Please let me know if any additional changes or improvements are needed!

Fixes: #3461.

Implement new methods for managing GitHub-hosted runners,
including functionalities for creating, updating, deleting, and
retrieving details about hosted runners.

References:
- GitHub REST API: https://docs.github.com/en/rest/actions/hosted-runners

Signed-off-by: atilsensalduz <[email protected]>
Copy link

google-cla bot commented Feb 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Implement new methods for managing GitHub-hosted runners,
including functionalities for creating, updating, deleting, and
retrieving details about hosted runners.

References:
- GitHub REST API: https://docs.github.com/en/rest/actions/hosted-runners

Signed-off-by: atilsensalduz <[email protected]>
@gmlewis gmlewis changed the title feat(actions): add support for GitHub-hosted runner API endpoints feat: Add support for GitHub-hosted runner API endpoints Feb 20, 2025
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.16%. Comparing base (868f897) to head (4f5c3ec).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3487      +/-   ##
==========================================
+ Coverage   91.02%   91.16%   +0.14%     
==========================================
  Files         179      181       +2     
  Lines       15561    15809     +248     
==========================================
+ Hits        14165    14413     +248     
  Misses       1223     1223              
  Partials      173      173              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @atilsensalduz !
This is looking great!
There are a few minor tweaks, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Feb 20, 2025
Implement new methods for managing GitHub-hosted runners,
including functionalities for creating, updating, deleting, and
retrieving details about hosted runners.

References:
- GitHub REST API: https://docs.github.com/en/rest/actions/hosted-runners

Signed-off-by: atilsensalduz <[email protected]>
Implement new methods for managing GitHub-hosted runners,
including functionalities for creating, updating, deleting, and
retrieving details about hosted runners.

References:
- GitHub REST API: https://docs.github.com/en/rest/actions/hosted-runners

Signed-off-by: atilsensalduz <[email protected]>
Implement new methods for managing GitHub-hosted runners,
including functionalities for creating, updating, deleting, and
retrieving details about hosted runners.

References:
- GitHub REST API: https://docs.github.com/en/rest/actions/hosted-runners

Signed-off-by: atilsensalduz <[email protected]>
Implement new methods for managing GitHub-hosted runners,
including functionalities for creating, updating, deleting, and
retrieving details about hosted runners.

References:
- GitHub REST API: https://docs.github.com/en/rest/actions/hosted-runners

Signed-off-by: atilsensalduz <[email protected]>
Implement new methods for managing GitHub-hosted runners,
including functionalities for creating, updating, deleting, and
retrieving details about hosted runners.

References:
- GitHub REST API: https://docs.github.com/en/rest/actions/hosted-runners

Signed-off-by: atilsensalduz <[email protected]>
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @atilsensalduz!
LGTM.

Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@stevehipwell - might you have time for a code review? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsReview PR is awaiting a review before merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for actions/hosted-runners endpoints
2 participants