Repository navigation
Add link to forked repo below the source - #2153
Conversation
|
@bfred-it Clean up even more; hope it satisfies. Feel free to edit at your will. |
# Conflicts: # source/content.ts
|
Not a good idea to include the full issue number in the branch name, this happens: 😅 |
|
Will try to remember |
|
The implementation looks good to me. Can you mention the feature in the readme with a link to a screenshot? |
|
@sindresorhus commented on Jul 1, 2019, 8:46 AM GMT+2:
Done. |
|
Thanks for contributing this feature 🙌 |
Co-authored-by: Federico Brigante <[email protected]>
|
<3 |
|
@jerone, first off, thanks for contributing this feature! ❤️ I'm using Firefox Multi-Account Containers, to handle two different GitHub accounts. However, this new feature ignores 'container isolation'. I.e., if the same repo is cloned in both accounts, I see both of them listed when I visit the original repo. I would expect a single fork to be shown instead, the one that corresponds to the account that is logged in. More precisely:
When visiting
Instead, I would expect to see Is this expected by design? Or is it worth a separate issue? |
|
@1138-4eb Interesting issue. You are encountering this issue, because all forks are saved in a cache storage. Cache is used on more features, but those are not account depended, like this feature. The solution would be to use a cache key which also contains the logged-in username. @bfred-it @sindresorhus Is multiple accounts something we want to support? |
|
@jerone this can probably be solved by including the current username in the cache key itself, e.g. |
|
@bfred-it Yes, exactly like I said 😄
|
|
@bfred-it, @jerone, do you mean in https://github.com/sindresorhus/refined-github/blob/master/source/features/forked-to.tsx#L8? Would it be |
|
@1138-4eb Yeah. I'm testing right now. Will send PR soon. |
|
PR here: #2215 |

Description
Add links to the forked repos below the original repo. For users and organizations.
Closes
Closes #1129
Supersedes attempt 1 #1108
Supersedes attempt 2 #2105
Supersedes attempt 3 #2141
Screenshots
Original repo:

User forked repo:

Organization forked repo:

Test