* fetch all stars
* stop fetching when there are repos with zero stars
* remove not needed parameters from the query
* add docstring
* removed not needed mock
* style: update formatting
Co-authored-by: rickstaa <rick.staa@outlook.com>
* ci: add e2e vercel test action
This commit adds several end-to-end tests that can be used
to test whether the Vercel Preview deployment successfully
returns the cards.
* test: add additional e2e card tests
* test: improve e2e card tests
This commit makes sure that the tests also check whether a valid cards
are returned from the preview deployment.
* GRS-1955: Using ES6 import/export in src files
* GRS-1955: Using ES6 import/export in test files
* GRS-1955: Using ES6 import/export in themes index.js
* GRS-1955: Readding blank line at end of top-languages-card.js
* feat: fix test es6 import errors
This commit makes sure jest is set-up to support es6. It also fixes
several test errors and sorts the imports.
* test: update test node version
This commit makes sure node 16 is used in the github actions.
* refactor: run prettier
Co-authored-by: rickstaa <rick.staa@outlook.com>
* Change default stats card width with hide rank
* Add tests for stats card with card_width
* Add card_width Stats Card description to readme
* fix: add icon width to stats-card min width calculation
* fix: fixes rank circle padding problem
This commit fixes a padding problem that was introduced in
f9c0e0bff6. In the new code, the padding
around the rank circle will be 50 when the stats card is bigger than
450. When it is smaller than 450 the left and right padding will shrink
equally.
* style: run prettier
* tests: add extra stats 'card_width' tests
This commit makes sure we also test the stats card width for the case that the 'show_icons'
option is enabled.
* style: run prettier
Co-authored-by: rickstaa <rick.staa@outlook.com>
* Add min width to languages card
* Add test for min width languages card
* feat: increase lang card min width
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* Fixed Firefox text overflow / overwriting issue
Tests currently don't work becouse it appears that '@supports' is not supported by cssToObject used within the tests. I currently have no idea how to fix that test but the cards themself appear to not be broken
Fixesanuraghazra/github-readme-stats#664Fixesanuraghazra/github-readme-stats#1134
* Fixed tests by moving to other css-to-object
Moved the `css-to-object` package to @uppercod's version for test fix. This doesn't seem to have the same issues as the older package
* chore: cleanup test
Co-authored-by: Anurag <hazru.anurag@gmail.com>
* feat: added option to hide languages
* feat: recalculate percentages for hidden languages
* refactor: reverted langs_count and did some formatting
* doc: added hide to readme
* feat: make languages var mutable and improve filter logic
Co-authored-by: Adrian Kunz <clashsoft@hotmail.com>
* refactor: improve code and added tests
Co-authored-by: Adrian Kunz <clashsoft@hotmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
* chore: allow to customize wakatime data range
* docs: document wakatime range parameter
docs: add wakatime section to german readme
Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
* Custom stats title (anuraghazra#229)
* Add custom title test
* remove unused code
* Update readme.md to include the `custom_title` option
* Update readme_es.md to include `custom_title` option
Co-Authored-By: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>
* Merge branch 'master' of https://github.com/anuraghazra/github-readme-stats.git into custom-title
* feat: added customTitle option in Card
Co-authored-by: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
* feat: num_langs param for top langs
* fix: top-langs card bottom padding with num_langs param
* fix: clamp toplangs num_langs rather than throwing error
* feat: changed param name & fixed minor issues, added tests
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
* Enable multi line repo card descriptions
* Adjust unit tests to multi line descriptions
* refactor: refactored code & fixed tests
* style: minor height adjustments
* chore: codecov stuck
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
* add new query param to hide specific languages in top languages card
* [top-langs] add function to clean out the provided lang name
* [top-langs] rename 'hide_lang' => 'hide', refactor logic for parsing the list of provided languages to hide
* [top-langs] take list of languages to hide, as a json array
* chore: minor changes
* docs: added docs for hide lang
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
* feat: template option added husky added for same commit disable console in test \
logger utils added env checked for log modified git ignore
* changed are done as per the suggesstion
* changed style and font
* text color dynamic
* fix border and using .bagde class as common
* simplified the badge svg code through a common method
* chore: updated css & fixed tests
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
* fix: remove 's' after apostrophe if name ends with 's'
* fix: respect GITHUB_TOKEN env var before PAT_s
* revert: verbose console log for retries
* Revert "fix: respect GITHUB_TOKEN env var before PAT_s"
This reverts commit 2becbe595c.
* test: added test for title apostrophe
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
filtering out private repos just in case, otherwise if a user somehow
found out the name of any of the PAT owner's private -
(considering they created the PAT with private repo access) repos's name
then they could see the repo in github extra pins.
* improve: improved rating algorithm wip
* Fixed typos, punctuation [...]
Corrected many instances of "Github" to "GitHub", fixed the punctuation on some sections, fixed the ~lack of~ uppercase chars in others, tweaked the grammar a bit, and added the Vercel guide to a spoiler-ish section so it's only visible if you click to expand.
<3
* fix: github rate limiter with multiple PATs
* perf: vertically align text left
* refactor: refactored retryer logic & handled invalid tokens
* chore: remove redundant codes
`axios` is Promise based, there is no need to wrap it into a Promise constructor again
* fix: query param booleans
* design: fixed rank alignment
* chore: rebase from master
* fix: fixed repo card breaking in absence of primaryLanguage
* fix: fixed stars count #39 & fixed progressbar percentage
* perf: replace emoji icons with GitHub SVG icons
* chore: added funding link
* refactor: refacted icons to another file
* test: added test for icons
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
Co-authored-by: Micael Jarniac <micael@jarniac.com>
Co-authored-by: JounQin <admin@1stg.me>