Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uppercase every type of commit to avoid control words like Feat #26

Open
sergiotejon opened this issue Mar 4, 2024 · 0 comments
Open
Assignees

Comments

@sergiotejon
Copy link
Contributor

If we convert to uppercase we won't need to check everything like following:

var bcPrefix = []string{
	"BREAKING CHANGE:", "BREAKING CHANGE(",
	"breaking change:", "breaking change(",
	"Breaking change:", "Breaking change(",
	"bc:", "bc(",
	"BC:", "BC(",
	"Bc:", "Bc(",
}
var featPrefix = []string{
	"feat:", "feat(",
	"Feat:", "Feat(",
	"feature:", "feature(",
	"Feature:", "Feature(",
	"FEAT:", "FEAT(",
}
var fixPrefix = []string{
	"fix:", "fix(",
	"Fix:", "Fix(",
	"FIX:", "FIX(",
	"bug:", "bug(",
	"Bug:", "Bug(",
	"BUG:", "BUG(",
	"bugfix:", "bugfix(",
	"Bugfix:", "Bugfix(",
	"BUGFIX:", "BUGFIX(",
}
var refactorPrefix = []string{
	"refactor:", "refactor(",
	"Refactor:", "Refactor(",
	"REFACTOR:", "REFACTOR(",
}```
@sergiotejon sergiotejon self-assigned this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant