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

Function deleteWorkflowRun

pkg/cmd/run/delete/delete.go:140–147  ·  view source on GitHub ↗
(client *api.Client, repo ghrepo.Interface, runID string)

Source from the content-addressed store, hash-verified

138}
139
140func 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}

Callers 1

runDeleteFunction · 0.85

Calls 3

FullNameFunction · 0.92
RESTMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected