| 503 | } |
| 504 | |
| 505 | func 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 |
| 518 | func SelectRun(p Prompter, cs *iostreams.ColorScheme, runs []Run) (string, error) { |