MCPcopy Create free account
hub / github.com/TanStack/cli / mergeBump

Function mergeBump

scripts/generate-semantic-changeset.mjs:91–96  ·  view source on GitHub ↗
(current, incoming)

Source from the content-addressed store, hash-verified

89}
90
91function mergeBump(current, incoming) {
92 const rank = { patch: 1, minor: 2, major: 3 }
93 if (!current) return incoming
94 if (!incoming) return current
95 return rank[incoming] > rank[current] ? incoming : current
96}
97
98function getChangedFiles(baseSha) {
99 const raw = runGit(`diff --name-only ${baseSha}..HEAD`)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected