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

Function gitCiMainBaseline

build-system/common/git.js:39–41  ·  view source on GitHub ↗

* Returns the main branch parent of the merge commit (current HEAD) during CI * builds. This is not the same as origin/ (a moving target), since * new commits can be merged while a CI build is in progress. * @return {string}

()

Source from the content-addressed store, hash-verified

37 * @return {string}
38 */
39function gitCiMainBaseline() {
40 return getStdout('git merge-base origin/main HEAD').trim();
41}
42
43/**
44 * Shortens a commit SHA to 7 characters for human readability.

Callers 4

printChangeSummaryFunction · 0.85
reportBundleSizeFunction · 0.85
setPercyTargetCommitFunction · 0.85
gitMainBaselineFunction · 0.85

Calls 1

getStdoutFunction · 0.85

Tested by

no test coverage detected