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

Function gitBranchName

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

* Returns the name of the branch from which the PR originated. * @return {string}

()

Source from the content-addressed store, hash-verified

130 * @return {string}
131 */
132function gitBranchName() {
133 return isPullRequestBuild()
134 ? ciPullRequestBranch()
135 : getStdout('git rev-parse --abbrev-ref HEAD').trim();
136}
137
138/**
139 * Returns the commit hash of the latest commit.

Callers 2

printChangeSummaryFunction · 0.85
setPercyBranchFunction · 0.85

Calls 3

isPullRequestBuildFunction · 0.85
ciPullRequestBranchFunction · 0.85
getStdoutFunction · 0.85

Tested by

no test coverage detected