UNPKG

check-tag-matches

Version:
11 lines (8 loc) 250 B
'use strict' const getGitHeadTagsFactory = ({ childProcess, isTrue }) => () => childProcess.execSync('git tag --points-at HEAD', { stdio: [] }) .toString() .split('\n') .filter(isTrue) module.exports = getGitHeadTagsFactory