Skip to content

Commit 03fcee1

Browse files
feat: Add missing Runner response fields runner_group_id, ephemeral, version
The self-hosted runner schema (returned by GenerateJITConfig via JITRunnerConfig, and by the runner list/get endpoints) includes runner_group_id, ephemeral, and version, which were missing from the Runner struct. Add them to match the schema. All three are optional, so this is a non-breaking, additive change. Accessors are regenerated accordingly.
1 parent 74585ec commit 03fcee1

3 files changed

Lines changed: 66 additions & 6 deletions

File tree

‎github/actions_runners.go‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,15 @@ func (s *ActionsService) CreateRegistrationToken(ctx context.Context, owner, rep
130130

131131
// Runner represents a self-hosted runner registered with a repository.
132132
type Runner struct {
133-
ID *int64 `json:"id,omitempty"`
134-
Name *string `json:"name,omitempty"`
135-
OS *string `json:"os,omitempty"`
136-
Status *string `json:"status,omitempty"`
137-
Busy *bool `json:"busy,omitempty"`
138-
Labels []*RunnerLabels `json:"labels,omitempty"`
133+
ID *int64 `json:"id,omitempty"`
134+
RunnerGroupID *int64 `json:"runner_group_id,omitempty"`
135+
Name *string `json:"name,omitempty"`
136+
OS *string `json:"os,omitempty"`
137+
Status *string `json:"status,omitempty"`
138+
Busy *bool `json:"busy,omitempty"`
139+
Labels []*RunnerLabels `json:"labels,omitempty"`
140+
Ephemeral *bool `json:"ephemeral,omitempty"`
141+
Version *string `json:"version,omitempty"`
139142
}
140143

141144
// RunnerLabels represents a collection of labels attached to each runner.

‎github/github-accessors.go‎

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎github/github-accessors_test.go‎

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)