Repository navigation
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 <[email protected]>
|
I think we should up it to 34-35 that is one page of commits. |
Co-authored-by: Fregante <[email protected]>
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 <[email protected]>
Co-authored-by: Flo Edelmann <[email protected]>
Co-authored-by: Fregante <[email protected]>
| 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.
Can you move this to a new PR?
There was a problem hiding this comment.
Done want me to redo the first post screen shots?
There was a problem hiding this comment.
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)
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
