EndemolShineGroup/cz-github

View on GitHub
src/lib/validation/validateDescription.ts

Summary

Maintainability
A
0 mins
Test Coverage
import validateLowercase from './validateLowercase';

export default (input: string, answers: any) => {
  if (answers.isBreakingChange && (!input || input === '')) {
    return 'Must specify a description for breaking changes';
  }

  return validateLowercase(input);
};