Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Repo ranger merged immediately without waiting for passing events #1

Closed
moltar opened this issue Jun 24, 2020 · 6 comments
Closed

Repo ranger merged immediately without waiting for passing events #1

moltar opened this issue Jun 24, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@moltar
Copy link

moltar commented Jun 24, 2020

I created a PR using a CLI:

 hub pull-request -p -l "merge when passing"

image

The bot merged my PR immediately, 2 seconds after the PR was created.

I think this might be a race condition, as GitHub Actions did not start yet, and bot thought that everything was done.

Maybe the bot needs to detect checks that haven't started yet, or allow for some grace period before merging?

mfix22 added a commit to reporanger/ranger that referenced this issue Jun 26, 2020
@mfix22
Copy link
Collaborator

mfix22 commented Jun 26, 2020

@moltar sorry to hear this happened to you, and thank you for reporting it. I had not seen this issue in the past.

It does seem to me to be a race condition with GitHub actions, so I am going to add a delay to our response, and push up the fix tonight.

Give it another try whenever you have a chance, and let me know if it works. Might need to tweak our delay some more.

@mfix22
Copy link
Collaborator

mfix22 commented Jun 26, 2020

Great use of hub, by the way!

@mfix22 mfix22 added the bug Something isn't working label Jun 26, 2020
@moltar
Copy link
Author

moltar commented Jun 26, 2020

Thank you 🙏

Will try again soon!

@mfix22
Copy link
Collaborator

mfix22 commented Jun 27, 2020

Thanks @moltar! 🙏

@moltar
Copy link
Author

moltar commented Jul 3, 2020

Seems to work fine now! :)

Evidence: https://github.com/ScaleLeap/logger/pull/75

@mfix22
Copy link
Collaborator

mfix22 commented Jul 3, 2020

@moltar thank you so much for checking! ❤️

@mfix22 mfix22 closed this as completed Jul 3, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants