Skip to content

[No QA] Fix bugs in isPullRequestMergeable action#6787

Merged
Julesssss merged 4 commits intomainfrom
Rory-FixIsPullRequestMergeable
Dec 16, 2021
Merged

[No QA] Fix bugs in isPullRequestMergeable action#6787
Julesssss merged 4 commits intomainfrom
Rory-FixIsPullRequestMergeable

Conversation

@roryabraham
Copy link
Contributor

@roryabraham roryabraham commented Dec 15, 2021

Details

This fixes some inaccurate logs and incorrect retry count logic in the isPullRequestMergeable action. I discovered these bugs while investigating https://expensify.slack.com/archives/C03V9A4TB/p1639596103227400. While this action isn't actually the cause of our troubles there, this PR still corrects some code that was wrong.

Fixed Issues

$ n/a

Tests

I added an automated unit test to cover this change.

Note: This test was guaranteed to take at least 3 minutes, so I added a ternary flag to speed it up for testing.

QA Steps

None.

Tested On

Jest / GitHub live testing only

@roryabraham roryabraham self-assigned this Dec 15, 2021
@roryabraham roryabraham changed the title [WIP] Fix bugs in isPullRequestMergeable action [No QA] Fix bugs in isPullRequestMergeable action Dec 15, 2021
@roryabraham roryabraham requested a review from a team December 15, 2021 23:35
@MelvinBot MelvinBot requested review from Julesssss and removed request for a team December 15, 2021 23:36
@roryabraham roryabraham marked this pull request as ready for review December 15, 2021 23:36
@roryabraham roryabraham requested a review from a team as a code owner December 15, 2021 23:36
@MelvinBot MelvinBot requested review from robertjchen and removed request for a team December 15, 2021 23:36
@roryabraham
Copy link
Contributor Author

Not sure why pullerbear got trigger-happy there

Copy link
Contributor

@robertjchen robertjchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 👍

@Julesssss Julesssss merged commit 3d18449 into main Dec 16, 2021
@Julesssss Julesssss deleted the Rory-FixIsPullRequestMergeable branch December 16, 2021 16:53
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @Julesssss in version: 1.1.21-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @sketchydroide in version: 1.1.22-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

4 participants