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
Link to current branch in More's Compare and Commits links #2102
Link to current branch in More's Compare and Commits links #2102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦋
Processed your feedback and fixed linting. |
Fix compare detection. Add blame detection. Prioritized order.
I don't think this should affect Compare pages. The only reason why I'd use that link when already on the Compare page would be to "reset the view" Tags shouldn't be affected either, e.g. https://github.com/BrowserSync/browser-sync/releases/tag/v2.26.3, for two reasons:
|
Removed compare & tags/releases detection. |
I just saw isPRCommit too, that also should probably be dropped, it's too specific I think |
Removed PR commit detection too. |
Thanks @jerone 🍫 |
More LOC for tests, then for the real fix. 🎉😂 |
Description
Include current ref (branch or tag) in compare & commit repo links added in
more-dropdown
. Different pages required different detection to get the current ref (branch or tag).Extra
Optionally I can include the default branch, but that requires an extra API call and is not necessary.
Closes
Closes #1197.
Test