Add "Wait for successful checks" checkbox#975
Conversation
I didn't get any confirmation. The tab just closed as normal. (Chrome) |
|
Otherwise, seems to work perfectly though. And this is super useful! |
Fixed. However it currently only handles tab closing or regular navigation, not ajaxed loads. I could detect it, warn the user, and abort the submission, but not ask for confirmation. Implementation suggestions? |
|
Awesome! @bfred-it Do you wanna do a tweet about this feature with the above GIF? So I can retweet. Otherwise, I will. |
|
By "Sure" I mean you can tweet it 😄 |
|
Quick feedback: This feature blocks the merge even when there's only non-required checks remaining (eg. A deploy approval that you don't need). Maybe the feature can be updated to block only while required checks are not met ? |
|
FYI, clicking the help button next to the checkbox, which I thought would show a modal box or tooltip with some info, actually took me straight to this issue, making me lose the changes to the commit message I had composed prior to the merge. Is this being tracked somewhere, or should I open an issue? |
|
Open an issue please.
…On Wed, Sep 5, 2018 at 5:58 PM Waldir Pimenta ***@***.***> wrote:
FYI, clicking the help button next to the checkbox, which I thought would
show a modal box or tooltip with some info, actually took me straight to
this issue, making me lose the changes to the commit message I had composed
prior to the merge. Is this being tracked somewhere, or should I open an
issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#975 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0WZOqg-uPiOPcqtRm59SM-xLhmSIFiks5uYFcBgaJpZM4RZXaP>
.
|
|
Can I suggest this option be unchecked by default to prevent issues like this and the one reported above? |
|
I'm confused, both screenshots show it merged, but the first kept the merge options, is that the issue? |
Yes, that's the problem: in the first screenshot, it shows it as merged, but when I opened a second tab to look at the page fresh; it wasn't merged. I clicked "merge" again in the second tab (it immediately completed the merge) then took the second screenshot. Meanwhile the first tab continued to hang without updating the "Merge" button / surrounding UI. ie; if I'd not opened a second tab, the first would have just hanged forever on the screen in the first screenshot, but never actually merge. |
|
If you can get another example, I think that'd be helpful. Both screenshots show it being merged at 21 minutes ago from the comment, which means it looks like the process did work or something odd happened on the GH side, since RGH does not add the merged commit message, but GH does. |
|
My apologies, I misunderstood the area of the screenshot you were referring to. I see now that you mean the That adds another interesting layer! To clarify the steps of what happened, I'll itemise them: 1 - Ready to mergeI saw that all my PR's checks had passed, and the I clicked 2 - Confirm mergeThe button then changed to
So I clicked 3 - WaitingThe 4 - New tabAfter reading the docs for In the new Tab, I saw the same UI from step 1: a 5 - Merge againIn the new tab, I clicked 6 - Still waitingI checked the original tab, and noticed the I'll try get more granular screenshots for the next PR I do and will report back if it happened again 👍 EDIT: A thing to note in the original tab is the (incorrect) orange dot next to the commit hash. In the new tab, that is (correctly) a green check, but in both tabs, the main "X Checks have passed" was (correctly) green. Based on earlier comments, perhaps the GH UI is flakey in updating the orange dot to a green check, perhaps there's a different indicator in the UI that Refined GH can hook into? |
|
Your walkthrough does make sense on why both screenshots show merged now. If
it does happen again, please check the console as well for any errors.
…On Wed, Sep 26, 2018, 5:51 PM Jess Telford ***@***.***> wrote:
My apologies, I misunderstood the area of the screenshot you were
referring to. I see now that you mean the jesstelford merged commit X
into Y Z minutes ago, and not the [Confirm Merge] ☑ Wait for successful
checks.
That adds another interesting layer!
To clarify the steps of what happened, I'll itemise them:
1 - Ready to merge
I saw that all my PR's checks had passed, and the [Merge] button was
green (we've configured the repo to block merging unless checks are green).
I clicked [Merge]
2 - Confirm merge
The button then changed to
[Confirm Merge] ☑ Wait for successful checks
So I clicked [Confirm Merge]
3 - Waiting
The [Confirm Merge] button greyed out, and I saw a screen like this
(note: this is an edited screenshot):
[image: Waiting for checks that are already complete]
<https://user-images.githubusercontent.com/612020/46113304-313bf880-c231-11e8-89fe-f55cd9d73aa7.png>
4 - New tab
After reading the docs for ☑ Wait for successful checks, I decided to
open the PR in a new tab because things seemed to be hanging on the
original tab.
In the new Tab, I saw the same UI from step 1: a [Merge] button. No
indication of the PR having been merged, and all checks were still green.
5 - Merge again
In the new tab, I clicked [Merge] followed by [Confirm Merge], and
instantly saw the following screen:
[image: Successful merge]
<https://user-images.githubusercontent.com/612020/46059248-c98a9c80-c1a1-11e8-9936-9f7276afc638.png>
6 - Still waiting
I checked the original tab, and noticed the [Confirm Merge] button was
still visible as if it was still waiting for a check to complete, but it
did show jesstelford merged commit X into Y Z minutes ago:
[image: Still waiting even after a merge]
<https://user-images.githubusercontent.com/612020/46059232-bc6dad80-c1a1-11e8-9631-c7000d589bfa.png>
------------------------------
I'll try get more granular screenshots for the next PR I do and will
report back if it happened again 👍
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#975 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0WZMi7J1pQVKFE8pXvJtOP_CoXTKTIks5ufAT8gaJpZM4RZXaP>
.
|





Closes #865
(previous gif)
Notes:
Caveats:
This was way more involved than I had anticipated.