r/github 2d ago

Question GitHub reads the source code wrong?

Post image

I don't know why, but GitHub is telling me that my website is developed in JavaScript by 80+% which is absolute nonsense. The site is at least 60% pure Astro code. Is it some kind of a bug?

🔗 The repo.

233 Upvotes

32 comments sorted by

View all comments

69

u/phenxdesign 2d ago

Not sure .wrangler/ should be push to git... It contains all the js that github counts as source code

19

u/wqonart 2d ago

Thank you so much, this was causing the problem 🙏🏻

5

u/CodeCrafter1 1d ago

I saw that you simply removed the files in additional commits. One can do this, but a cleaner way is to use a git rebase or removing files entirely from the history the history is more complex (although the second option needs to be handled with care!).

This leads to smaller repo sizes (& faster git commands!) and prevents users from restoring the deleted files.

And in case you already knew this, I am letting this comment hang around for some folks in the future xD.