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

Method ReplaceSlice

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

Source from the content-addressed store, hash-verified

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