MCPcopy Index your code
hub / github.com/cli/cli / GetJob

Function GetJob

pkg/cmd/run/shared/shared.go:505–515  ·  view source on GitHub ↗
(client *api.Client, repo ghrepo.Interface, jobID string)

Source from the content-addressed store, hash-verified

503}
504
505func GetJob(client *api.Client, repo ghrepo.Interface, jobID string) (*Job, error) {
506 path := fmt.Sprintf("repos/%s/actions/jobs/%s", ghrepo.FullName(repo), jobID)
507
508 var result Job
509 err := client.REST(repo.RepoHost(), "GET", path, nil, &result)
510 if err != nil {
511 return nil, err
512 }
513
514 return &result, nil
515}
516
517// SelectRun prompts the user to select a run from a list of runs by using the recommended prompter interface
518func SelectRun(p Prompter, cs *iostreams.ColorScheme, runs []Run) (string, error) {

Callers 2

runRerunFunction · 0.92
runViewFunction · 0.92

Calls 3

FullNameFunction · 0.92
RESTMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected