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

Function requestBody

pkg/cmd/run/rerun/rerun.go:243–257  ·  view source on GitHub ↗
(debug bool)

Source from the content-addressed store, hash-verified

241}
242
243func requestBody(debug bool) (io.Reader, error) {
244 if !debug {
245 return nil, nil
246 }
247 params := &RerunPayload{
248 debug,
249 }
250
251 body := &bytes.Buffer{}
252 enc := json.NewEncoder(body)
253 if err := enc.Encode(params); err != nil {
254 return nil, err
255 }
256 return body, nil
257}

Callers 2

rerunRunFunction · 0.85
rerunJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected