MCPcopy Index your code
hub / github.com/cli/cli / replace

Method replace

pkg/cmd/pr/shared/params.go:354–362  ·  view source on GitHub ↗
(handle string)

Source from the content-addressed store, hash-verified

352}
353
354func (r *CopilotReplacer) replace(handle string) string {
355 if !strings.EqualFold(handle, "@copilot") {
356 return handle
357 }
358 if r.returnLogin {
359 return r.copilotLogin
360 }
361 return api.CopilotActorName
362}
363
364// ReplaceSlice replaces usages of `@copilot` in a slice with Copilot's login.
365func (r *CopilotReplacer) ReplaceSlice(handles []string) []string {

Callers 1

ReplaceSliceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected