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

Allow update from contribution target unless you're on it #15309

Merged
merged 2 commits into from
Sep 20, 2022

Conversation

niik
Copy link
Member

@niik niik commented Sep 19, 2022

Closes #15299

Description

This is a follow-up to #14199 which enabled updating from the contribution target's default branch instead of the default branch of the origin remote. We seem to have forgotten to update the logic for determining when such a merge is possible. Previously we deemed it possible as long as we weren't on the default branch (since the default branch was always the source of the merge) whereas now we need to look at whether we're currently on the default branch of the contribution target or not (which may be the default branch of the origin remote).

Release notes

Notes: [Fixed] Enable update from upstream default branch when contributing to a fork

Copy link
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

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

Looks good! 👏 :shipit:

@niik niik merged commit 34d391b into development Sep 20, 2022
@niik niik deleted the update-from-contribution-target branch September 20, 2022 07:03
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.

Update from upstream/master perpetually greyed out
2 participants