Skip to content
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

Wait for successful checks when using administrator privileges #1771

Closed
LeoColomb opened this issue Feb 11, 2019 · 11 comments · Fixed by #5603
Closed

Wait for successful checks when using administrator privileges #1771

LeoColomb opened this issue Feb 11, 2019 · 11 comments · Fixed by #5603

Comments

@LeoColomb
Copy link
Contributor

When using administrator privileges to merge a pull request, the wait for successful checks is not respected and the PR is directly merge.

capture d ecran 2019-02-11 a 16 27 56

@fregante
Copy link
Member

This is probably because the selector is different and the button click isn’t caught. Can you copy the whole block’s HTML and paste it here? Or maybe try submitting a PR

@fregante
Copy link
Member

The feature wasn't working correctly on regular merges too, c6a3bd2 fixes that.

Can you wait for tomorrow's RGH release and see if that works for you already?

@LeoColomb
Copy link
Contributor Author

LeoColomb commented Feb 12, 2019

You are too quick to let me submit a PR! 😉
The HTML change should be recent, I use it with success on a regular merge not so long ago.
But sure, I'll try as soon as the release is published!
Thanks! 👍

@LeoColomb
Copy link
Contributor Author

👌

@fahhem
Copy link

fahhem commented Oct 24, 2019

This seems to be happening again/still:

image

@CAFxX
Copy link

CAFxX commented Jan 29, 2020

Confirm, just happened to me again:

image

@fregante
Copy link
Member

I finally tested this. The checkbox appears but once "Confirm squash and merge" is pressed it will still be awaited as usual

@drewlustro
Copy link

This isn't working for me. PR merged without waiting for successful checks :\

@fregante
Copy link
Member

fregante commented Apr 8, 2022

Let's disable the feature when it detects this setup since it's useless here:

  • if the PR requires administrator privileges, it means the repo has branch restrictions, so it means you can add the additional "status checks" requirement
  • if you're an administrator, it means you can enable the native automerge autonomously as well

@fregante fregante reopened this Apr 8, 2022
@cheap-glitch
Copy link
Member

@fregante Can we set up something to test this? If not, we need at least some relevant HTML to make a matching exclude or something

@fregante
Copy link
Member

fregante commented Apr 9, 2022

To test this, you need to be the administrator in a repo. If you're an admin on the sandbox:

  • create a branch
  • add branch protections to that branch
  • open a PR to that branch

Otherwise you can create any new repos and do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

6 participants