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

Ensure beachball properly identifies deleted change-files from same author #604

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nickymunga
Copy link
Contributor

@nickymunga nickymunga commented Sep 29, 2021

The goal of this change is to ensure that beachball properly identifies a delete/add for change files done by the same author as Deleted instead of Rename.
We're specifying a 100% threshold on the similarity index, meaning git will consider a delete/add pair a rename only if 0% of the file has changed.
Beachball is currently using the default threshold of 50%, Meaning if someone deletes a change file, then creates a new one; git will consider this a rename. & `beachball check --disallow-deleted-change-files' will fail to capture this.

Scenario:
Git History:
history

  • running beachball change with similarity index: 50% :
    beachball change with similarity index 50

  • running beachball check with similarity index: 100%
    beachball change with similarity index 100

@nickymunga nickymunga changed the title Increase git diff similarity index threshold : Ensure beachball properly identifies deleted change-files from same author Ensure beachball properly identifies deleted change-files from same author Sep 29, 2021
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.

None yet

1 participant