Skip to content

Make sign-off regex more leniant#20

Merged
clokep merged 1 commit intorelease/v2from
hs/signoff-leniancy
Apr 27, 2023
Merged

Make sign-off regex more leniant#20
clokep merged 1 commit intorelease/v2from
hs/signoff-leniancy

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
Member

@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