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
{{ message }}
Repository navigation
update-pr-from-base-branch sometimes duplicates native functionality #5586
Since the mergeability box is slower than our feature, I'd rather not have to wait for it, but we can improve the situation:
on click, if a "Resolve conflict" is present and is clickable, we should .click() it instead of using the API. This is a must because our API call just throws an error anyway:
if at any time we encounter a "Update branch" button, we should "forever" disable the feature on the current repo. This can be done on a "best effort" basis, for example we can check:
on load, if the mergeability box ever happens to load before us
on click (either on our link or their button)
It can be a simple void isExistenceMeaningful() call in both cases that calls cache.set for the next page load (we do this for the hotfix as well)
Screenshot
Side note: here the button is disabled, so we can ignore it, we can't do it better.
Activity
fregante commentedon Apr 11, 2022
We already have a check for the button, but that is also in "best effort"
refined-github/source/features/update-pr-from-base-branch.tsx
Lines 68 to 71 in 2ff6708
Is it possible to detect conflicts via this API call? Ideally we should not show it at all in that case:
refined-github/source/features/update-pr-from-base-branch.tsx
Line 54 in 2ff6708
As an unrelated and simpler change, I'd also use our toast to show the progress and error here.