MCPcopy Index your code
hub / github.com/SignTools/SignTools / Trigger

Method Trigger

src/builders/github.go:42–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (g *GitHub) Trigger() error {
43 body := github.CreateWorkflowDispatchEventRequest{
44 Ref: g.data.Ref,
45 Inputs: nil,
46 }
47 response, err := g.client.Actions.CreateWorkflowDispatchEventByFileName(g.ctx, g.data.OrgName, g.data.RepoName, g.data.WorkflowFileName, body)
48 if err != nil {
49 return err
50 }
51 return util.Check2xxCode(response.StatusCode)
52}
53
54func (g *GitHub) GetStatusUrl() (string, error) {
55 return fmt.Sprintf("https://github.com/%s/%s/actions/workflows/%s", g.data.OrgName, g.data.RepoName, g.data.WorkflowFileName), nil

Callers

nothing calls this directly

Calls 1

Check2xxCodeFunction · 0.92

Tested by

no test coverage detected