Skip to content

Add Runner to generate-jitconfig method#2818

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

Add Runner to generate-jitconfig method#2818
gmlewis merged 2 commits intogoogle: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

@gmlewis
Copy link
Copy Markdown
Collaborator

gmlewis commented Jun 23, 2023

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

@ahmadnurus
Copy link
Copy Markdown
Contributor Author

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

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.

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

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 23, 2023

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 Files Coverage Δ
github/actions_runners.go 100.00% <ø> (ø)

@gmlewis gmlewis changed the title provide full response for generate-jitconfig method Add Runner to generate-jitconfig method Jun 23, 2023
@gmlewis gmlewis merged commit 1e7c685 into google:master Jun 23, 2023
@ahmadnurus ahmadnurus deleted the runner-jitconfig branch June 23, 2023 19:39
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.

2 participants