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

Function gitDiffCommitLog

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

* Returns a detailed log of commits included in a PR check, starting with (and * including) the branch point off of the main branch. Limited to commits in the * past 30 days to keep the output length manageable. * * @return {string}

()

Source from the content-addressed store, hash-verified

86 * @return {string}
87 */
88function gitDiffCommitLog() {
89 const branchCreationPoint = gitBranchCreationPoint();
90 const commitLog = getStdout(`git -c color.ui=always log --graph \
91--pretty=format:"%C(red)%h%C(reset) %C(bold cyan)%an%C(reset) \
92-%C(yellow)%d%C(reset) %C(reset)%s%C(reset) %C(green)(%cr)%C(reset)" \
93--abbrev-commit ${branchCreationPoint}^...HEAD --since "30 days ago"`).trim();
94 return commitLog;
95}
96
97/**
98 * Returns the list of files added by the local branch relative to the branch

Callers 1

printChangeSummaryFunction · 0.85

Calls 2

gitBranchCreationPointFunction · 0.85
getStdoutFunction · 0.85

Tested by

no test coverage detected