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

fix(manage-merge-queue): fix PR removal from queue #574

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

danadajian
Copy link
Contributor

📝 Description

  • Should fix an issue where the removePrFromQueue() function was not being called and thus PRs were not being removed from the queue in certain scenarios.

@danadajian danadajian requested a review from a team as a code owner March 26, 2024 18:45
@danadajian danadajian enabled auto-merge (squash) March 26, 2024 18:59
@@ -116,7 +116,7 @@ const getQueuedPullRequests = async (): Promise<PullRequestList> => {

export const enableAutoMerge = async (pullRequestId: string, mergeMethod = 'SQUASH') => {
try {
return await octokitGraphql(`
await octokitGraphql(`
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing return here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just wanted to remove cases of return await since it's kind of confusing to me 😂

Copy link
Contributor

Choose a reason for hiding this comment

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

If we are not using the response returned, then yeah getting rid of return makes sense.

@danadajian danadajian merged commit 8e7f4d9 into main Mar 26, 2024
16 checks passed
@danadajian danadajian deleted the fix-await-issue branch March 26, 2024 19:20
@danadajian
Copy link
Contributor Author

🎉 This PR is included in version 1.48.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants