Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

357 B
Raw Blame
const BUILD_TYPE_RE =
  /^[^\p{L}\p{N}]*(?:style|feat|fix|perf|refactor|release)(?:\([^\r\n)]+\))?:/iu;

const shouldBuildDesktopCanary = (subject) => BUILD_TYPE_RE.test(subject.trim());

if (require.main === module) {
  process.exitCode = shouldBuildDesktopCanary(process.argv.slice(2).join(' ')) ? 0 : 1;
}

module.exports = { shouldBuildDesktopCanary };