| 520 | } |
| 521 | |
| 522 | func GetJob(client *api.Client, repo ghrepo.Interface, jobID string) (*Job, error) { |
| 523 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "actions", "jobs", jobID) |
| 524 | if err != nil { |
| 525 | return nil, err |
| 526 | } |
| 527 | |
| 528 | var result Job |
| 529 | err = client.REST(repo.RepoHost(), "GET", path.String(), nil, &result) |
| 530 | if err != nil { |
| 531 | return nil, err |
| 532 | } |
| 533 | |
| 534 | return &result, nil |
| 535 | } |
| 536 | |
| 537 | // SelectRun prompts the user to select a run from a list of runs by using the recommended prompter interface |
| 538 | func SelectRun(p Prompter, cs *iostreams.ColorScheme, runs []Run) (string, error) { |