MCPcopy
hub / github.com/github/docs / getChangelogMiniTocs

Function getChangelogMiniTocs

src/graphql/lib/index.js:78–83  ·  view source on GitHub ↗
(items, context, depth = 2, markdownHeading = '')

Source from the content-addressed store, hash-verified

76}
77
78export async function getChangelogMiniTocs(items, context, depth = 2, markdownHeading = '') {
79 if (!changelog.has('toc')) {
80 changelog.set('toc', await getAutomatedPageMiniTocItems(items, context, depth, markdownHeading))
81 }
82 return changelog.get('toc')
83}
84
85function getGraphqlVersion(version) {
86 if (!(version in allVersions)) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected