commitPendingChanges() — react Function Reference
Architecture documentation for the commitPendingChanges() function in prepare-release.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 77b3c2bf_5473_ec6b_0c57_9df4b4c3be61["commitPendingChanges()"] 497982e7_e1b1_28ad_fd0c_dc03591e3177["prepare-release.js"] 77b3c2bf_5473_ec6b_0c57_9df4b4c3be61 -->|defined in| 497982e7_e1b1_28ad_fd0c_dc03591e3177 cadb4d3f_5109_b4e0_6f72_18067565caef["main()"] cadb4d3f_5109_b4e0_6f72_18067565caef -->|calls| 77b3c2bf_5473_ec6b_0c57_9df4b4c3be61 style 77b3c2bf_5473_ec6b_0c57_9df4b4c3be61 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/devtools/prepare-release.js lines 74–96
async function commitPendingChanges(previousVersion, nextVersion) {
console.log('');
console.log('Committing revision and changelog.');
console.log(chalk.dim(' git add .'));
console.log(
chalk.dim(
` git commit -m "React DevTools ${previousVersion} -> ${nextVersion}"`
)
);
if (!DRY_RUN) {
await exec(`
git add .
git commit -m "React DevTools ${previousVersion} -> ${nextVersion}"
`);
}
console.log('');
console.log(`Please push this commit before continuing:`);
console.log(` ${chalk.bold.green('git push')}`);
await confirmContinue();
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does commitPendingChanges() do?
commitPendingChanges() is a function in the react codebase, defined in scripts/devtools/prepare-release.js.
Where is commitPendingChanges() defined?
commitPendingChanges() is defined in scripts/devtools/prepare-release.js at line 74.
What calls commitPendingChanges()?
commitPendingChanges() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free