mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-26 00:24:02 +00:00
関数いろいろ追加
This commit is contained in:
parent
01d4574c93
commit
91b14bcc14
|
@ -33,4 +33,15 @@ function getCommitDate() {
|
|||
});
|
||||
}
|
||||
|
||||
export { getCommitHash, getCommitMessage, getCommitDate }
|
||||
function getBranchName() {
|
||||
return new Promise((resolve) => {
|
||||
exec('git rev-parse --abbrev-ref HEAD', (err, stdout) => {
|
||||
if (err) {
|
||||
resolve('Something went wrong');
|
||||
}
|
||||
resolve(stdout.trim());
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export { getCommitHash, getCommitMessage, getCommitDate, getBranchName }
|
||||
|
|
Loading…
Reference in New Issue
Block a user