style: help menu
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const child_process = require('child_process');
|
||||
|
||||
export const getBranchInfo = () => {
|
||||
const latestCommit = child_process
|
||||
.execSync('git rev-parse HEAD')
|
||||
.toString()
|
||||
.trim();
|
||||
const versionTag = child_process
|
||||
.execSync(`git tag --contains ${latestCommit}`)
|
||||
.toString()
|
||||
.trim();
|
||||
return { version: versionTag, commitId: latestCommit };
|
||||
};
|
||||
Reference in New Issue
Block a user