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

Function deleteWorkflowRun

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

Source from the content-addressed store, hash-verified

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

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