test: Update check tag

This commit is contained in:
xuexb 2017-10-14 23:25:25 +08:00
parent dbfec4177e
commit d67c46d61f

View File

@ -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);