MCPcopy Index your code
hub / github.com/github/docs / getVersionType

Function getVersionType

src/graphql/scripts/update-files.js:151–153  ·  view source on GitHub ↗
(graphqlVersion)

Source from the content-addressed store, hash-verified

149// given a GraphQL version like `ghes-2.22`, return `ghes`;
150// given a GraphQL version like `ghae` or `dotcom`, return as is
151function getVersionType(graphqlVersion) {
152 return graphqlVersion.split('-')[0]
153}
154
155async function updateFile(filepath, content) {
156 console.log(`fetching latest data to ${filepath}`)

Callers 2

getDataFilepathFunction · 0.85
setBranchAsRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected