-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from al/core/branch-name-lint
core: Add branch-name-lint
- Loading branch information
Showing
4 changed files
with
332 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"branchNameLinter": { | ||
"banned": ["bak", "tmp", "wip"], | ||
"disallowed": ["develop", "gh-pages", "main", "master", "staging"], | ||
"msgBranchBanned": "Branches with the name \"%s\" are not allowed.", | ||
"msgBranchDisallowed": "Pushing to \"%s\" is not allowed, use git-flow.", | ||
"msgDoesNotMatchRegex": "Branch \"%s\" does not conform to the naming pattern: \"%s\"", | ||
"msgPrefixNotAllowed": "Branch prefix \"%s\" is not allowed.", | ||
"msgPrefixSuggestion": "Instead of \"%s\" try \"%s\".", | ||
"msgseparatorRequired": "Branch name \"%s\" must contain a separator \"%s\".", | ||
"prefixes": [ | ||
"chore", | ||
"ci", | ||
"core", | ||
"doc", | ||
"experiment", | ||
"feat", | ||
"fix", | ||
"hotfix", | ||
"release", | ||
"test" | ||
], | ||
"regex": "^[a-z]+/[a-z][a-z0-9.-]*$", | ||
"regexOptions": "i", | ||
"separator": "/", | ||
"skip": [], | ||
"suggestions": { | ||
"backup": "bak", | ||
"build": "ci", | ||
"docs": "doc", | ||
"feat": "feature", | ||
"features": "feature", | ||
"releases": "release", | ||
"spec": "test", | ||
"temp": "tmp", | ||
"tests": "test", | ||
"wip": "experiment" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm run lint:branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.