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(status), avoid showing pending-merge when an out-of-date component was merged from another lane #7285

Merged
merged 3 commits into from
Apr 20, 2023

Conversation

davidfirst
Copy link
Member

@davidfirst davidfirst commented Apr 19, 2023

The use-case is when lane-a has a component that is out of date against main. This lane is now merged into lane-b and a new snap is added to this component.
Because lane-b is not a fork of lane-a, when comparing the local vs remote for the diverge-data, we compare this component against main.
When comparing against main, the component is indeed diverged, however, it should not be in "pending merge" section of bit-status. Pending merge is only when a component is diverged against the remote scope. Not against main.
This PR fixes it by not using the default getDivergeData and instead comparing always to the remote-scope.

@davidfirst davidfirst merged commit ae6f361 into master Apr 20, 2023
@davidfirst davidfirst deleted the pening-merge-out-of-date branch April 20, 2023 00:09
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