Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from anuraghazra:master #16

Merged
merged 645 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
645 commits
Select commit Hold shift + click to select a range
bec0540
Build(deps): Bump rickstaa/top-issues-action from 1.3.46 to 1.3.50 (#…
dependabot[bot] Sep 18, 2023
b6d30dd
Build(deps-dev): Bump jest from 29.6.4 to 29.7.0 (#3249)
dependabot[bot] Sep 19, 2023
40b58f0
Build(deps-dev): Bump jest-environment-jsdom from 29.6.4 to 29.7.0 (#…
dependabot[bot] Sep 19, 2023
0780435
Build(deps-dev): Bump @testing-library/dom from 9.3.1 to 9.3.3 (#3251)
dependabot[bot] Sep 19, 2023
772ef35
infra: enable no-this-before-super eslint rule (#3256)
qwerty541 Sep 19, 2023
eb787af
infra: enable no-unneeded-ternary eslint rule (#3257)
qwerty541 Sep 19, 2023
2ee803f
feature: extend default card cache time to 6 hours (#3242)
qwerty541 Sep 19, 2023
41a2ba8
tests: add pin endpoint proper cache header test (#3260)
qwerty541 Sep 20, 2023
1fb2d1a
ci: add infrastructure label (#3270)
qwerty541 Sep 21, 2023
12f84f8
tests: add top langs endpoint proper cache header test (#3269)
qwerty541 Sep 21, 2023
65c3300
refactor(stats card fetcher): improve could not fetch total commits e…
qwerty541 Sep 21, 2023
7bf4a87
refactor: add GitHub REST API error to CustomError class (#3272)
qwerty541 Sep 22, 2023
5c9ca13
Build(deps): Bump github/codeql-action from 2.21.7 to 2.21.8 (#3289)
dependabot[bot] Sep 25, 2023
eb2652d
Build(deps): Bump rickstaa/empty-issues-closer-action (#3290)
dependabot[bot] Sep 25, 2023
5850506
Build(deps): Bump rickstaa/top-issues-action from 1.3.50 to 1.3.52 (#…
dependabot[bot] Sep 25, 2023
3312e90
Build(deps): Bump actions/checkout from 4.0.0 to 4.1.0 (#3291)
dependabot[bot] Sep 25, 2023
712cb18
Build(deps-dev): Bump eslint from 8.49.0 to 8.50.0 (#3293)
dependabot[bot] Sep 25, 2023
52b402a
Build(deps): Bump axios from 1.5.0 to 1.5.1 (#3315)
dependabot[bot] Oct 2, 2023
558af5c
Build(deps): Bump github/codeql-action from 2.21.8 to 2.21.9 (#3316)
dependabot[bot] Oct 2, 2023
e04d17d
ci(labeler): fix infrastructure label (#3284)
qwerty541 Oct 5, 2023
2404f06
Build(deps): Bump ossf/scorecard-action from 2.2.0 to 2.3.0 (#3340)
dependabot[bot] Oct 9, 2023
5f378b8
Build(deps): Bump rickstaa/top-issues-action from 1.3.52 to 1.3.54 (#…
dependabot[bot] Oct 9, 2023
3295d5d
Build(deps): Bump rickstaa/empty-issues-closer-action (#3343)
dependabot[bot] Oct 9, 2023
79384f4
Build(deps): Bump github/codeql-action from 2.21.9 to 2.22.1 (#3342)
dependabot[bot] Oct 9, 2023
971fc61
Build(deps): Bump stefanzweifel/git-auto-commit-action (#3344)
dependabot[bot] Oct 9, 2023
dd68af3
Build(deps-dev): Bump eslint from 8.50.0 to 8.51.0 (#3345)
dependabot[bot] Oct 9, 2023
35e4578
docs(contributing guidelines): remove duplicate license section (#3333)
qwerty541 Oct 11, 2023
88c507c
refactor: fix typo in TRY_AGAIN_LATER constant name (#3274)
qwerty541 Oct 12, 2023
3b53bed
docs: add available locales section (#3331)
qwerty541 Oct 12, 2023
18763ae
docs: remove broken sponsor links (#3336)
vishal-sharma-369 Oct 12, 2023
4c7e297
CI: Add static code analysis workflow (CodeQL) (#2918)
qwerty541 Oct 12, 2023
1728bb2
infra: enable no-with eslint rule (#3233)
qwerty541 Oct 12, 2023
d89edc0
infra: enable no-multiple-empty-lines eslint rule (#3262)
qwerty541 Oct 12, 2023
a397851
docs: fix relative README links (#3067)
rickstaa Oct 12, 2023
0fd1ea3
feature: do not aks user's to open issues on upstream API errors (#3273)
qwerty541 Oct 13, 2023
428e97b
Add performance tests base (#3141)
qwerty541 Oct 13, 2023
28b6592
Update generate-theme-doc.js (#3308)
sahilpawar01 Oct 13, 2023
7b1b78d
Revert "Update generate-theme-doc.js (#3308)" (#3353)
rickstaa Oct 13, 2023
1c07f41
feature: fetch only requested data from GitHub GraphQL API to reduce …
qwerty541 Oct 13, 2023
b753d49
infra: enable radix eslint rule (#3261)
qwerty541 Oct 13, 2023
cd9698b
infra: enable no-mixed-spaces-and-tabs eslint rule (#3285)
qwerty541 Oct 13, 2023
7c5e998
ci: fix master branch name in CodeQL analysis workflow (#3354)
qwerty541 Oct 13, 2023
ee7cf1f
docs: add uptime badge (#3350)
rickstaa Oct 13, 2023
7a6d7b4
ci: fix 'update-langs' workflow permissions (#3352)
rickstaa Oct 13, 2023
4fd52e6
ci: fix small theme preview script typo (#3355)
rickstaa Oct 13, 2023
00394cf
docs(themes): improve compatibility message (#3362)
qwerty541 Oct 14, 2023
ac749b7
refactor: resolve vscode type errors in wakatime card render and remo…
qwerty541 Oct 15, 2023
d72ae34
docs: add translations contribution guide (#3360)
qwerty541 Oct 15, 2023
6dc6c61
docs: improve vercel badge position (#3347)
rickstaa Oct 15, 2023
2567a6e
docs: add top issues dashboard notice (#3363)
qwerty541 Oct 15, 2023
8278980
infra: enable no-negated-condition eslint rule (#3283)
qwerty541 Oct 15, 2023
365dfb7
docs(translations): remove broken sponsors links (#3361)
qwerty541 Oct 15, 2023
4e949c2
docs(contributing): remove outdated local dev steps (#3358)
rickstaa Oct 16, 2023
41d19be
Build(deps): Bump rickstaa/empty-issues-closer-action (#3375)
dependabot[bot] Oct 16, 2023
dd528c4
Build(deps): Bump rickstaa/top-issues-action from 1.3.54 to 1.3.56 (#…
dependabot[bot] Oct 16, 2023
c289b10
Build(deps): Bump actions/checkout from 3.5.3 to 4.1.0 (#3377)
dependabot[bot] Oct 16, 2023
bb17789
Build(deps-dev): Bump @testing-library/jest-dom from 6.1.3 to 6.1.4 (…
dependabot[bot] Oct 16, 2023
e7056fb
Build(deps-dev): Bump lint-staged from 14.0.1 to 15.0.1 (#3379)
dependabot[bot] Oct 16, 2023
29c1fef
Build(deps-dev): Bump @babel/traverse from 7.22.8 to 7.23.2 (#3381)
dependabot[bot] Oct 16, 2023
4dc930b
Build(deps-dev): Bump @actions/github from 5.1.1 to 6.0.0 (#3380)
dependabot[bot] Oct 16, 2023
3dab984
docs(contributions): use HTTPS protocol inside license link (#3373)
qwerty541 Oct 17, 2023
b85225b
docs(contributions): improve visability of themes merging policy (#3371)
qwerty541 Oct 17, 2023
bc9076a
docs: use absolute paths for several broken links as temporary soluti…
qwerty541 Oct 18, 2023
885bd1b
docs: add link to translations contribution guidelines (#3390)
qwerty541 Oct 18, 2023
ae35637
docs(contributions): add one theme per pull request rule (#3394)
qwerty541 Oct 19, 2023
33beba5
ci(theme preview): add one theme per pull request rule (#3395)
qwerty541 Oct 21, 2023
3eedfd3
chore(theme): add light and dark catppuccin themes with fix for contr…
cosmojg Oct 22, 2023
cb5ac97
docs: themes addition paused (#3409)
qwerty541 Oct 23, 2023
edeebeb
docs(contributing): themes addition paused (#3408)
qwerty541 Oct 23, 2023
f8aa2db
ci(theme preview): allow gradient themes (#3400)
qwerty541 Oct 23, 2023
3977b90
tests:: allow gradient themes (#3401)
qwerty541 Oct 23, 2023
c795c72
Build(deps): Bump actions/checkout from 4.1.0 to 4.1.1 (#3413)
dependabot[bot] Oct 23, 2023
376aeaa
Build(deps): Bump rickstaa/top-issues-action from 1.3.56 to 1.3.61 (#…
dependabot[bot] Oct 23, 2023
69b1745
Build(deps): Bump bahmutov/npm-install from 1.8.35 to 1.8.36 (#3414)
dependabot[bot] Oct 23, 2023
3d0780b
Build(deps): Bump rickstaa/empty-issues-closer-action (#3417)
dependabot[bot] Oct 23, 2023
453ab19
Build(deps): Bump actions/setup-node from 3.8.1 to 4.0.0 (#3416)
dependabot[bot] Oct 23, 2023
8ee18b8
Build(deps-dev): Bump lint-staged from 15.0.1 to 15.0.2 (#3418)
dependabot[bot] Oct 23, 2023
69cdf00
Build(deps-dev): Bump eslint from 8.51.0 to 8.52.0 (#3419)
dependabot[bot] Oct 23, 2023
23f9cc7
docs(theme): Auto update theme readme (#3407)
qwerty541 Oct 24, 2023
7fe7c63
ci(top issues dashboard): themes addition paused (#3410)
qwerty541 Oct 24, 2023
6bcc98d
fix: fix `WakaTime` brand casing (#3411)
Joehuu Oct 24, 2023
c79fc99
docs(contributing): change protocol from HTTPS to HTTP in local devel…
kafkaidk Oct 26, 2023
8084ba9
i18n: improve Ukrainian translations (#3422)
eternityduck Oct 26, 2023
87a3bf3
ci(theme readme gen): lowercase commit message to match conventional …
qwerty541 Oct 26, 2023
0691084
ci(preview theme): allow gradient colors (2) (#3427)
qwerty541 Oct 26, 2023
db92181
fix(top langs fetcher): fix typo inside error message (#3431)
eternityduck Oct 28, 2023
9c6eb22
feature: render error card in same theme as requested card (resolves …
notpritam Oct 28, 2023
89fc146
refactor: improve blacklisted username error by adding secondary mess…
qwerty541 Oct 30, 2023
5b72dfb
tests(stats card): cover with test changes in #3298 (#3443)
qwerty541 Oct 30, 2023
2feebd0
infra(dependabot): set myself as pull requests reviewer (#3435)
qwerty541 Oct 30, 2023
91a3ac2
Build(deps): Bump rickstaa/empty-issues-closer-action (#3446)
dependabot[bot] Oct 30, 2023
10236d8
Build(deps): Bump ossf/scorecard-action from 2.3.0 to 2.3.1 (#3447)
dependabot[bot] Oct 30, 2023
6cf9bb8
Build(deps): Bump axios from 1.5.1 to 1.6.0 (#3448)
dependabot[bot] Oct 30, 2023
2b90336
Build(deps): Bump rickstaa/top-issues-action from 1.3.61 to 1.3.64 (#…
dependabot[bot] Oct 30, 2023
1886fe0
refactor: update languages JSON (#3450)
github-actions[bot] Oct 31, 2023
2ddcd9c
infra(dependabot): configure commits message to match conventional co…
qwerty541 Oct 31, 2023
ff16984
refactor: fix typos in a comment (#3437)
Wertzui123 Nov 1, 2023
236577f
infra: enable no-class-assign eslint rule (#3451)
qwerty541 Nov 1, 2023
5b3b920
infra: enable no-const-assign eslint rule (#3452)
qwerty541 Nov 1, 2023
90c30f2
infra: enable no-dupe-class-members eslint rule (#3456)
qwerty541 Nov 6, 2023
6d8169f
tests(wakatime-fetcher): fix brand casing (#3455)
qwerty541 Nov 6, 2023
e5b5da8
tests: add basic wakatime endpoint test (#3454)
qwerty541 Nov 6, 2023
79cee30
infra: enable constructor-super eslint rule (#3457)
qwerty541 Nov 7, 2023
bc7ea33
build(deps): Bump rickstaa/empty-issues-closer-action (#3460)
dependabot[bot] Nov 7, 2023
a99abe8
build(deps): Bump rickstaa/top-issues-action from 1.3.64 to 1.3.65 (#…
dependabot[bot] Nov 7, 2023
843b15e
build(deps-dev): Bump eslint from 8.52.0 to 8.53.0 (#3459)
dependabot[bot] Nov 7, 2023
8d7e9df
themes: add ambient_gradient theme for test (#3399)
qwerty541 Nov 7, 2023
dda9647
fix(express deploy): fix situations when env variables doesn't load b…
wolfcomp Nov 7, 2023
aa90efc
docs(theme): auto update theme readme (#3462)
qwerty541 Nov 7, 2023
edf9f74
infra: enable keyword-spacing eslint rule and remove decrecated space…
qwerty541 Nov 10, 2023
5ea6595
infra: enable no-delete-var eslint rule (#3465)
qwerty541 Nov 10, 2023
51eefa2
infra: enable no-caller eslint rule (#3473)
qwerty541 Nov 13, 2023
d654fe5
infra: enable no-alert eslint rule (#3472)
qwerty541 Nov 13, 2023
034ee06
build(deps-dev): Bump lint-staged from 15.0.2 to 15.1.0 (#3477)
dependabot[bot] Nov 13, 2023
36bbea2
build(deps): Bump axios from 1.6.0 to 1.6.1 (#3478)
dependabot[bot] Nov 13, 2023
e04e139
build(deps-dev): Bump prettier from 3.0.3 to 3.1.0 (#3476)
dependabot[bot] Nov 13, 2023
e50a9b4
build(deps): Bump rickstaa/top-issues-action from 1.3.65 to 1.3.69 (#…
dependabot[bot] Nov 13, 2023
4997308
build(deps): Bump rickstaa/empty-issues-closer-action (#3480)
dependabot[bot] Nov 13, 2023
3a15963
ci: add wakatime endpoint test file into pull requests labeler (#3482)
qwerty541 Nov 15, 2023
f26b83d
tests: fix typo inside card class proper height/width test (#3489)
qwerty541 Nov 20, 2023
d4f1a5d
docs: grammar/Clarity Fixes. (#3463)
krple Nov 20, 2023
ddcc30d
feat(repo card): add description lines count query parameter (#3453)
qwerty541 Nov 20, 2023
68c49dd
build(deps): Bump rickstaa/empty-issues-closer-action (#3490)
dependabot[bot] Nov 20, 2023
723cdd7
build(deps): Bump rickstaa/top-issues-action from 1.3.69 to 1.3.71 (#…
dependabot[bot] Nov 20, 2023
ffe2862
build(deps): Bump axios from 1.6.1 to 1.6.2 (#3492)
dependabot[bot] Nov 20, 2023
afcb773
build(deps-dev): Bump eslint from 8.53.0 to 8.54.0 (#3493)
dependabot[bot] Nov 20, 2023
a8663a8
feat(wakatime card): add disable animations query option (#3496)
qwerty541 Nov 23, 2023
b8983dd
feat: show wakatime stats in percentage (resolves #3016) (#3326)
ritik48 Nov 23, 2023
1262002
fix(wakatime card): add percent display format for compact layout (re…
qwerty541 Nov 25, 2023
c6c4a88
docs: improve query options appereance using tables (#3484)
qwerty541 Nov 25, 2023
4793de4
build(deps): Bump rickstaa/top-issues-action from 1.3.71 to 1.3.75 (#…
dependabot[bot] Nov 27, 2023
7595456
build(deps): Bump rickstaa/empty-issues-closer-action (#3507)
dependabot[bot] Nov 27, 2023
0616df3
tests: add gist card performance test (#3372)
qwerty541 Nov 28, 2023
1656ec6
tests: add pin card performance test (#3374)
qwerty541 Nov 28, 2023
80b2d23
build(deps-dev): Bump @adobe/css-tools from 4.3.1 to 4.3.2 (#3516)
dependabot[bot] Dec 1, 2023
1cba9c1
build(deps-dev): Bump eslint from 8.54.0 to 8.55.0 (#3522)
dependabot[bot] Dec 4, 2023
105e136
build(deps-dev): Bump lint-staged from 15.1.0 to 15.2.0 (#3524)
dependabot[bot] Dec 4, 2023
91889a3
build(deps-dev): Bump eslint-config-prettier from 9.0.0 to 9.1.0 (#3523)
dependabot[bot] Dec 4, 2023
4412af8
build(deps-dev): Bump @testing-library/jest-dom from 6.1.4 to 6.1.5 (…
dependabot[bot] Dec 4, 2023
34c67ff
build(deps): Bump rickstaa/top-issues-action from 1.3.75 to 1.3.77 (#…
dependabot[bot] Dec 4, 2023
6633d68
build(deps): Bump rickstaa/empty-issues-closer-action (#3527)
dependabot[bot] Dec 4, 2023
23472f4
build(deps): Bump actions/labeler from 4.3.0 to 5.0.0 (#3526)
dependabot[bot] Dec 4, 2023
c31f3e8
ci: update labeler config to match latest action version (#3533)
qwerty541 Dec 11, 2023
2259870
docs: fix wakatime card api_domain option default value (#3532)
qwerty541 Dec 11, 2023
c402a23
refactor: add missing export for wakatime options type (#3531)
qwerty541 Dec 11, 2023
f831dad
build(deps-dev): Bump prettier from 3.1.0 to 3.1.1 (#3540)
dependabot[bot] Dec 11, 2023
9c1bb80
build(deps): Bump actions/upload-artifact from 3.1.3 to 4.0.0 (#3549)
dependabot[bot] Dec 18, 2023
beb0172
build(deps): Bump rickstaa/top-issues-action from 1.3.77 to 1.3.83 (#…
dependabot[bot] Dec 18, 2023
82699d6
build(deps): Bump rickstaa/empty-issues-closer-action (#3551)
dependabot[bot] Dec 18, 2023
3ea55bb
build(deps): Bump actions/setup-node from 4.0.0 to 4.0.1 (#3552)
dependabot[bot] Dec 18, 2023
e30da92
build(deps-dev): Bump eslint from 8.55.0 to 8.56.0 (#3553)
dependabot[bot] Dec 18, 2023
f44ddde
build(deps): bump rickstaa/top-issues-action from 1.3.83 to 1.3.86 (#…
dependabot[bot] Dec 25, 2023
c1e8037
build(deps): bump rickstaa/empty-issues-closer-action (#3561)
dependabot[bot] Dec 25, 2023
59367dc
refactor(wakatime card): move duplicate value format logic into separ…
qwerty541 Dec 26, 2023
7d4c49b
ci: use same .yml file extension for all workflows for consistency (#…
qwerty541 Dec 26, 2023
4710f24
tests(stats card): fix render translations test (#3580)
qwerty541 Jan 7, 2024
d2dbffe
refactor: update languages JSON (#3567)
github-actions[bot] Jan 7, 2024
53a1e34
build(deps): bump rickstaa/empty-issues-closer-action (#3570)
dependabot[bot] Jan 7, 2024
1852db0
build(deps): bump rickstaa/top-issues-action from 1.3.86 to 1.3.87 (#…
dependabot[bot] Jan 7, 2024
5dd50ee
build(deps-dev): bump @testing-library/jest-dom from 6.1.5 to 6.1.6 (…
dependabot[bot] Jan 7, 2024
69f5826
build(deps): bump axios from 1.6.2 to 1.6.3 (#3573)
dependabot[bot] Jan 7, 2024
258d54d
build(deps-dev): bump jest-bench from 29.4.1 to 29.7.1 (#3574)
dependabot[bot] Jan 7, 2024
9406466
build(deps): bump axios from 1.6.2 to 1.6.5 (#3581)
dependabot[bot] Jan 7, 2024
62662be
build(deps-dev): bump @testing-library/jest-dom from 6.1.6 to 6.2.0 (…
dependabot[bot] Jan 8, 2024
39e8c20
build(deps): bump rickstaa/empty-issues-closer-action (#3583)
dependabot[bot] Jan 8, 2024
d1540ef
build(deps): bump rickstaa/top-issues-action from 1.3.87 to 1.3.91 (#…
dependabot[bot] Jan 8, 2024
9cce439
build(deps-dev): bump @testing-library/dom from 9.3.3 to 9.3.4 (#3587)
dependabot[bot] Jan 15, 2024
14fe8cd
build(deps-dev): bump prettier from 3.1.1 to 3.2.2 (#3588)
dependabot[bot] Jan 15, 2024
3d996b9
build(deps): bump rickstaa/empty-issues-closer-action (#3591)
dependabot[bot] Jan 15, 2024
eb3b4d1
build(deps): bump rickstaa/top-issues-action from 1.3.91 to 1.3.93 (#…
dependabot[bot] Jan 15, 2024
9a11163
build(deps): bump bahmutov/npm-install from 1.8.36 to 1.8.37 (#3592)
dependabot[bot] Jan 15, 2024
fa50161
build(deps): bump actions/upload-artifact from 4.0.0 to 4.1.0 (#3589)
dependabot[bot] Jan 15, 2024
533469d
tests(e2e): update data to fix retrieve stats card test (#3609)
qwerty541 Jan 23, 2024
91db535
fix(stats card): set correct value of commits count in accessability …
qwerty541 Jan 23, 2024
4f567cc
build(deps): bump rickstaa/empty-issues-closer-action (#3603)
dependabot[bot] Jan 24, 2024
734c69a
build(deps): bump rickstaa/top-issues-action from 1.3.93 to 1.3.95 (#…
dependabot[bot] Jan 24, 2024
8b610da
build(deps): bump actions/upload-artifact from 4.1.0 to 4.2.0 (#3604)
dependabot[bot] Jan 24, 2024
b9fa27b
build(deps): bump dotenv from 16.3.1 to 16.3.2 (#3606)
dependabot[bot] Jan 24, 2024
26f6d7f
build(deps-dev): bump prettier from 3.2.2 to 3.2.4 (#3607)
dependabot[bot] Jan 24, 2024
0704b5a
build(deps-dev): bump @testing-library/jest-dom from 6.2.0 to 6.2.1 (…
dependabot[bot] Jan 24, 2024
319e3d4
tests: refactor stats card e2e test to avoid future error due to year…
qwerty541 Jan 25, 2024
547660b
tests(e2e): update data to fix retrieve stats card test (#3626)
qwerty541 Jan 30, 2024
13c25c7
build(deps-dev): bump @testing-library/jest-dom from 6.2.1 to 6.3.0 (…
dependabot[bot] Jan 31, 2024
5a05bd2
build(deps-dev): bump husky from 8.0.3 to 9.0.7 (#3621)
dependabot[bot] Jan 31, 2024
9533319
build(deps): bump axios from 1.6.5 to 1.6.7 (#3622)
dependabot[bot] Jan 31, 2024
91d0ed6
build(deps): bump dotenv from 16.3.2 to 16.4.1 (#3623)
dependabot[bot] Jan 31, 2024
62c7101
ci(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5 (#3624)
dependabot[bot] Jan 31, 2024
3e14baf
ci(deps): bump actions/upload-artifact from 4.2.0 to 4.3.0 (#3625)
dependabot[bot] Jan 31, 2024
1be7d06
build(deps-dev): bump lint-staged from 15.2.0 to 15.2.2 (#3639)
dependabot[bot] Feb 5, 2024
5f411be
tests(e2e): update data to fix retrieve stats card test (#3643)
qwerty541 Feb 6, 2024
3ba7666
build(deps-dev): bump prettier from 3.2.4 to 3.2.5 (#3640)
dependabot[bot] Feb 7, 2024
8ad4eee
build(deps-dev): bump husky from 9.0.7 to 9.0.10 (#3642)
dependabot[bot] Feb 7, 2024
a7159aa
build(deps-dev): bump @testing-library/jest-dom from 6.3.0 to 6.4.2 (…
dependabot[bot] Feb 7, 2024
e71c63d
ci(deps): bump peter-evans/create-pull-request from 5.0.2 to 6.0.0 (#…
dependabot[bot] Feb 8, 2024
2f67ff1
ci(deps): bump bahmutov/npm-install from 1.8.37 to 1.8.38 (#3638)
dependabot[bot] Feb 8, 2024
c213f9e
build(deps): bump dotenv from 16.4.1 to 16.4.2 (#3645)
dependabot[bot] Feb 13, 2024
916c51a
build(deps): bump actions/setup-node from 4.0.1 to 4.0.2 (#3646)
dependabot[bot] Feb 13, 2024
c48c4f5
ci(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1 (#3648)
dependabot[bot] Feb 13, 2024
bf937ab
ci(deps): bump rickstaa/empty-issues-closer-action (#3647)
dependabot[bot] Feb 13, 2024
8c268ee
ci(deps): bump rickstaa/top-issues-action from 1.3.95 to 1.3.97 (#3649)
dependabot[bot] Feb 13, 2024
200b703
build(deps-dev): bump undici from 5.26.3 to 5.28.3 (#3651)
dependabot[bot] Feb 16, 2024
5796024
docs: fix default value of cache_seconds query option in README (#3644)
valbeat Feb 16, 2024
663e4f0
infra(dependabot): change github actions prs commit message prefix (#…
qwerty541 Feb 19, 2024
918d274
ci(deps): bump rickstaa/empty-issues-closer-action from 1.1.71 to 1.1…
dependabot[bot] Feb 19, 2024
1e30934
ci(deps): bump bahmutov/npm-install from 1.8.38 to 1.10.1 (#3658)
dependabot[bot] Feb 19, 2024
364bba7
build(deps): bump dotenv from 16.4.2 to 16.4.4 (#3660)
dependabot[bot] Feb 20, 2024
537862f
build(deps-dev): bump husky from 9.0.10 to 9.0.11 (#3659)
dependabot[bot] Feb 20, 2024
c2647d8
ci(deps): bump rickstaa/top-issues-action from 1.3.97 to 1.3.98 (#3671)
dependabot[bot] Feb 26, 2024
1d27c6b
build(deps-dev): bump eslint from 8.56.0 to 8.57.0 (#3672)
dependabot[bot] Feb 27, 2024
e69427e
build(deps): bump dotenv from 16.4.4 to 16.4.5 (#3673)
dependabot[bot] Feb 27, 2024
4de672c
ci(deps): bump peter-evans/create-pull-request from 6.0.0 to 6.0.1 (#…
dependabot[bot] Mar 4, 2024
9ea7535
ci(deps): bump rickstaa/top-issues-action from 1.3.98 to 1.3.99 (#3685)
dependabot[bot] Mar 4, 2024
8282afb
ci: prevent OSSF analysis workflow from running in forks (#3652)
harryzcy Mar 5, 2024
abf9c66
build(deps): bump follow-redirects from 1.15.4 to 1.15.6 (#3697)
dependabot[bot] Mar 16, 2024
018e7fd
ci(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#3700)
dependabot[bot] Mar 19, 2024
df84138
ci(deps): bump peter-evans/create-pull-request from 6.0.1 to 6.0.2 (#…
dependabot[bot] Mar 19, 2024
4761871
build(deps): bump axios from 1.6.7 to 1.6.8 (#3702)
dependabot[bot] Mar 19, 2024
0a372d2
ci(deps): bump rickstaa/top-issues-action from 1.3.99 to 1.3.100 (#3709)
dependabot[bot] Mar 25, 2024
fd12c01
refactor: update languages JSON (#3711)
github-actions[bot] Mar 31, 2024
a71bb1b
build(deps-dev): bump undici from 5.28.3 to 5.28.4 (#3716)
dependabot[bot] Apr 4, 2024
bd5f268
build(deps-dev): bump @testing-library/dom from 9.3.4 to 10.0.0 (#3719)
dependabot[bot] Apr 8, 2024
c9f850c
ci(deps): bump peter-evans/create-pull-request from 6.0.2 to 6.0.3 (#…
dependabot[bot] Apr 16, 2024
af9b2c8
ci(deps): bump stefanzweifel/git-auto-commit-action from 5.0.0 to 5.0…
dependabot[bot] Apr 16, 2024
e93b5d5
ci(deps): bump actions/checkout from 4.1.2 to 4.1.3 (#3738)
dependabot[bot] Apr 23, 2024
0706c26
ci(deps): bump actions/upload-artifact from 4.3.1 to 4.3.3 (#3737)
dependabot[bot] Apr 23, 2024
ee0b0e9
ci(deps): bump peter-evans/create-pull-request from 6.0.3 to 6.0.4 (#…
dependabot[bot] Apr 23, 2024
0b3e07a
ci(deps): bump actions/checkout from 4.1.3 to 4.1.4 (#3748)
dependabot[bot] Apr 30, 2024
cb4b630
ci(deps): bump peter-evans/create-pull-request from 6.0.4 to 6.0.5 (#…
dependabot[bot] Apr 30, 2024
d739c0a
build(deps-dev): bump @testing-library/dom from 10.0.0 to 10.1.0 (#3746)
dependabot[bot] Apr 30, 2024
9d9ad87
ci(deps): bump actions/checkout from 4.1.4 to 4.1.5 (#3765)
dependabot[bot] May 7, 2024
daa0432
ci(deps): bump bahmutov/npm-install from 1.10.1 to 1.10.2 (#3764)
dependabot[bot] May 7, 2024
124225d
build(deps-dev): bump @testing-library/jest-dom from 6.4.2 to 6.4.5 (…
dependabot[bot] May 7, 2024
e1356e3
ci(deps): bump rickstaa/top-issues-action from 1.3.100 to 1.3.101 (#3…
dependabot[bot] May 17, 2024
0bdc2bf
ci(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#3768)
dependabot[bot] May 17, 2024
e06b0d2
build(deps): bump axios from 1.6.8 to 1.7.1 (#3772)
dependabot[bot] May 21, 2024
7a78036
ci(deps): bump actions/checkout from 4.1.5 to 4.1.6 (#3774)
dependabot[bot] May 21, 2024
2ec2716
build(deps): bump axios from 1.7.1 to 1.7.2 (#3783)
dependabot[bot] May 27, 2024
1a269d6
build(deps-dev): bump lint-staged from 15.2.2 to 15.2.5 (#3782)
dependabot[bot] May 27, 2024
e26c013
build(deps-dev): bump prettier from 3.2.5 to 3.3.0 (#3789)
dependabot[bot] Jun 4, 2024
e48d073
build(deps-dev): bump prettier from 3.3.0 to 3.3.1 (#3804)
dependabot[bot] Jun 11, 2024
127a507
build(deps-dev): bump prettier from 3.3.1 to 3.3.2 (#3812)
dependabot[bot] Jun 18, 2024
6999c86
build(deps-dev): bump lint-staged from 15.2.5 to 15.2.7 (#3813)
dependabot[bot] Jun 18, 2024
66579b1
build(deps-dev): bump @testing-library/jest-dom from 6.4.5 to 6.4.6 (…
dependabot[bot] Jun 18, 2024
bf4fbc2
build(deps-dev): bump ws from 8.9.0 to 8.17.1 (#3816)
dependabot[bot] Jun 19, 2024
26571ca
ci(deps): bump actions/checkout from 4.1.6 to 4.1.7 (#3815)
dependabot[bot] Jun 19, 2024
62cdee3
build(deps-dev): bump @testing-library/dom from 10.1.0 to 10.2.0 (#3822)
dependabot[bot] Jun 25, 2024
b6f5077
ci(deps): bump peter-evans/create-pull-request from 6.0.5 to 6.1.0 (#…
dependabot[bot] Jun 25, 2024
0496044
refactor: update languages JSON (#3832)
github-actions[bot] Jul 4, 2024
6c6888e
tests(e2e): fix stats card data name (#3839)
qwerty541 Jul 6, 2024
20fb82f
ci(deps): bump actions/upload-artifact from 4.3.3 to 4.3.4 (#3841)
dependabot[bot] Jul 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
themes: themes/index.js
doc-translation: docs/*
card-i18n: src/translations.js
documentation: readme.md
4 changes: 4 additions & 0 deletions .github/workflows/generate-theme-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm

# Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches.
- name: Fix unsafe repo error
run: git config --global --add safe.directory ${{ github.workspace }}

- name: npm install, generate readme
run: |
npm ci
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ vercel_token
# IDE
.vscode
*.code-workspace

.vercel
4 changes: 2 additions & 2 deletions api/status/pat-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* @file Contains a simple cloud function that can be used to check which PATs are no
* longer working. It returns a list of valid PATs, expired PATs and PATs with errors.
*
* @description This function is currently rate limited to 1 request per 10 minutes.
* @description This function is currently rate limited to 1 request per 5 minutes.
*/

import { logger, request, dateDiff } from "../../src/common/utils.js";
export const RATE_LIMIT_SECONDS = 60 * 5; // 1 request per 10 minutes
export const RATE_LIMIT_SECONDS = 60 * 5; // 1 request per 5 minutes

/**
* Simple uptime check fetcher for the PATs.
Expand Down
4 changes: 2 additions & 2 deletions api/status/up.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* @file Contains a simple cloud function that can be used to check if the PATs are still
* functional.
*
* @description This function is currently rate limited to 1 request per 10 minutes.
* @description This function is currently rate limited to 1 request per 5 minutes.
*/

import retryer from "../../src/common/retryer.js";
import { logger, request } from "../../src/common/utils.js";

export const RATE_LIMIT_SECONDS = 60 * 10; // 1 request per 10 minutes
export const RATE_LIMIT_SECONDS = 60 * 5; // 1 request per 5 minutes

/**
* Simple uptime check fetcher for the PATs.
Expand Down
15 changes: 15 additions & 0 deletions express.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import statsCard from "./api/index.js";
import repoCard from "./api/pin.js";
import langCard from "./api/top-langs.js";
import wakatimeCard from "./api/wakatime.js";
import express from "express";
import dotenv from "dotenv";

dotenv.config();
const app = express();
app.listen(process.env.port || 9000);

app.get("/", statsCard);
app.get("/pin", repoCard);
app.get("/top-langs", langCard);
app.get("/wakatime", wakatimeCard);
27 changes: 24 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ Visit <https://indiafightscorona.giveindia.org> and make a small donation to hel
- [Repo Card Exclusive Options](#repo-card-exclusive-options)
- [Language Card Exclusive Options](#language-card-exclusive-options)
- [Wakatime Card Exclusive Option](#wakatime-card-exclusive-options)
- [Deploy Yourself](#deploy-on-your-own-vercel-instance)
- [Deploy Yourself](#deploy-on-your-own)
- [On Vercel](#on-vercel)
- [On other platforms](#on-other-platforms)
- [Keep your fork up to date](#keep-your-fork-up-to-date)

# GitHub Stats Card
Expand Down Expand Up @@ -133,7 +135,7 @@ You can add the count of all your private contributions to the total commits cou

### Showing icons

To enable icons, you can pass `show_icons=true` in the query param, like so:
To enable icons, you can pass `&show_icons=true` in the query param, like so:

```md
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true)
Expand Down Expand Up @@ -509,7 +511,9 @@ By default, GitHub does not lay out the cards side by side. To do that, you can
</a>
```

## Deploy on your own Vercel instance
## Deploy on your own

### On Vercel

#### :film_projector: [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)

Expand Down Expand Up @@ -546,6 +550,23 @@ Since the GitHub API only allows 5k requests per hour, my `https://github-readme

</details>

### On other platforms

> **Warning**
> This way of using GRS is not officially supported and was added to cater to some particular use cases where Vercel could not be used (e.g. #2341). The support for this method, therefore, is limited.

<details>
<summary><b>:hammer_and_wrench: Step-by-step guide for deploying on other platforms</b></summary>

1. Fork or clone this repo as per your needs
2. Add `express` to the dependencies section of `package.json`
https://github.com/anuraghazra/github-readme-stats/blob/ba7c2f8b55eac8452e479c8bd38b044d204d0424/package.json#L54-L61
3. Run `npm i` if needed (initial setup)
4. Run `node express.js` to start the server, or set the entry point to `express.js` in `package.json` if you're deploying on a managed service
https://github.com/anuraghazra/github-readme-stats/blob/ba7c2f8b55eac8452e479c8bd38b044d204d0424/package.json#L11
5. You're done 🎉
</details>

### Keep your fork up to date

You can keep your fork, and thus your private Vercel instance up to date with the upstream using GitHubs' [Sync Fork button](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork). You can also use the [pull](https://github.com/wei/pull) package created by [@wei](https://github.com/wei) to automate this process.
Expand Down
80 changes: 42 additions & 38 deletions scripts/preview-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ const REQUIRED_COLOR_PROPS = ACCEPTED_COLOR_PROPS.slice(0, 4);
const INVALID_REVIEW_COMMENT = (commentUrl) =>
`Some themes are invalid. See the [Automated Theme Preview](${commentUrl}) comment above for more information.`;

// Retrieve octokit instance.
const OCTOKIT = github.getOctokit(getGithubToken());
const { OWNER, REPO } = getRepoInfo(github.context);
var PULL_REQUEST_ID;

/**
* Retrieve PR number from the event payload.
*
Expand Down Expand Up @@ -298,43 +303,42 @@ const themeNameAlreadyExists = (name) => {
return themes[name] !== undefined;
};

const DRY_RUN = process.env.DRY_RUN === "true" || false;

/**
* Main function.
*/
export const run = async (prNumber) => {
export const run = async () => {
try {
const dryRun = process.env.DRY_RUN === "true" || false;
debug("Retrieve action information from context...");
debug(`Context: ${inspect(github.context)}`);
let commentBody = `
\r# ${COMMENT_TITLE}
\r${THEME_CONTRIB_GUIDELINESS}
`;
const ccc = new ColorContrastChecker();
const octokit = github.getOctokit(getGithubToken());
const pullRequestId = prNumber ? prNumber : getPrNumber();
const commenter = getCommenter();
const { owner, repo } = getRepoInfo(github.context);
debug(`Owner: ${owner}`);
debug(`Repo: ${repo}`);
PULL_REQUEST_ID = getPrNumber();
debug(`Owner: ${OWNER}`);
debug(`Repo: ${REPO}`);
debug(`Commenter: ${commenter}`);

// Retrieve the PR diff and preview-theme comment.
debug("Retrieve PR diff...");
const res = await octokit.pulls.get({
owner,
repo,
pull_number: pullRequestId,
const res = await OCTOKIT.pulls.get({
OWNER,
REPO,
pull_number: PULL_REQUEST_ID,
mediaType: {
format: "diff",
},
});
debug("Retrieve preview-theme comment...");
const comment = await findComment(
octokit,
pullRequestId,
owner,
repo,
OCTOKIT,
PULL_REQUEST_ID,
OWNER,
REPO,
commenter,
);

Expand Down Expand Up @@ -513,12 +517,12 @@ export const run = async (prNumber) => {
// Create or update theme-preview comment.
debug("Create or update theme-preview comment...");
let comment_url;
if (!dryRun) {
comment_url = await upsertComment(octokit, {
if (!DRY_RUN) {
comment_url = await upsertComment(OCTOKIT, {
comment_id: comment?.id,
issue_number: pullRequestId,
owner,
repo,
issue_number: PULL_REQUEST_ID,
OWNER,
REPO,
body: commentBody,
});
} else {
Expand All @@ -535,20 +539,20 @@ export const run = async (prNumber) => {
const reviewReason = themesValid
? undefined
: INVALID_REVIEW_COMMENT(comment_url);
if (!dryRun) {
if (!DRY_RUN) {
await addReview(
octokit,
pullRequestId,
owner,
repo,
OCTOKIT,
PULL_REQUEST_ID,
OWNER,
REPO,
reviewState,
reviewReason,
);
await addRemoveLabel(
octokit,
pullRequestId,
owner,
repo,
OCTOKIT,
PULL_REQUEST_ID,
OWNER,
REPO,
"invalid",
!themesValid,
);
Expand All @@ -558,20 +562,20 @@ export const run = async (prNumber) => {
}
} catch (error) {
debug("Set review state to `REQUEST_CHANGES` and add `invalid` label...");
if (!dryRun) {
if (!DRY_RUN) {
await addReview(
octokit,
pullRequestId,
owner,
repo,
OCTOKIT,
PULL_REQUEST_ID,
OWNER,
REPO,
"REQUEST_CHANGES",
error.message,
);
await addRemoveLabel(
octokit,
pullRequestId,
owner,
repo,
OCTOKIT,
PULL_REQUEST_ID,
OWNER,
REPO,
"invalid",
true,
);
Expand Down
3 changes: 1 addition & 2 deletions src/cards/top-languages-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { langCardLocales } from "../translations.js";

const DEFAULT_CARD_WIDTH = 300;
const MIN_CARD_WIDTH = 230;
const MIN_CARD_WIDTH = 280;
const DEFAULT_LANGS_COUNT = 5;
const DEFAULT_LANG_COLOR = "#858585";
const CARD_PADDING = 25;
Expand Down Expand Up @@ -317,7 +317,6 @@ const renderTopLanguages = (topLangs, options = {}) => {

let finalLayout = "";
if (layout === "compact" || hide_progress == true) {
width = width + 50; // padding
height =
calculateCompactLayoutHeight(langs.length) + (hide_progress ? -25 : 0);

Expand Down
26 changes: 25 additions & 1 deletion src/cards/wakatime-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const createTextNode = ({
// @ts-ignore
name: label,
progressBarBackgroundColor,
delay: staggerDelay + 300,
});

return `
Expand Down Expand Up @@ -276,11 +277,12 @@ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {
} else {
finalLayout = flexLayout({
items: filteredLanguages.length
? filteredLanguages.map((language) => {
? filteredLanguages.map((language, index) => {
return createTextNode({
id: language.name,
label: language.name,
value: language.text,
index: index,
percent: language.percent,
// @ts-ignore
progressBarColor: titleColor,
Expand Down Expand Up @@ -321,7 +323,29 @@ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {
card.setCSS(
`
${cssStyles}
@keyframes slideInAnimation {
from {
width: 0;
}
to {
width: calc(100%-100px);
}
}
@keyframes growWidthAnimation {
from {
width: 0;
}
to {
width: 100%;
}
}
.lang-name { font: 400 11px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor} }
#rect-mask rect{
animation: slideInAnimation 1s ease-in-out forwards;
}
.lang-progress{
animation: growWidthAnimation 0.6s ease-in-out forwards;
}
`,
);

Expand Down
Loading