github-widget icon indicating copy to clipboard operation
github-widget copied to clipboard

All repositories not being scraped

Open labanyamukhopadhyay opened this issue 5 years ago • 3 comments

I am wondering if there is a sorting feature/ reason not all repositories are showing up on the site when using the Github widget. Thank you!

labanyamukhopadhyay avatar Apr 10 '20 22:04 labanyamukhopadhyay

From the README: "It ignores: forks; any GitHub home page repo (username.github.com); and any repo with no description."

Does that explain what's being missed? If not, perhaps you could provide some more details, and ideally a test case. It seems to be working OK on my own site, http://mackerron.com/webdev/.

jawj avatar Apr 15 '20 09:04 jawj

I see, thank you! Is there a way to edit the widget so that it does not filter our repos without a description?

labanyamukhopadhyay avatar Apr 28 '20 07:04 labanyamukhopadhyay

Perhaps I should make this configurable. Meanwhile, on line 23 of github-widget.coffee, you can just delete the last part of the condition, or not repo.description:

continue if (not opts.forks and repo.fork) or repo.name.toLowerCase() in siteRepoNames or not repo.description

Then of course you'll need to recompile to JS.

jawj avatar Apr 28 '20 10:04 jawj