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

Function getOpenApiVersion

src/webhooks/lib/index.js:78–83  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

76}
77
78function getOpenApiVersion(version) {
79 if (!(version in allVersions)) {
80 throw new Error(`Unrecognized version '${version}'. Not found in ${Object.keys(allVersions)}`)
81 }
82 return allVersions[version].openApiVersionName
83}

Callers 1

getWebhooksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected