refactor(dev-infra): extract the commit message parsing function into its own file (#38429)

Extracts the commit message parsing function into its own file.

PR Close #38429
This commit is contained in:
Joey Perrott
2020-08-12 09:40:37 -07:00
committed by Andrew Scott
parent 2f53bbba20
commit afd4417a7b
6 changed files with 170 additions and 51 deletions

View File

@ -8,7 +8,8 @@
import {info} from '../utils/console';
import {exec} from '../utils/shelljs';
import {parseCommitMessage, validateCommitMessage, ValidateCommitMessageOptions} from './validate';
import {parseCommitMessage} from './parse';
import {validateCommitMessage, ValidateCommitMessageOptions} from './validate';
// Whether the provided commit is a fixup commit.
const isNonFixup = (m: string) => !parseCommitMessage(m).isFixup;