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

Make sign-off regex more leniant #20

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Make sign-off regex more leniant #20

merged 1 commit into from
Apr 27, 2023

Conversation

Half-Shot
Copy link
Collaborator

This changes the sign off checker to stop assuming everyone's name is matched by [\w ]+. (cough https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ cough).

Instead, we're just going to check for the absence of whitespace and assume that reviewers will do a visual test to make sure the name looks okay.

Also dropping the requirement for < and > to wrap the email, as not everyone does it and I don't think it's a hard requirement.

This changes the sign off checker to stop assuming everyone's name is matched by `[\w ]+`. (*cough* https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ *cough*).

Instead, we're just going to check for the absence of whitespace and assume that reviewers will do a visual test to make sure the name *looks* okay. 

Also dropping the requirement for < and > to wrap the email, as not everyone does it and I don't think it's a hard requirement.
Copy link
Contributor

@clokep clokep left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

@clokep clokep linked an issue Apr 27, 2023 that may be closed by this pull request
@clokep clokep merged commit 18beaf3 into release/v2 Apr 27, 2023
@clokep clokep deleted the hs/signoff-leniancy branch April 27, 2023 12:06
@DMRobertson
Copy link
Contributor

(Released in v2.0.3, and I moved the v2 tag forward accordingly.)

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.

Sign-off workflow doesn't like hyphens in names
3 participants