From d67c46d61fb09f6aca0b3844d2891c41cd4c9a95 Mon Sep 17 00:00:00 2001 From: xuexb Date: Sat, 14 Oct 2017 23:25:25 +0800 Subject: [PATCH] test: Update check tag --- src/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils.js b/src/utils.js index a286067..50a38f0 100755 --- a/src/utils.js +++ b/src/utils.js @@ -34,6 +34,12 @@ const utils = { } }, + getActionLog({dir, before, after, action}) { + return execSync(`cd ${dir} && FORMAT="- %s, by @%cn" +git log ${before}..${after} --no-merges --pretty=format:"$FORMAT" | grep ${action}`).toString(); + + }, + cloneRepo(url, repo) { const repoDir = path.resolve(__dirname, '../github/', repo);