Skip to content

feat: Add ListRunnerGroupHostedRunners for org runner groups#4100

Merged
gmlewis merged 2 commits intogoogle:masterfrom
austenstone:add-list-runner-group-hosted-runners
Mar 17, 2026
Merged

feat: Add ListRunnerGroupHostedRunners for org runner groups#4100
gmlewis merged 2 commits intogoogle:masterfrom
austenstone:add-list-runner-group-hosted-runners

Conversation

@austenstone
Copy link
Copy Markdown
Contributor

Summary

Implement GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners endpoint to list GitHub-hosted runners in an organization runner group.

This was the only missing endpoint from the self-hosted runner groups API.

Changes

  • actions_runner_groups.go: Add ListRunnerGroupHostedRunners method to ActionsService
  • actions_runner_groups_test.go: Add full test coverage with JSON fixtures
  • github-iterators.go: Auto-generated ListRunnerGroupHostedRunnersIter via go generate
  • github-iterators_test.go: Auto-generated iterator test

API Reference

Testing

  • Unit tests pass (21/21 in runner groups test file)
  • Verified against live API (octodemo org, runner group ID 1) — returns 36 hosted runners with correct deserialization

Implement GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners
endpoint to list GitHub-hosted runners in an organization runner group.

This was the only missing endpoint from the self-hosted runner groups API.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.68%. Comparing base (657976b) to head (4c46ef3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4100      +/-   ##
==========================================
+ Coverage   93.67%   93.68%   +0.01%     
==========================================
  Files         211      211              
  Lines       19478    19511      +33     
==========================================
+ Hits        18246    18279      +33     
  Misses       1034     1034              
  Partials      198      198              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis changed the title Add ListRunnerGroupHostedRunners for org runner groups feat: Add ListRunnerGroupHostedRunners for org runner groups Mar 17, 2026
@gmlewis gmlewis added NeedsReview PR is awaiting a review before merging. labels Mar 17, 2026
Copy link
Copy Markdown
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, @austenstone!
One tweak, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra - @munlicode

Comment thread github/actions_runner_groups.go Outdated
@munlicode
Copy link
Copy Markdown
Contributor

LGTM

Copy link
Copy Markdown
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, @austenstone and @munlicode!
LGTM.
Merging.

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Mar 17, 2026
@gmlewis gmlewis merged commit 247ddc3 into google:master Mar 17, 2026
6 checks passed
@austenstone austenstone deleted the add-list-runner-group-hosted-runners branch March 17, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants