question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`forked-to` only works on some repositories

See original GitHub issue

Out of 31 source repos of the forks I have on my account, only on 3 of them (funnily, refined-github is one of them) forked-to seems to work. Example repo where it doesn’t work: https://github.com/Cog-Creators/Red-DiscordBot Screenshot: image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Jackenmencommented, Mar 23, 2020

@fregante Ah, that makes sense. I checked the local storage and cache works (not a lot of entries since I cleared the cache 2 days ago/yesterday):

cache:forked-to:jack1142@Cog-Creators/Red-DiscordBot:
data: ["jack1142/red-discordbot"]
maxAge: 1585402612639
__proto__: Object

cache:forked-to:jack1142@jelmer/python-fastimport:
data: ["jack1142/python-fastimport"]
maxAge: 1585336802470
__proto__: Object

cache:forked-to:jack1142@sindresorhus/refined-github:
data: ["jack1142/refined-github"]
maxAge: 1585402706428
__proto__: Object

So looks like the problem here is that the repo key should be lowercase (I manually added lowercase cache entry and now the fork link works)

0reactions
fregantecommented, Mar 23, 2020

If after following those instructions you don’t see the link to the fork added to the source repo, it may be because:

  • the fork isn’t being remembered
  • the fork isn’t being associated to the right source (<- most likely)
  • the DOM has changed (it should throw an error)

Try this in the background page:

await browser.storage.local.get()

And look for something like cache:forked-to:cog-creators/red-discordbot

It can help you understand why it’s not being associated correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

forked-to only works on some repositories #2909 - GitHub
So the problem appears to be that the function checks if the repo is a fork rather than if the repo has forks....
Read more >
Problem with repository mirroring for forks - How to Use GitLab
Hello, @dnsmichi I encounter an issue trying to mirror a repo and I think it is because after forking the repo I have...
Read more >
Git fork vs. clone: What's the difference? - TheServerSide.com
Any public Git repository can be forked or cloned. A fork creates a completely independent copy of Git repository. In contrast to a...
Read more >
GitHub: How to make a fork of public repository private?
Clone the private repo so you can work on it: git clone https://github.com/yourname/private-repo.git cd private-repo make some changes git commit git push ...
Read more >
Fork a repository | Bitbucket Cloud - Atlassian Support
Only the main branch of the repository is synced with your fork. No other branch changes will be detected or available to sync....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found