MCPcopy Create free account
hub / github.com/cli/cli / deleteWorkflowRun

Function deleteWorkflowRun

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

Source from the content-addressed store, hash-verified

137}
138
139func deleteWorkflowRun(client *api.Client, repo ghrepo.Interface, runID string) error {
140 path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "actions", "runs", runID)
141 if err != nil {
142 return err
143 }
144 err = client.REST(repo.RepoHost(), "DELETE", path.String(), nil, nil)
145 if err != nil {
146 return err
147 }
148 return nil
149}

Callers 1

runDeleteFunction · 0.85

Calls 6

JoinPathFunction · 0.92
RepoOwnerMethod · 0.65
RepoNameMethod · 0.65
RESTMethod · 0.65
RepoHostMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected