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

Function isCircleciPushBranch

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

* Used to filter CircleCI PR branches created directly on the amphtml repo * (e.g.) PRs created from the GitHub web UI. Must match `push_builds_only` * in .circleci/config.yml. * @param {string} branchName * @return {boolean}

(branchName)

Source from the content-addressed store, hash-verified

55 * @return {boolean}
56 */
57function isCircleciPushBranch(branchName) {
58 return branchName == 'main' || /^amp-release-.*$/.test(branchName);
59}
60
61/**
62 * Returns true if this is a PR build.

Callers 2

isPullRequestBuildFunction · 0.85
isPushBuildFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected