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 issue with enabling auto merging for PRs #250

Merged
merged 1 commit into from
Feb 16, 2021
Merged

Conversation

sorenlouv
Copy link
Owner

@sorenlouv sorenlouv changed the title Fix issue with enablign auto merging for PRs Fix issue with enabling auto merging for PRs Feb 16, 2021
@@ -79,6 +80,11 @@ export async function cherrypickAndCreateTargetPullRequest({
);
}

// make PR auto mergable
if (options.autoMerge) {
await enablePullRequestAutoMerge(options, targetPullRequest.number);
Copy link
Owner Author

Choose a reason for hiding this comment

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

@brianseeders The problem was that you were using options.pullNumber which is the pull number of the source PR (the one that was already merged in). We need the target pull request number.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I might rename options.pullNumber to option.sourcePullNumber to make this more clear.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh my gosh, that's such a silly error on my part. Thanks for investigating.

Copy link
Owner Author

Choose a reason for hiding this comment

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

No worries. Thanks for landing this in the first place.

@sorenlouv sorenlouv merged commit a7b34be into master Feb 16, 2021
@sorenlouv sorenlouv deleted the fix-aut-merge-issue branch February 16, 2021 10:55
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.

2 participants