mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
12 lines
538 B
JavaScript
12 lines
538 B
JavaScript
|
const BRANCH_REGEX =
|
||
|
/^(main|develop|(ci|chore|docs|feat|feature|fix|perf|refactor|revert|style)\/\d*(?:[-](?![-])\w*)*|Version-v\d+\.\d+\.\d+)$/;
|
||
|
|
||
|
const ERROR_MSG =
|
||
|
'This branch name does not follow our conventions.' +
|
||
|
'\n' +
|
||
|
'Rename it with "git branch -m <current-name> <new-name>"' +
|
||
|
'\n' +
|
||
|
'Here are some example branch names that are accepted: "fix/123-description", "feat/123-longer-description", "feature/123", "main", "develop", "Version-v10.24.2".';
|
||
|
|
||
|
module.exports = { pattern: BRANCH_REGEX, errorMsg: ERROR_MSG };
|