GitHub doesn’t show the actual number of stars that a repository has untill we star/unstar it. By defaul it shows rounded figure like 10K.
When one unstars/stars it ,then the actual number is displayed
My question is related to a Tweet that I came across regarding OpenJDK repo having reached 10K stars.
When I visited the GitHub page for OpenJDK and clicked to star it ,it displayed the actual number as 9970, but when I reloaded the page it again showed 10K. I then confirmed the same via rest api. You can try this : https://api.github.com/repos/openjdk/jdk#:~:text=stargazers_count
It displayed 9970 then, as can be seen below.
Why such inconsistency?
Is it really the eventual inconsistency at play , as hinted by David Delabassée in the Tweet ?
NOTE: Right now both the UI and rest response seem to be in sync.