Commit Graph

602 Commits

Author SHA1 Message Date
rickstaa
15620a11db
test: fix tests 2022-10-07 12:42:04 +02:00
Taehyun Hwang
e8dfbde7bb
Add format script to pre-commit hook (#2146)
* Add format script to pre-commit hook

* build: add husky prepare step

* build: add lint-staged

* build: add lint-staged

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-07 12:33:54 +02:00
rickstaa
bcb8ae9281
style: improve small syntax error 2022-10-07 11:13:01 +02:00
rickstaa
04595dfe62
style: improve formatting 2022-10-07 11:10:48 +02:00
rickstaa
cea4a39548
ci: improve theme preview action
This commit makes sure that theme PRs that contain invalid JSON are
labeled `invalid` and changes are requested.
2022-10-07 11:09:34 +02:00
rickstaa
aae83cb22e
fix: temporary disable multi page star fetch 2022-10-05 00:47:14 +02:00
Rick Staa
94d0978d2b
docs: fix readme logo alignment (#2112) 2022-10-04 14:19:30 +02:00
Matteo Pierro
af97e5765b
fix: fetch all repos for for the stats card (#2100)
* 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>
2022-10-04 13:10:50 +02:00
nekiwo
acbc03dc0f
Fix card length during error (#2105)
* Fix card length during error

Fixes #1774
The size of the box should be 550px to allow 25px padding from both sides
I found the width of the text using `getComputedTextLength()` method

* fix: improve error card size

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-04 10:00:48 +02:00
Akshat Goel
388ba06a8f
Update the Vercel deployement guide (#2102)
* Update the Vercel deployement guide

Updated Readme.md - The guide on deploying your own Vercel instance

* docs: fix some small grammer errors

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-04 09:32:40 +02:00
Rick Staa
e6a6384eff
docs: improve readme syntax (#2106) 2022-10-04 09:19:37 +02:00
Aditya Shelke
7accd1a8d7
feat: default values for wakatime and language (#2103)
* default values for wakatime and language

* docs: update formatting

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-04 08:58:18 +02:00
Jagruti Tiwari
c03bb2f250
fix: adding docstrings to the files where it was missing (#2101)
* fix: adding docstrings to missing files

* style: format code

* style: improve formatting

Co-authored-by: Jagruti Tiwari <jagrutit@cdac.in>
Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-03 13:03:23 +02:00
Ayushi Vishwakarma
9e1fc0b7da
update default values in readme (#2094)
* update default values in readme

* docs: improve formatting

* docs: improve readme punctation

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-03 09:14:37 +02:00
Manan1612
aa084f31c4
Added Contributors Badge (#2096) 2022-10-03 08:42:32 +02:00
rickstaa
c5bea57638
docs: fix india care logo 2022-10-02 18:07:43 +02:00
rickstaa
c2c984a872
docs: format readme 2022-10-02 17:58:34 +02:00
ianbromwichuos
2faf9c54ff
docs: fix link to go India logo svg (#2085) 2022-10-02 17:47:14 +02:00
rickstaa
5d42af59c0
ci: fix small bug in theme-preview action 2022-10-02 17:42:58 +02:00
Rick Staa
822efbf6cb
ci: fix small bugs in theme-preview action (#2093)
* ci: fix small bugs in theme-preview action

* ci: format code
2022-10-02 17:41:28 +02:00
Anurag Hazra
84c9d354b3
docs(theme): Auto update theme readme (#2091)
Co-authored-by: Github Readme Stats Bot <no-reply@githubreadmestats.com>
2022-10-02 17:31:38 +02:00
Rick Staa
d56b294ca1
style: improve code style 2022-10-02 14:50:03 +02:00
rickstaa
6f8bd9fe10
ci: increase top-issues dashboard update frequency 2022-10-02 14:15:25 +02:00
Jagruti Tiwari
f0daab11c8
feat: added default options to readme (#2051)
* feat: added default options to readme

* Update readme.md

Co-authored-by: Rick Staa <rick.staa@outlook.com>

* fix: added default values for stats card

* style: some small readme changes

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2022-10-02 14:03:22 +02:00
rickstaa
3a07cb02db
ci: fix e2e test 2022-10-02 12:27:34 +02:00
rickstaa
510cf6266c
feat: remove border color from transparent theme 2022-10-02 11:47:56 +02:00
Rick Staa
406dbc5656
feat: add transparent theme
Adds a transparent theme with a contrast ratio of 4.5 on both black and white (see https://ux.stackexchange.com/a/86226).
2022-10-02 11:45:55 +02:00
Rick Staa
b8faef6857
ci: add stale theme pull request closer action push (#2067)
This commit adds the `stale-theme-pr-closer` closer action. This action
is used to close theme pull requests with an `invalid` label that has
been stale for a given number of `STALE_DAYS`.
2022-10-02 11:05:13 +02:00
rickstaa
986070a597
Merge branch 'master' of github.com:anuraghazra/github-readme-stats 2022-10-02 10:52:39 +02:00
rickstaa
51e7887b95
ci: fix e2e test 2022-10-02 10:52:33 +02:00
Oscar Dominguez
098331069a
ci(label-pr): upgrade actions/labeler to v4 (#2080)
Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-02 10:51:37 +02:00
Jongwoo Han
f86059f097
chore: Update workflows to cache dependencies (#2083) 2022-10-02 10:38:07 +02:00
rickstaa
aaf710c024
ci: fix e2e test 2022-10-02 10:35:11 +02:00
Rick Staa
d5d8912954
ci: improve theme preview action (#2088)
This commit makes sure that 4,5,6,8 digit hex colors are also accepted.
It further also includes the border_color attribute in the tests.
2022-10-02 10:33:29 +02:00
Rick Staa
6b7e91abb6
ci: improve theme-preview actiot push (#2065)
This commit makes sure that:
 - The theme-preview action can test multiple themes.
 - Fails if something goes wrong.
 - Requests changes if the theme does not adhere to the guidelines.
 - Approves the PR if the theme adheres to the guidelines.
2022-10-01 14:01:29 +02:00
Rick Staa
f8e32f9e0c
ci: add e2e vercel test action (#2054)
* 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.
2022-10-01 13:59:02 +02:00
rickstaa
fe1ca87e33
ci: filter #1772 from top-issues-dashboard 2022-09-25 11:16:37 +02:00
Rick Staa
9a909ff0a4
build: fix wakatime json import bug (#2050)
* build: fix vercel node version

* build: remove engine property

* fix: add json import workarround

This commit adds a workaround for importing the `languageColors` JSON
file. This needed to be done since Vercel uses v16.4, which does not
support JSON file importing without the `experimental-json-modules`
flag. See https://simonplend.com/import-json-in-es-modules/
for more information. The workaround can be found [here](https://stackoverflow.com/questions/66726365/how-should-i-import-json-in-node).
2022-09-24 15:37:19 +02:00
rickstaa
dbf6560781
build: update package-lock file 2022-09-24 14:17:32 +02:00
rickstaa
8886b93a7e
refactor: clean up imports 2022-09-24 14:10:06 +02:00
rickstaa
41d6760abd
fix: fix es6 import file extension 2022-09-24 13:20:52 +02:00
Rick Staa
c7d4c29757
ci: switch to npm ci in github actions (#2046) 2022-09-24 10:37:24 +02:00
rickstaa
0de23d3762
fix: fix generate-theme-doc bug 2022-09-24 10:33:19 +02:00
rsk2
107f7ca52c
Feature/grs 1955 change commonjs imports (#1995)
* 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>
2022-09-24 10:20:54 +02:00
Rick Staa
40735124ed
ci: change theme-preview action run condition (#1903)
This commit makes sure that the theme-preview action only runs when a
theme was added or changed.
2022-09-17 13:42:16 +02:00
Rick Staa
f9b9015ec2
feat(stats): add 'not_bold' option to stats card (#1468) 2022-09-17 13:32:40 +02:00
rickstaa
eacc3cd29c
fix: add missing StatsCard types 2022-09-17 11:28:50 +02:00
Rick Staa
c1324b31bf
feat: add 'exclude_repo' option to stats card (#1450)
This commit allows users to exclude repositories for the stats card
using the `exclude_repo` option.
2022-09-16 13:09:19 +02:00
rickstaa
dc8852dd6b
refactor: change formatting command 2022-09-16 12:55:35 +02:00
Artem Kostiuk
b0bb994ad3
Fix #1170: Allow customizable width for GitHub Stats Card (#1334)
* 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>
2022-09-16 12:50:30 +02:00