UNPKG

216 BJavaScriptView Raw
1const { execSync } = require('child_process')
2
3module.exports = () => {
4 const commitMsg = execSync('git log -1 --pretty=%s').toString()
5 const skipCI = /\[skip ci\]|\[ci skip\]/.test(commitMsg)
6
7 return skipCI
8}