Skip to content

Update #get_all_tags to only return tags that are for commits on the current branch's history #770

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

Conversation

douglasmiller
Copy link
Contributor

I've encountered a scenario where my repository has multiple branches for different versions of the library. Each major version has a branch that started off as an orphan branch.

This causes issues for me when generating the change log because the Full Changelog links sometimes reference a tag from the 2.x branch when I'm generating the change log for the 3.x branch.

This PR addresses that issue by modifying the #get_all_tags method to only include tags that are for commits that exist in the current branch's commits.

@douglasmiller douglasmiller changed the title Update #get_all_tags to only return tags that are for commits on the current branch Update #get_all_tags to only return tags that are for commits on the current branch's history Apr 17, 2020
@douglasmiller
Copy link
Contributor Author

Would it be possible to have a review of this? The issue that it resolves is a blocker for me being able to use the officially published gem and I think that it's a legitimate bug in the handling of orphan branches.

@douglasmiller douglasmiller force-pushed the in-branch-tags branch 2 times, most recently from 26266c0 to 6f5460d Compare May 15, 2020 15:21
@bhelx
Copy link

bhelx commented May 21, 2020

Would be great to get this merged. We've tested the branch and it works. This is affecting us as well. Thank you!

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