MCPcopy
hub / github.com/ampproject/amphtml / isPullRequestBuild

Function isPullRequestBuild

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

* Returns true if this is a PR build. * @return {boolean}

()

Source from the content-addressed store, hash-verified

63 * @return {boolean}
64 */
65function isPullRequestBuild() {
66 return isGithubActions
67 ? env('GITHUB_EVENT_NAME') === 'pull_request'
68 : isCircleci
69 ? !isCircleciPushBranch(env('CIRCLE_BRANCH'))
70 : false;
71}
72
73/**
74 * Returns true if this is a push build.

Callers 9

runCiJobFunction · 0.85
skipBundleSizeFunction · 0.85
reportBundleSizeFunction · 0.85
gitBranchCreationPointFunction · 0.85
gitBranchNameFunction · 0.85
gitCommitHashFunction · 0.85
updatePackagesFunction · 0.85
updateSubpackagesFunction · 0.85
ciBuildShaFunction · 0.85

Calls 2

isCircleciPushBranchFunction · 0.85
envFunction · 0.70

Tested by

no test coverage detected