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

Function ciPushBranch

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

* Returns the branch for push builds. * @return {string}

()

Source from the content-addressed store, hash-verified

111 * @return {string}
112 */
113function ciPushBranch() {
114 return isGithubActions
115 ? env('GITHUB_REF')
116 : isCircleci
117 ? env('CIRCLE_BRANCH')
118 : '';
119}
120
121/**
122 * Returns the commit SHA being tested by a push build.

Callers 1

storeBundleSizeFunction · 0.85

Calls 1

envFunction · 0.70

Tested by

no test coverage detected