-
Notifications
You must be signed in to change notification settings - Fork 934
Signed-off-by error #59
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
Comments
I think I do not understand the actual problem, could you elaborate? |
Yeah, basically if you require signoff and do a commit with If you then go and edit that commit via either of the above methods it fails the commitlint rule saying it must be signed off. Which is a little weird, since the Signed-off-by: text is obviously in the commit message at that point. |
Could you provided the input and error output? Helps me with researching this later on. |
@adam-moss As I personally do not use signoff, this is not actionable for me without detailed steps to reproduce. Are you still interested in this? |
Yes, sorry, let me dig out the details for you, I totally forgot to send them on! |
@adam-moss Any news? Without further information I'd close this. |
Yes. So basically in you create an empty folder,
Then
However if you
Which you can also see if you just do a So the signoff is there, but an error is still being raised. |
Thanks, the test case helps a lot! |
I added a test for this here: https://github.com/marionebl/commitlint/blob/949579ccf1d30af66681208f0bbba07ea14d7597/%40commitlint/cli/src/cli.test.js#L171 Your example uses the rule without value:
while the test case uses Any chance the issue goes away when changing your config accordingly? |
Thought I was going to have a total facepalm moment there! It partially resolves it: Adding Cheers |
Can reproduce that. The problem here is that commitlint uses the contents of I think that is something |
Yes, I'd agree with your assessment, ticket closed 👍 |
Fancy meeting you here, @adam-moss ... I resorted to |
Hehe, it was my MR that added the functionality 😇 |
I've identified an error when using the signed-off-by key, when
git commit --amend --no-edit
orgit commit --amend
with or without the--signoff
option is being used, followinggit commit --signoff
event. Haven't had a chance to look at it yet but it is a little odd since it is part of the commit message itself...The text was updated successfully, but these errors were encountered: