MCPcopy Index your code
hub / github.com/ampproject/amphtml / ciBuildSha

Function ciBuildSha

build-system/common/ci.js:233–235  ·  view source on GitHub ↗

* Returns the commit SHA being tested by a push or PR build. * @return {string}

()

Source from the content-addressed store, hash-verified

231 * @return {string}
232 */
233function ciBuildSha() {
234 return isPullRequestBuild() ? ciPullRequestSha() : ciCommitSha();
235}
236
237module.exports = {
238 ciBuildId,

Callers

nothing calls this directly

Calls 3

isPullRequestBuildFunction · 0.85
ciPullRequestShaFunction · 0.85
ciCommitShaFunction · 0.85

Tested by

no test coverage detected