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

fix(commitlint): allow lowercase footer keyword values #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oleorhagen
Copy link
Contributor

Signed-off-by: Ole Petter [email protected]

@oleorhagen oleorhagen requested a review from kacf April 28, 2022 07:49
@oleorhagen oleorhagen mentioned this pull request Apr 28, 2022
@@ -324,7 +324,7 @@ function lint_required_footer_values() {
function verify_changelog(changelog) {
# Strip the CHANGELOG[(fix|feat)] prefix
gsub(CHANGELOG_PREFIX, "", changelog)
if ( match(changelog, "(None|Title|Commit|All|\\S+(\\s+\\S+){2,})") == 0 ) {
if ( match(changelog, "([Nn]one|[Tt]itle|[Cc]ommit|[Aa]ll|\\S+(\\s+\\S+){2,})") == 0 ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok, but I was thinking that we can just use case insensitive matchers, like re.IGNORECASE in Python. Not sure what the awk equivalent is. In general I don't think case is significant in any of these fields.

I think this would still not allow changelog: title, for example? And same for ticket. What do you think?

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

Successfully merging this pull request may close these issues.

2 participants