MCPcopy
hub / github.com/cli/cli / ReplaceSlice

Method ReplaceSlice

pkg/cmd/pr/shared/editable.go:204–213  ·  view source on GitHub ↗
(logins []string)

Source from the content-addressed store, hash-verified

202}
203
204func (r *SpecialAssigneeReplacer) ReplaceSlice(logins []string) ([]string, error) {
205 replaced, err := r.meReplacer.ReplaceSlice(logins)
206 if err != nil {
207 return nil, err
208 }
209 if r.actorAssignees {
210 replaced = r.copilotReplacer.ReplaceSlice(replaced)
211 }
212 return replaced, nil
213}
214
215// ProjectIds returns a slice containing IDs of projects v1 that the issue or a PR has to be linked to.
216func (e Editable) ProjectIds() (*[]string, error) {

Callers 4

createRunFunction · 0.95
AssigneeIdsMethod · 0.95
AssigneeLoginsMethod · 0.95
NewIssueStateFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected