UNPKG
sugos-travis
Version:
latest (2.0.7)
2.0.7
2.0.6
2.0.5
2.0.4
Scripts for Travis CI
github.com/realglobe-Inc/sugos-travis
realglobe-inc/sugos-travis
sugos-travis
/
lib
/
util
/
is_empty_commit.js
12 lines
(9 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
{execSync} =
require
(
'child_process'
)
/** * 直近のコミットが空コミットなら true を返す *
@returns
{
Boolean
} */
function
isEmptyCommit
(
) {
return
execSync
(
'git diff --name-only'
).
toString
().
length
===
0
}
module
.
exports
= isEmptyCommit