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

Method MarshalJSON

pkg/search/result.go:381–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379}
380
381func (repo Repository) MarshalJSON() ([]byte, error) {
382 return json.Marshal(map[string]any{
383 "id": repo.ID,
384 "nameWithOwner": repo.FullName,
385 "url": repo.URL,
386 "isPrivate": repo.IsPrivate,
387 "isFork": repo.IsFork,
388 })
389}
390
391// The state of an issue or a pull request, may be either open or closed.
392// For a pull request, the "merged" state is inferred from a value for merged_at and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected