-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Regex validation for description #69
Comments
Hi @denis-ev, thank you for the report. I think I'd need a bit more information here.
Why shouldn't I'm also not sure what that log represents? It seems like you're using a different Github action there. What is it exactly that you want to achieve and what behaviour of this action doesn't allow you to do that? |
Hey @amannn, It would be great if you could do that too, or if its an optional ENV, that might help others too.
|
Thanks for the additional information!
Interesting, you're right – the description always starts lowercase. There's however one exception:
Are you sure that you'd also want to disallow this? I had a look at the Conventional Commits spec and it seems like there are no restrictions on what characters the description can contain. I guess what we could do is to allow for providing an additional env param (like you suggested), but I think I'd make it a bit more generic by allowing a regex. E.g. to disallow uppercase characters at the beginning of the description you could configure:
|
Well, I do have uppercase letters in mine too, mine just fails sometimes when the description starts uppercase. I love the That be awesome if you could do that. btw this is a project, I'm mainly use it with https://github.com/VivumLab/VivumLab If this regex works, I'm happy. haha |
Ok, I see – then it's only about the first character of the description. The pattern will validate against the description only, so this should do: https://regex101.com/r/D1cmbd/9 |
Well that works for me too. Awesome, thanks. |
@amannn |
Oh, don't worry – take your time 😃. I already tested it a bit and it seems to work as expected. I'm not sure if there's any way how you'd be able to test the state of the pending PR to be honest. But a second pair of eyes on the code could be helpful if you like 🙂. |
Haha, yeah you can easily test it. This works really well btw.
|
Oh right, totally forgot about that! Good idea 🙂 |
@denis-ev So, good to go from your perspective then? |
Ok, thanks! Just released this in v.3.1.0. |
Perfect, thank you.
… On 11. Jan 2021, at 21:10, Jan Amann ***@***.***> wrote:
Ok, thanks! Just released this in v.3.1.0.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Check does not fail when PR Title looks like:
feat: Add something
but it should fail, semantic release does not allow it. This is only valid for the first letter after feat:
After that it does not matter if there is a upper-case letter.
The text was updated successfully, but these errors were encountered: