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

Reverse order of approve-enable #18

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Reverse order of approve-enable #18

merged 2 commits into from
Oct 4, 2024

Conversation

pbrisbin
Copy link
Member

@pbrisbin pbrisbin commented Oct 4, 2024

If our approval made the PR mergeable (aka "clean status"), then
enabling auto-merge fails.

This should actually be the case often, but we usually succeed because
we do the two actions so quickly. Presumably, GitHub's own state has not
updated yet. Sometimes it does, and we see an error about it.

Reversing the order of operations will produce the same outcome, but
should guarantee the PR is not in clean status when we enable auto-merge
(since it is waiting for our own Approve).

Fixes #15.

If our approval made the PR mergeable (aka "clean status"), then
enabling auto-merge fails.

This should actually be the case often, but we usually succeed because
we do the two actions so quickly. Presumably, GitHub's own state has not
updated yet. Sometimes it does, and we see an error about it.

Reversing the order of operations will produce the same outcome, but
should guarantee the PR is not in clean status when we enable auto-merge
(since it is waiting for our own Approve).

Fixes #15.
Copy link

github-actions bot commented Oct 4, 2024

✔️ If all status checks pass, and no other reviews are submitted, mergeabot will merge this PR after 5 day(s), on 2024-10-09.

As long as that's OK, no other action is necessary.

Copy link

github-actions bot commented Oct 4, 2024

✔️ If all status checks pass, and no other reviews are submitted, mergeabot will merge this PR the next time it runs.

As long as that's OK, no other action is necessary.

@pbrisbin pbrisbin requested a review from joris974 October 4, 2024 16:07
bin/automerge-prs Outdated Show resolved Hide resolved
bin/automerge-prs Show resolved Hide resolved
Co-authored-by: Joris Buchou <joris@freckle.com>
@pbrisbin pbrisbin merged commit 87f844f into main Oct 4, 2024
2 checks passed
@pbrisbin pbrisbin deleted the pb/flip branch October 4, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Pull request is in clean status
2 participants