const child = require('child_process'); const latestTag = child.execSync('git describe --tags --long').toString('utf-8').split('-')[0]; const logs = child.execSync(`git log ${latestTag}..HEAD --oneline --decorate`).toString("utf-8"); logs.split("\n") .map(commit => { let sha = commit.substring(0, 8) let message = commit.substring(8).trim() console.info(`* ${message} ([${sha}](https://github.com/v2fly/v2ray-core/commit/${sha}))`) });