(client *api.Client, repo ghrepo.Interface, runID string)
| 138 | } |
| 139 | |
| 140 | func deleteWorkflowRun(client *api.Client, repo ghrepo.Interface, runID string) error { |
| 141 | path := fmt.Sprintf("repos/%s/actions/runs/%s", ghrepo.FullName(repo), runID) |
| 142 | err := client.REST(repo.RepoHost(), "DELETE", path, nil, nil) |
| 143 | if err != nil { |
| 144 | return err |
| 145 | } |
| 146 | return nil |
| 147 | } |