-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Properly clear field in clear-pr-merge-commit-message
#6346
Properly clear field in clear-pr-merge-commit-message
#6346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this about? I need more information. In what scenario does cleanCommitMessage
ever return a whitespace-only string?
It could be connected with any other extension. I tried to disable user-css and user-js, still reproduces. Which additional information may help to investigate?
Screen.Recording.2023-02-15.at.13.26.52.mov |
I see, the change makes sense but the solution can be simplified. The function does not return whitespace-only strings so the issue is exclusively adding the final line break after an empty string. The solution can be simplified to: set(field, message ? message + '\n' : '') Also could you make sure that the linting step passes? |
08b4a21
to
2dd17f0
Compare
2dd17f0
to
b7cb130
Compare
clear-pr-merge-commit-message
clear-pr-merge-commit-message
Thank you Vladimir! |
I wonder if that bug is related to the one we recently faced, where pressing the merge (squash) button created a very ugly and unexpected commit message: ansible/vscode-ansible#782 It happened several times for at least two different users in the last two weeks and both of us are users of refined-github. Still, we were not able to manually reproduce the issues and the moment we see it is, usually too late to action on it. |
Ouch, that's most likely due to Refined GitHub. Can you open an issue with more details about extension version and browser? It looks like it happened in this sequence:
|
Yes, that's precisely one of the issues I described in #6547. |
Test URLs
Screenshot