MCPcopy Create free account
hub / github.com/github/docs / getDeprecationStatus

Function getDeprecationStatus

src/graphql/scripts/utils/schema-helpers.js:54–58  ·  view source on GitHub ↗
(directives)

Source from the content-addressed store, hash-verified

52}
53
54function getDeprecationStatus(directives) {
55 if (!directives.length) return
56
57 return directives[0].name.value === 'deprecated'
58}
59
60async function getDescription(rawDescription) {
61 rawDescription = rawDescription.replace(singleQuotesInsteadOfBackticks, '`$1`')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected