Closed matipan closed 5 years ago
@alexellis I updated with the requested changes.
To clarify how hasAnonymous
behaves. The only time we consider a commit to be anonymous is when the email address ends in noreply.github.com
. If there is no Signed-off-by
in the message the function returns true. We are still using the hasUnsigned
function to check for that particular case.
What do you think about that approach?
Your work so far is looking 💯, very good workflow and testing. Thank you.
Please could you see this note on commit messages and edit your current message?
https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md#commit-messages
Alex
Definitely. I'll fix the last commit asap, thanks for the heads up :+1:
@alexellis I just updated the commit message to follow the guidelines :+1:
Hello @matipan - can we get the description updated so that it includes a GitHub closure keyword, please? More here: https://help.github.com/en/articles/closing-issues-using-keywords
Convention is to add it in this line:
No problem @rgee0. I just updated it, thanks!
Thank you @matipan I owe you Derek swag :-)
Signed-off-by: Matias Pan matias.pan26@gmail.com
This PR adds a check for when commits have an anonymous email address.
Description
If at least one of the commits was signed with an email address that ends in
noreply.github.com
then we reply with a different comment that asks for the commit to be properly signed. This is comment that we are using(it can be changed :smile: ):Motivation and Context
How Has This Been Tested?
Unit tests for new functionality I built derek at
matipan/derek:anonymousCheck
, deployed it on my personal cluster and tested it using the following repository: matipan/test-derek Derek in action: Existing behavior was not changed:Types of changes
Checklist:
git commit -s