-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Improve latest-tag-button’s reliability
#3199
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
Improve latest-tag-button’s reliability
#3199
Conversation
Get only the last 20
|
@fregante just double checking were going with v2? |
Co-authored-by: Fregante <opensource@bfred.it>
|
I think we should up it to 34-35 that is one page of commits. |
Co-authored-by: Fregante <opensource@bfred.it>
latest-tag-button’s reliability
|
I have a few questions:
|
Refer to #2927 (comment) After all, the point of this information is to know whether we're on the latest commit. Anything above +20 (or missing/incorrect information) isn't particularly useful.
Sure.
👍
Refer to #3197 (comment) This way we get the exact match if it's within the last 10/20/whatever commits, and if not, we don't have to guess, we just display "+". 20.6.4+ |
I was thinking of any repo that does not do squash and merge 20 is a bit short. (But you can argue that 35 won't help) Back on topic I Updated first post with pictures I think the compare link should only show on |
Co-authored-by: Fregante <opensource@bfred.it>
Co-authored-by: Fregante <opensource@bfred.it>
fregante
left a comment
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.
Works great!
| if (pageDetect.isRepoRoot()) { | ||
| const compareLink = ( | ||
| <a | ||
| className="btn btn-sm btn-outline tooltipped tooltipped-ne" | ||
| href={`/${getRepoURL()}/compare/${latestTag}...${defaultBranch}`} | ||
| aria-label={`Compare ${latestTag}...${defaultBranch}`} | ||
| > | ||
| <DiffIcon/> | ||
| </a> | ||
| ); | ||
| groupButtons([link, compareLink]); |
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.
Can you move this to a new PR?
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.
Yes
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.
Done want me to redo the first post screen shots?
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.
Done want me to redo the first post screen shots?
They're kinda complex to do because I had to add padding around that area to make them "clean"
Also we need to wait for #3205 (comment)
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.
Ok
Co-authored-by: Fregante <opensource@bfred.it>
Closes #2927
Get only the last 20
Test https://github.com/sindresorhus/refined-github

1 commit https://github.com/Jin230/Git (Dont ask me how I found that repo 😄 )
More than 1 commit

https://github.com/sindresorhus/refined-github
More than 20 commits
