You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is the correct issue but this has been happening for a few months now where the extended description box for Squash and merge is filled with all of the commit message garbage.
use delegate('textarea selector', 'change', clear) instead of observe('textarea selector', clear)
I saw that they always fire the event when it's opened:
on('details:toggled','.js-merge-pr',function(event){constcontainer=event.currentTargetconstmsgTextArea=container.querySelector('.js-merge-message')if(msgTextArea){// Trigger size-to-fit for the merge message textareafire(msgTextArea,'change')}})
I think that rather than unloading the feature, it should just check whether the field "is dirty", like GitHub does. I think this can be checked via class for now.
Activity
[-]`clear-pr-commit-message` occasionally fails[/-][+]`clear-pr-merge-commit-message` occasionally fails[/+]raiyni commentedon Dec 23, 2023
Not sure if this is the correct issue but this has been happening for a few months now where the extended description box for
Squash and mergeis filled with all of the commit message garbage.fregante commentedon Dec 23, 2023
My guess is that GitHub fills up the field a second time, but Refined GitHub does not catch that because it's the same field.
Maybe GitHub fires some event we can listen to, or we have to go back to the "open merge box" event via delegate
[-]`clear-pr-merge-commit-message` occasionally fails[/-][+]`clear-pr-merge-commit-message` fails often[/+]fregante commentedon Oct 29, 2024
I think the fix is simple:
delegate('textarea selector', 'change', clear)instead ofobserve('textarea selector', clear)I saw that they always fire the event when it's opened:
fregante commentedon Nov 1, 2024
Well well well.
clear-pr-merge-commit-messageonly once per load #6330This was an intentional change 🥲
I think that rather than unloading the feature, it should just check whether the field "is dirty", like GitHub does. I think this can be checked via class for now.