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

Function buildInfo

middleware/build-info.js:5–12  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

3const BUILD_SHA = process.env.BUILD_SHA
4
5export default function buildInfo(req, res) {
6 res.type('text/plain')
7 noCacheControl(res)
8 if (!BUILD_SHA) {
9 return res.status(404).send('Not known')
10 }
11 return res.send(`${BUILD_SHA}`)
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected