Commit Graph

581 Commits

Author SHA1 Message Date
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
Rick Staa
192170c111
ci: add empty issues closer action (#2004)
Co-authored-by: Prashubh Atri <prashubh27@gmail.com>

Co-authored-by: Prashubh Atri <prashubh27@gmail.com>
2022-09-06 10:00:21 +02:00
Steven
4c2307ab4b
Add prettier check to CI (#1999)
* Add prettier check to CI

* Run prettier:format
2022-09-06 09:09:45 +02:00
John Sweeney
d5c94b6f57
Remove unneeded underscore from Readme (#2003) 2022-09-06 08:50:39 +02:00
Adil Hanney
a481021dab
Fix NaN and undefined for empty profiles (#1965)
* totalCommits: don't return NaN

* rank: B+ should cover everyone

Empty profile used to show "undefined" as the rank. Now empty profile shows "A+"... is B+ possible?
2022-08-26 22:28:48 +02:00
Rick Staa
579cb7d175 Merge branch 'master' of https://github.com/anuraghazra/github-readme-stats 2022-08-25 20:06:50 +02:00
Rick Staa
84610521a2 ci: add top-issues-action argument 2022-08-25 20:06:45 +02:00
Rick Staa
c2c07ea022
ci: fix top-issues-action syntax (#1978) 2022-08-25 19:45:11 +02:00
Rick Staa
e9c55d90ad ci: fix title of top-issues action 2022-08-18 11:32:57 +02:00
Rick Staa
663fbae49a ci: add top-issues-dashboard action
This commit adds the top issues dashboard action which creates a issue displaying the top issues of the week.
2022-08-18 11:31:45 +02:00
Qi Mo Lin
dd5a41d696
feat: add min width languages card (#1953)
* 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>
2022-08-18 10:32:03 +02:00
Qi Mo Lin
8d5f2da3f3
test: fix gradient test by using more specific querySelector (#1954) 2022-08-17 23:22:52 +02:00
akmhmgc
4b6f4650b2
refactor: improve level calculator (#1946) 2022-08-13 20:24:44 +02:00
Daniel
e5222902c3
refactor: update license year (#1735)
* Updated Year

* Update LICENSE / Revert to 2020

The MIT license [year] field should indicate the year the copyright was applied

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

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2022-08-13 10:26:05 +02:00
Kisaragi
b6d75b2e65
refactor: remove arrow function body braces (#1917) 2022-08-02 12:26:07 +02:00
Cong
7ceec92455
refactor: fix typo in comment (#1912) 2022-08-01 10:13:59 +02:00
Rick Staa
e547eaf563
refactor: improve issues template
Move part of the FAQ notice to the bottom so that it doesn't clutter the issues window.
2022-07-31 12:16:46 +02:00
Rick Staa
689e1f4052
refactor: fix bug in issues template 2022-07-31 12:11:18 +02:00
Rick Staa
74fc4a3cc3
refactor: improve issues template
Move FAQ notice to the top of the issues template to increase the change of users reading it.
2022-07-31 12:10:10 +02:00
Rick Staa
86f0ea0715
build: pin node version to >=13 (#1900) (#1901)
This commit pins the node version to >=13 since node 12 is now end of
life (see https://vercel.com/changelog/node-js-12-is-being-deprecated).
2022-07-29 10:42:47 +02:00
tmt
678fa11416
docs: note for temporary cache inc (#1890) 2022-07-27 07:48:20 +02:00
tmt
cffb0843b1
docs: incorrect cache documentation (#1889) 2022-07-27 07:47:55 +02:00