MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / getVersionDate

Function getVersionDate

generate-release-notes-import.mjs:21–29  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

19
20// Get git tag date for a version
21function getVersionDate(version) {
22 try {
23 const output = execSync(`git log -1 --format=%aI ${version}`, { encoding: 'utf8' }).trim();
24 return output;
25 } catch (error) {
26 // If tag doesn't exist, return null
27 return null;
28 }
29}
30
31// Get all release note files and bundle versions from the current major series (includes pre-release versions)
32const releaseFiles = readdirSync("docs/releases")

Calls

no outgoing calls

Tested by

no test coverage detected