MCPcopy
hub / github.com/cli/cli / requestBody

Function requestBody

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

Source from the content-addressed store, hash-verified

233}
234
235func requestBody(debug bool) (io.Reader, error) {
236 if !debug {
237 return nil, nil
238 }
239 params := &RerunPayload{
240 debug,
241 }
242
243 body := &bytes.Buffer{}
244 enc := json.NewEncoder(body)
245 if err := enc.Encode(params); err != nil {
246 return nil, err
247 }
248 return body, nil
249}

Callers 2

rerunRunFunction · 0.85
rerunJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected