Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Runner to generate-jitconfig method #2818

Merged
merged 2 commits into from
Jun 23, 2023
Merged

Conversation

prksu
Copy link
Contributor

@prksu prksu commented Jun 23, 2023

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

github/actions_runners.go Outdated Show resolved Hide resolved
@prksu prksu force-pushed the runner-jitconfig branch from 52d68fd to 88736b1 Compare June 23, 2023 19:22
@prksu prksu force-pushed the runner-jitconfig branch from 88736b1 to 14f1b37 Compare June 23, 2023 19:23
@gmlewis
Copy link
Collaborator

gmlewis commented Jun 23, 2023

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

@prksu
Copy link
Contributor Author

prksu commented Jun 23, 2023

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

Copy link
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

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
@prksu prksu deleted the runner-jitconfig branch June 23, 2023 19:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants