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

[rush] Skip determining merge base if given git hash #4592

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

kenrick95
Copy link
Contributor

@kenrick95 kenrick95 commented Mar 21, 2024

Summary

Fixes #4589

Details

In libraries/rush-lib/src/logic/ProjectChangeAnalyzer.ts, I added a logic to skip determining merge base if the given "targetBranchName" is already a git commit hash

How it was tested

I tested the local build against my own repro in #4589 and it works as expected. However I'd like some advise too on how to write test for this change.

Impacted documentation

N/A

@iclanton iclanton changed the title Skip determining merge base if given git hash [rush] Skip determining merge base if given git hash Mar 25, 2024
@octogonz octogonz merged commit 5d9c506 into microsoft:main Apr 23, 2024
5 checks passed
@kenrick95 kenrick95 deleted the kenrick/skip-merge-base branch April 24, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

[rush] Rush shouldn't need to determine the merge base if commit hash has been provided
4 participants