What happens to starred gists or repos when they are deleted? #21615
-
Topic: What happens to starred gists or repos when they are deleted? Situation: I forked a repo. The original got removed. As the documention says, another fork will be selected as the new “master” and all other forks will get linked to it. Conclusion: If there is no other fork, my would become the new master. Question 1: But, what happens, when neither me or no one else forked it, but only starred? Is it silently removed and gone forever? Question 2: Is it then better to have a fork instead of star? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @markuszeller, if a repo is starred and then subsequently deleted, the star will disappear along with the repo once it’s deleted. If you want to preserve a copy of the code, forking seems like a logical alternative. |
Beta Was this translation helpful? Give feedback.
-
should it also remove stars from the user who starred the repo? because i’m seeing 4 stars that i gave on my personal page, but it only shows 2 starred repos: I was able to get starred repos using api:
the latter i guess was just removed. should the stars also be removed from the user profile as well? |
Beta Was this translation helpful? Give feedback.
-
Hi @ivankovnatsky may I know which API to list all starred repos? |
Beta Was this translation helpful? Give feedback.
Hey @markuszeller, if a repo is starred and then subsequently deleted, the star will disappear along with the repo once it’s deleted. If you want to preserve a copy of the code, forking seems like a logical alternative.