MCPcopy Index your code
hub / github.com/react/react / commitPendingChanges

Function commitPendingChanges

scripts/devtools/prepare-release.js:74–96  ·  view source on GitHub ↗
(previousVersion, nextVersion)

Source from the content-addressed store, hash-verified

72}
73
74async function commitPendingChanges(previousVersion, nextVersion) {
75 console.log('');
76 console.log('Committing revision and changelog.');
77 console.log(chalk.dim(' git add .'));
78 console.log(
79 chalk.dim(
80 ` git commit -m "React DevTools ${previousVersion} -> ${nextVersion}"`
81 )
82 );
83
84 if (!DRY_RUN) {
85 await exec(`
86 git add .
87 git commit -m "React DevTools ${previousVersion} -> ${nextVersion}"
88 `);
89 }
90
91 console.log('');
92 console.log(`Please push this commit before continuing:`);
93 console.log(` ${chalk.bold.green('git push')}`);
94
95 await confirmContinue();
96}
97
98async function getCommitLog(sha) {
99 let shortLog = '';

Callers 1

mainFunction · 0.85

Calls 2

execFunction · 0.85
confirmContinueFunction · 0.85

Tested by

no test coverage detected