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

Struct fieldCapturingFinder

pkg/cmd/pr/edit/edit_test.go:1718–1721  ·  view source on GitHub ↗

fieldCapturingFinder records the fields a run asks the pull request lookup for, then delegates to the finder it wraps.

Source from the content-addressed store, hash-verified

1716// fieldCapturingFinder records the fields a run asks the pull request lookup
1717// for, then delegates to the finder it wraps.
1718type fieldCapturingFinder struct {
1719 shared.PRFinder
1720 fields *[]string
1721}
1722
1723func (f fieldCapturingFinder) Find(opts shared.FindOptions) (*api.PullRequest, ghrepo.Interface, error) {
1724 *f.fields = opts.Fields

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected