MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / checkUncommittedChanges

Function checkUncommittedChanges

tooling/publish/publish.ts:55–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53};
54
55const checkUncommittedChanges = () => {
56 try {
57 const uncommittedFiles = execSync('git status --porcelain')
58 .toString()
59 .trim();
60 if (uncommittedFiles) {
61 throw new Error('Uncommitted changes detected');
62 }
63 console.log('✅ No uncommitted changes');
64 } catch (error) {
65 exit('Uncommitted changes', error);
66 }
67};
68
69const getNextVersion = (version: string, type: ReleaseType): string => {
70 const nextVersion = semver.inc(version, type);

Callers 1

mainFunction · 0.85

Calls 3

exitFunction · 0.70
toStringMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected