diff --git a/github/actions_runners.go b/github/actions_runners.go index 3990a5a90f7..7427451ccfa 100644 --- a/github/actions_runners.go +++ b/github/actions_runners.go @@ -58,6 +58,7 @@ type GenerateJITConfigRequest struct { // JITRunnerConfig represents encoded JIT configuration that can be used to bootstrap a self-hosted runner. type JITRunnerConfig struct { + Runner *Runner `json:"runner,omitempty"` EncodedJITConfig *string `json:"encoded_jit_config,omitempty"` } diff --git a/github/github-accessors.go b/github/github-accessors.go index 8acb72b0420..14d0343928c 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -9398,6 +9398,14 @@ func (i *IssueStats) GetTotalIssues() int { return *i.TotalIssues } +// GetRunner returns the Runner field. +func (j *JITRunnerConfig) GetRunner() *Runner { + if j == nil || j.Runner == nil { + return nil + } + return j.Runner +} + // GetEncodedJITConfig returns the EncodedJITConfig field if it's non-nil, zero value otherwise. func (j *JITRunnerConfig) GetEncodedJITConfig() string { if j == nil || j.EncodedJITConfig == nil {