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

Method HasTemplates

pkg/cmd/pr/shared/templates.go:169–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169func (m *templateManager) HasTemplates() (bool, error) {
170 if err := m.memoizedFetch(); err != nil {
171 return false, err
172 }
173 return len(m.templates) > 0, nil
174}
175
176func (m *templateManager) LegacyBody() []byte {
177 if m.legacyTemplate == nil {

Callers 3

createRunFunction · 0.80

Calls 1

memoizedFetchMethod · 0.95

Tested by 2