Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme.md fork issue #29

Open
andry81 opened this issue Dec 17, 2021 · 0 comments
Open

readme.md fork issue #29

andry81 opened this issue Dec 17, 2021 · 0 comments

Comments

@andry81
Copy link

andry81 commented Dec 17, 2021

I know this issue is not directly related to the counter but neverless it draws the counter as unreliable because summons additional hits per each forked readme.md.

The root of the issue is that when the repository with the readme and counter inside is forked then the hardcoded url with the original user is left as is. So the forked page will increment the same counter.

The issue has already mentioned many years ago and there is still not fixed:
https://stackoverflow.com/questions/32408146/does-github-support-username-variable-in-readme-md

The alternative implementation is to accumulate a repo github view hits using github actions and reference it by json data badge:
https://github.com/andry81/github-accum-stats

As an additional plus there would not be counted any click from the repo owner and the counter will be stored in a repository.

The minus is that the github does not increment a profile repo page views counter on a profile page view, where: github.com/user/user - profile repo page, github.com/user - profile page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant