Skip to content

Add Runner to generate-jitconfig method - #2818

Merged
gmlewis merged 2 commits into
google:masterfrom
ahmadnurus:runner-jitconfig
Jun 23, 2023
Merged

Add Runner to generate-jitconfig method#2818
gmlewis merged 2 commits into
google:masterfrom
ahmadnurus:runner-jitconfig

Conversation

@ahmadnurus

Copy link
Copy Markdown
Contributor

Provide full response for generate-jitconfig method instead of encoded_jit_config only. According to the doc there is a runner object in the API response.

why do we need it? since the generate-jitconfig API is just not generating jitconfig but also creating new self-hosted runner to the github so there is no way we can get the newly created runner id other than from this response.

cc @mkulke@gmlewis

Comment threadgithub/actions_runners.go Outdated
@gmlewis

Copy link
Copy Markdown
Collaborator

Please run go generate ./... and push (not force push) the changes.
See CONTRIBUTING.md for details.

@ahmadnurus

Copy link
Copy Markdown
ContributorAuthor

Hi @gmlewis apologize, I thought it was not reviewed yet. I have run go generate ./... as you suggest and push the changes.

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No problem, @prksu !
LGTM.
Merging after tests pass.

@codecov

codecovBot commented Jun 23, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2818 (dafc163) into master (3220fa0) will not change coverage.
The diff coverage is n/a.

@@ Coverage Diff @@## master #2818 +/- ##
=======================================
Coverage 98.05% 98.05% =======================================
Files 136 136 Lines 12263 12263 =======================================
Hits 12025 12025 Misses 162 162 Partials 76 76 
Impacted FilesCoverage Δ
github/actions_runners.go100.00% <ø> (ø)

@gmlewisgmlewis changed the title provide full response for generate-jitconfig methodAdd Runner to generate-jitconfig methodJun 23, 2023
@gmlewis
gmlewis merged commit 1e7c685 into google:masterJun 23, 2023
@ahmadnurus
ahmadnurus deleted the runner-jitconfig branch June 23, 2023 19:39
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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.

2 participants

@ahmadnurus@gmlewis