clear-pr-merge-commit-message - Preserve "Signed-off-by" lines#9336
clear-pr-merge-commit-message - Preserve "Signed-off-by" lines#9336fregante merged 3 commits intorefined-github:mainfrom
clear-pr-merge-commit-message - Preserve "Signed-off-by" lines#9336Conversation
|
As for the first Co-authored-by line, I always found that to be noise, together with what Copilot does. In a future PR I'd probably like to detect them and drop them on PRs that are already authored by them. What do you think? |
I agree with you, and I will gladly take up your offer to contribute further and put together more PRs! :) Do we have a helper somewhere to find who the author of a PR is? Edit: I'm guessing yes, since one of the features IIRC, does check and adds "Now you can release this change" Edit 2: okay, we can probably export this: refined-github/source/github-helpers/index.ts Lines 211 to 216 in 78ebd32 cleanCommitMessage.
|
|
Yes, so I think it's only safe to handle these two bots explicitly. There's no straightforward way to match the email to the user without API. There's only exception would be those "privacy emails" that do include the username. We can also drop those if they match the PR author. |
|
Okay, sounds great. If I understand correctly, privacy emails of the format |
|
If that's the case, then yes.
That's all. |
clear-pr-merge-commit-message - Preserve "Signed-off-by" lines
Hi! This PR addresses one part of #9330 by not removing "Signed-off-by" lines (which are usually required by DCO). I've added some test cases too, which were fairly straightforward.
Test URLs
Tested on Dependabot's PRs opened on one of the projects I help maintain: pyodide/pyodide-cli#60
Screenshot