MCPcopy Index your code

hub / github.com/github/docs / functions

Functions802 in github.com/github/docs

↓ 517 callersFunctiontest
(suffix)
lib/get-redirect.js:190
↓ 200 callersFunctionget
( route, opts = { method: 'get', body: undefined, followRedirects: false, followAllRedirec
tests/helpers/e2etest.js:5
↓ 168 callersFunctiongetDOM
( route, { headers, allow500s, allow404 } = { headers: undefined, allow500s: false, allow404:
tests/helpers/e2etest.js:71
↓ 90 callersFunctionnext
()
script/dev-toc/generate.js:35
↓ 67 callersFunctionrenderContent
(template = '', context = {}, options = {})
lib/render-content/renderContent.js:14
↓ 58 callersFunctionuseTranslation
(namespaces: string | Array<string>)
components/hooks/useTranslation.ts:6
↓ 52 callersFunctioncheckEvent
(data, code)
tests/routing/events.js:7
↓ 49 callersMethodinit
(opts)
lib/page.js:37
↓ 34 callersFunctiongetRedirect
(uri, context)
lib/get-redirect.js:27
↓ 29 callersFunctionuseMainContext
()
components/context/MainContext.tsx:198
↓ 23 callersFunctionfrontmatter
(markdown, opts = {})
lib/frontmatter.js:276
↓ 22 callersFunctionformatLinkError
(message, links)
tests/linting/lint-files.js:291
↓ 20 callersFunctiongetApplicableVersions
(versionsObj, filepath, opts = {})
lib/get-applicable-versions.js:12
↓ 20 callersFunctionversionSatisfiesRange
(release, range)
lib/version-satisfies-range.js:5
↓ 17 callersFunctionasyncMiddleware
(fn)
middleware/index.js:79
↓ 17 callersMethodrender
()
pages/_document.tsx:32
↓ 17 callersFunctionuseVersion
()
components/hooks/useVersion.ts:9
↓ 16 callersFunctionnl
(str)
tests/unit/render-content.js:7
↓ 15 callersFunctiongetJSON
(route, opts)
tests/helpers/e2etest.js:93
↓ 14 callersFunctionparse
(tagToken)
lib/liquid-tags/data.js:10
↓ 14 callersFunctionsendEvent
({ type, version = '1.0.0', ...props }: SendEventProps)
components/lib/events.ts:100
↓ 13 callersFunctiongetMainContext
(req: any, res: any)
components/context/MainContext.tsx:115
↓ 12 callersFunctionremoveLiquidStatements
(content, release, nextOldestRelease, file)
script/helpers/remove-liquid-statements.js:20
↓ 11 callersFunctionallowIndex
(path)
tests/rendering/block-robots.js:5
↓ 11 callersFunctiondefaultCacheControl
(res)
middleware/cache-control.js:67
↓ 11 callersFunctiondup
(obj)
src/graphql/lib/validator.js:240
↓ 11 callersFunctiongetAutomatedPageContextFromRequest
(req: any)
components/context/AutomatedPageContext.tsx:27
↓ 10 callersFunctiondifference
(obj1, obj2)
src/rest/scripts/test-open-api-schema.js:156
↓ 10 callersFunctionfindPage
(href, pages, redirects)
lib/find-page.js:4
↓ 10 callersFunctiongetContent
(content)
tests/linting/lint-files.js:297
↓ 10 callersFunctiongetPathWithoutLanguage
(href)
lib/path-utils.js:21
↓ 9 callersFunctioncheckCachingHeaders
(res, defaultSurrogateKey = false, minMaxAge = 60 * 60)
tests/helpers/caching-headers.js:3
↓ 9 callersFunctiongetRest
(version, apiVersion, category, subCategory)
src/rest/lib/index.js:72
↓ 9 callersFunctiongetRoot
(languageCode)
lib/languages.js:23
↓ 9 callersFunctionparseUserAgent
(ua = navigator.userAgent)
components/lib/user-agent.ts:22
↓ 9 callersFunctionreadJsonFile
(xpath)
lib/read-json-file.js:4
↓ 9 callersMethodrenderProp
(propName, context, opts = { unwrap: false })
lib/page.js:269
↓ 8 callersFunctioncacheControlFactory
( maxAge = 60 * 60, { key = 'cache-control', public_ = true, immutable = false, maxAgeZero = false } = {}
middleware/cache-control.js:12
↓ 8 callersFunctionreadCompressedJsonFileFallback
(xpath)
lib/read-json-file.js:22
↓ 8 callersFunctionreadFrontmatter
(markdown, opts = { validateKeyNames: false, validateKeyOrder: false })
lib/read-frontmatter.js:6
↓ 8 callersFunctionsetFastlySurrogateKey
(res, enumKey, isCustomKey = false)
middleware/set-fastly-surrogate-key.js:17
↓ 8 callersFunctionuseProductLandingContext
()
components/context/ProductLandingContext.tsx:69
↓ 7 callersFunctiongetAutomatedPageMiniTocItems
( items, context, depth = 2, markdownHeading = '' )
lib/get-mini-toc-items.js:138
↓ 7 callersFunctiongetMetaContent
(name: string)
components/lib/events.ts:95
↓ 7 callersFunctiongetMiniTocItems
(html, maxHeadingLevel = 2, headingScope = '')
lib/get-mini-toc-items.js:6
↓ 7 callersFunctiongetPathWithoutVersion
(href)
lib/path-utils.js:26
↓ 7 callersFunctionremoveFPTFromPath
(path)
lib/remove-fpt-from-path.js:7
↓ 7 callersFunctionrenderContentWithFallback
(page, property, context, options)
lib/render-with-fallback.js:18
↓ 7 callersFunctionwalkFiles
(dir, ext, opts = {})
script/helpers/walk-files.js:12
↓ 6 callersFunctionmakeLanguageSurrogateKey
(langCode = null)
middleware/set-fastly-surrogate-key.js:38
↓ 6 callersFunctionmakeRequestResponse
(url, currentVersion = 'free-pro-team@latest')
tests/unit/find-page-middleware.js:12
↓ 6 callersFunctionmergeExamples
(requestExamples, responseExamples)
src/rest/scripts/utils/create-rest-examples.js:49
↓ 6 callersFunctionnoTrack
()
middleware/learning-track.js:7
↓ 6 callersFunctionparsePageSectionsIntoRecords
(page)
script/search/parse-page-sections-into-records.js:10
↓ 6 callersFunctionreadCompressedJsonFileFallbackLazily
(xpath)
lib/read-json-file.js:40
↓ 5 callersFunctionarchivedEnterpriseVersionsAssets
(req, res, next)
middleware/archived-enterprise-versions-assets.js:21
↓ 5 callersFunctioncacheAggressively
(res)
middleware/archived-enterprise-versions.js:44
↓ 5 callersFunctioncleanPreviewTitle
(title)
src/graphql/scripts/build-changelog.js:158
↓ 5 callersFunctiondataDirectory
(dir, opts = {})
lib/data-directory.js:10
↓ 5 callersFunctionexecuteWithFallback
(context, callable, fallback)
lib/render-with-fallback.js:59
↓ 5 callersFunctionfilterFiles
(tuples)
tests/linting/lint-files.js:321
↓ 5 callersFunctiongetCssTheme
(cookieValue = '')
components/hooks/useTheme.ts:73
↓ 5 callersFunctiongetVersionStringFromPath
(href, supportedOnly = false)
lib/path-utils.js:36
↓ 5 callersFunctionmemoize
(func)
lib/get-data.js:286
↓ 5 callersFunctionmockRequest
(path, { headers })
tests/unit/static-assets.js:8
↓ 5 callersFunctionmockResponse
()
tests/unit/static-assets.js:25
↓ 5 callersFunctionsetDefaultFastlySurrogateKey
(req, res, next)
middleware/set-fastly-surrogate-key.js:28
↓ 5 callersFunctionwalkFiles
(pathToWalk, ext)
script/content-migrations/use-short-versions.js:14
↓ 4 callersFunctionaddLink
(span, link_name, link_href)
script/bookmarklets/pr-link-source.js:84
↓ 4 callersMethodbuildRedirects
()
lib/page.js:138
↓ 4 callersFunctionclickDropdown
(e: React.RefObject<HTMLDivElement>)
components/guides/ArticleCards.tsx:33
↓ 4 callersMethoddestroy
()
tests/helpers/data-directory.js:85
↓ 4 callersFunctionfilenameToKey
(filename)
lib/filename-to-key.js:17
↓ 4 callersMethodgeneratePayloadHmac
* Generate a SHA256 hash of the payload using the secret * to authenticate with Hydro * @param {string} body
lib/hydro.js:77
↓ 4 callersFunctiongetComponentTheme
(cookieValue = '')
components/hooks/useTheme.ts:90
↓ 4 callersFunctiongetGraphqlVersion
(version)
src/graphql/lib/index.js:85
↓ 4 callersFunctiongetPath
(productDir, link, filename)
tests/content/category-pages.js:217
↓ 4 callersFunctionhead
(route, opts = { followRedirects: false })
tests/helpers/e2etest.js:52
↓ 4 callersFunctioninjectDoctocatLinks
(html)
tests/unit/mini-toc-items.js:11
↓ 4 callersFunctionisApiVersioned
(version)
lib/all-versions.js:123
↓ 4 callersFunctionlanguageCacheControl
(res)
middleware/cache-control.js:76
↓ 4 callersFunctionloadPageMap
(pageList)
lib/page-data.js:285
↓ 4 callersFunctionmakeHref
(root, filePath)
script/move-content.js:234
↓ 4 callersFunctionmatchesVersionString
(input)
lib/render-content/liquid.js:7
↓ 4 callersFunctionpathLanguagePrefixed
(path)
lib/languages.js:140
↓ 4 callersMethodprocess
()
src/rest/scripts/utils/webhook.js:50
↓ 4 callersFunctionsplitVersion
(version)
lib/render-content/liquid.js:14
↓ 4 callersFunctionupdateFile
(filepath, content)
src/graphql/scripts/update-files.js:155
↓ 4 callersFunctionuseProductGuidesContext
()
components/context/ProductGuidesContext.tsx:31
↓ 3 callersFunctionaddToChildren
(newPath, positions, opts)
script/move-content.js:350
↓ 3 callersFunctionblockIndex
(path)
middleware/block-robots.js:20
↓ 3 callersFunctioncatchMiddlewareError
(fn)
middleware/catch-middleware-error.js:1
↓ 3 callersFunctioncreateChangelogEntry
( oldSchemaString, newSchemaString, previews, oldUpcomingChanges, newUpcomingChanges )
src/graphql/scripts/build-changelog.js:40
↓ 3 callersFunctionformatReleases
(releaseNotes)
lib/release-notes-utils.js:9
↓ 3 callersFunctiongetChangelogCacheKey
(prefix, feedUrl)
lib/changelog.js:68
↓ 3 callersFunctiongetConditionalsToUpdate
(content)
script/enterprise-server-releases/add-ghec-to-fpt.js:112
↓ 3 callersFunctiongetContents
(owner, repo, ref, path)
script/helpers/git-utils.js:84
↓ 3 callersFunctiongetDataByDir
(dottedPath, dir, englishRoot)
lib/get-data.js:126
↓ 3 callersFunctiongetDataFilepath
(id, graphqlVersion)
src/graphql/scripts/update-files.js:108
↓ 3 callersFunctiongetExceptionRedirects
(exceptionsTxtFile)
lib/redirects/exception-redirects.js:4
next →1–100 of 802, ranked by callers