-
Notifications
You must be signed in to change notification settings - Fork 78
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
sign-offs hung up on old user account #39
Comments
Hiya! Just commented in envoyproxy/envoy#1743 (comment) but basically, as long as the git config is set to the correct email, say email a. As long as the commit is signed with email a, the bot should correctly approve the commit. |
Hey, thanks for the quick response!
I just rebased, signed with that account, and force pushed envoyproxy/envoy@75c2374 to envoyproxy/envoy#1768, but it's still reporting:
Anything else to try? |
Ah, you're completely right, I was able to recreate this here: probot/test#24. This is definitely an issue on our end. This is not behavior I expect, but it appears to be due to our use of the GitHub API here: https://developer.github.com/v3/repos/commits/#compare-two-commits The API call we're using has this data: "commit": {
"author": {
"name": "Monalisa Octocat",
"email": "support@github.com",
"date": "2011-04-14T16:00:49Z"
},
"committer": {
"name": "Monalisa Octocat",
"email": "support@github.com",
"date": "2011-04-14T16:00:49Z"
}
} We do our checks using When you rebase, the committer email is probably the one that gets updated, and I think it should be the one we use. So, I think on our end we should swap to |
Nice find! Another test potentially worth running would be to specify the But using |
It would be my suspicion that that would work! Not super familiar with all the rebase options, so I didn't even realize you could update the author 🙇 let me know if that works! |
Just tried this but it didn't appear to update the check. In my commit message, I specified the following but it's still using the old author:
|
Hmm I believe it's because you need to use |
Excellent, this workaround should unblock the linked PR! Just to be clear, the steps to change the author were:
|
Yes! To clarify, the For the purposes of the future, I'm somewhat unsure of whether the DCO should be based on the author or the committer, so I'd be open to input from some of the linux folks who use the bot on what they think. |
Ok that makes sense, I was able work around this by amending the author on my commit. I'll leave this issue open since it sounds like there's some discussion to take place. Thanks again @hiimbex 😄 |
👍 Great catch! Sounds good to me. |
Signed-off-by: bndw <benjamindwoodward@gmail.com>
Is this still relevant? If so, please comment with any updates or addition details. |
Looks like people are still hitting this issue, but I'm not able to allocate anymore time to it. |
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
It seems that there may be a situation in which this bot uses the user/email from a previously replaced commit. This seems to be happening over on envoyproxy/envoy#1743
Here's how we got in this state:
user a
user b
user a
, even though the commit is now signed withuser b
.The text was updated successfully, but these errors were encountered: