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 #87

Merged
merged 681 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
681 commits
Select commit Hold shift + click to select a range
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
dc4717a
build(deps-dev): bump @testing-library/dom from 10.2.0 to 10.3.1 (#3840)
dependabot[bot] Jul 10, 2024
af839e9
ci(deps): bump actions/setup-node from 4.0.2 to 4.0.3 (#3846)
dependabot[bot] Jul 16, 2024
13b3660
build(deps-dev): bump @testing-library/dom from 10.3.1 to 10.3.2 (#3848)
dependabot[bot] Jul 17, 2024
d91f629
build(deps-dev): bump prettier from 3.3.2 to 3.3.3 (#3847)
dependabot[bot] Jul 18, 2024
975d38b
build(deps-dev): bump @testing-library/dom from 10.3.2 to 10.4.0 (#3863)
dependabot[bot] Jul 23, 2024
bf7a3b0
build(deps-dev): bump husky from 9.0.11 to 9.1.1 (#3864)
dependabot[bot] Jul 24, 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
10 changes: 10 additions & 0 deletions .github/workflows/deploy-prep.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os

file = open('./vercel.json', 'r')
str = file.read()
file = open('./vercel.json', 'w')

str = str.replace('"maxDuration": 10', '"maxDuration": 30')

file.write(str)
file.close()
20 changes: 20 additions & 0 deletions .github/workflows/deploy-prep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deployment Prep

Check failure

Code scanning / Scorecard

Token-Permissions

score is 0: no topLevel permission defined Remediation tip: Visit [https://app.stepsecurity.io/secureworkflow](https://app.stepsecurity.io/secureworkflow//deploy-prep.yml/?enable=permissions). Tick the 'Restrict permissions for GITHUB_TOKEN' Untick other options NOTE: If you want to resolve multiple issues at once, you can visit [https://app.stepsecurity.io/securerepo](https://app.stepsecurity.io/securerepo) instead. Click Remediation section below for further remediation help
on:
workflow_dispatch:
push:
branches:
- master

jobs:
config:
if: github.repository == 'anuraghazra/github-readme-stats'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Check warning

Code scanning / Scorecard

Pinned-Dependencies

score is 7: GitHub-owned GitHubAction not pinned by hash Click Remediation section below to solve this issue
- name: Deployment Prep
run: python ./.github/workflows/deploy-prep.py
- uses: stefanzweifel/git-auto-commit-action@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies

score is 7: third-party GitHubAction not pinned by hash Click Remediation section below to solve this issue
with:
branch: vercel
create_branch: true
push_options: "--force"
1 change: 1 addition & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
jobs:
e2eTests:
if:
github.repository == 'anuraghazra/github-readme-stats' &&
github.event_name == 'deployment_status' &&
github.event.deployment_status.state == 'success'
name: Perform 2e2 tests
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/empty-issues-closer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
closeEmptyIssuesAndTemplates:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Close empty issues
runs-on: ubuntu-latest
steps:
Expand Down
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
1 change: 1 addition & 0 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:

jobs:
triage:
if: github.repository == 'anuraghazra/github-readme-stats'
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/stale-theme-pr-closer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
closeOldThemePrs:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Close stale 'invalid' theme PRs
runs-on: ubuntu-latest
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/top-issues-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
showAndLabelTopIssues:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Update top issues Dashboard.
runs-on: ubuntu-latest
steps:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/update-langs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Update supported languages
on:
schedule:
- cron: "0 0 */30 * *"

jobs:
updateLanguages:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Update supported languages
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3

Check warning

Code scanning / Scorecard

Pinned-Dependencies

score is 7: GitHub-owned GitHubAction not pinned by hash Click Remediation section below to solve this issue

- name: Setup Node
uses: actions/setup-node@v3

Check warning

Code scanning / Scorecard

Pinned-Dependencies

score is 7: GitHub-owned GitHubAction not pinned by hash Click Remediation section below to solve this issue
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Install dependencies
run: npm ci
env:
CI: true

- name: Run update-languages-json.js script
run: npm run generate-langs-json

- name: Create Pull Request if upstream language file is changed
uses: peter-evans/create-pull-request@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies

score is 7: third-party GitHubAction not pinned by hash Click Remediation section below to solve this issue
with:
commit-message: "refactor: update languages JSON"
branch: "update_langs/patch"
delete-branch: true
title: Update languages JSON
body:
"The
[update-langs](https://github.com/anuraghazra/github-readme-stats/actions/workflows/update-langs.yaml)
action found new/updated languages in the [upstream languages JSON
file](https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml)."
labels: "ci, lang-card"
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
139 changes: 139 additions & 0 deletions api/status/pat-info.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/**
* @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 5 minutes.
*/

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

/**
* Simple uptime check fetcher for the PATs.
*
* @param {import('axios').AxiosRequestHeaders} variables
* @param {string} token
*/
const uptimeFetcher = (variables, token) => {
return request(
{
query: `
query {
rateLimit {
remaining
resetAt
},
}`,
variables,
},
{
Authorization: `bearer ${token}`,
},
);
};

const getAllPATs = () => {
return Object.keys(process.env).filter((key) => /PAT_\d*$/.exec(key));
};

/**
* Check whether any of the PATs is expired.
*/
const getPATInfo = async (fetcher, variables) => {
const details = {};
const PATs = getAllPATs();

for (const pat of PATs) {
try {
const response = await fetcher(variables, process.env[pat]);
const errors = response.data.errors;
const hasErrors = Boolean(errors);
const errorType = errors?.[0]?.type;
const isRateLimited =
(hasErrors && errorType === "RATE_LIMITED") ||
response.data.data?.rateLimit?.remaining === 0;

// Store PATs with errors.
if (hasErrors && errorType !== "RATE_LIMITED") {
details[pat] = {
status: "error",
error: {
type: errors[0].type,
message: errors[0].message,
},
};
continue;
} else if (isRateLimited) {
const date1 = new Date();
const date2 = new Date(response.data?.data?.rateLimit?.resetAt);
details[pat] = {
status: "exhausted",
remaining: 0,
resetIn: dateDiff(date2, date1) + " minutes",
};
} else {
details[pat] = {
status: "valid",
remaining: response.data.data.rateLimit.remaining,
};
}
} catch (err) {
// Store the PAT if it is expired.
const errorMessage = err.response?.data?.message?.toLowerCase();
if (errorMessage === "bad credentials") {
details[pat] = {
status: "expired",
};
} else if (errorMessage === "sorry. your account was suspended.") {
details[pat] = {
status: "suspended",
};
} else {
throw err;
}
}
}

const filterPATsByStatus = (status) => {
return Object.keys(details).filter((pat) => details[pat].status === status);
};

const sortedDetails = Object.keys(details)
.sort()
.reduce((obj, key) => {
obj[key] = details[key];
return obj;
}, {});

return {
validPATs: filterPATsByStatus("valid"),
expiredPATs: filterPATsByStatus("expired"),
exhaustedPATs: filterPATsByStatus("exhausted"),
suspendedPATs: filterPATsByStatus("suspended"),
errorPATs: filterPATsByStatus("error"),
details: sortedDetails,
};
};

/**
* Cloud function that returns information about the used PATs.
*/
export default async (_, res) => {
res.setHeader("Content-Type", "application/json");
try {
// Add header to prevent abuse.
const PATsInfo = await getPATInfo(uptimeFetcher, {});
if (PATsInfo) {
res.setHeader(
"Cache-Control",
`max-age=0, s-maxage=${RATE_LIMIT_SECONDS}`,
);
}
res.send(JSON.stringify(PATsInfo, null, 2));
} catch (err) {
// Throw error if something went wrong.
logger.error(err);
res.setHeader("Cache-Control", "no-store");
res.send("Something went wrong: " + err.message);
}
};
103 changes: 103 additions & 0 deletions api/status/up.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/**
* @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 5 minutes.
*/

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

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

/**
* Simple uptime check fetcher for the PATs.
*
* @param {import('axios').AxiosRequestHeaders} variables
* @param {string} token
*/
const uptimeFetcher = (variables, token) => {
return request(
{
query: `
query {
rateLimit {
remaining
}
}
`,
variables,
},
{
Authorization: `bearer ${token}`,
},
);
};

/**
* Creates Json response that can be used for shields.io dynamic card generation.
*
* @param {*} up Whether the PATs are up or not.
* @returns Dynamic shields.io JSON response object.
*
* @see https://shields.io/endpoint.
*/
const shieldsUptimeBadge = (up) => {
const schemaVersion = 1;
const isError = true;
const label = "Public Instance";
const message = up ? "up" : "down";
const color = up ? "brightgreen" : "red";
return {
schemaVersion,
label,
message,
color,
isError,
};
};

/**
* Cloud function that returns whether the PATs are still functional.
*/
export default async (req, res) => {
let { type } = req.query;
type = type ? type.toLowerCase() : "boolean";

res.setHeader("Content-Type", "application/json");

try {
let PATsValid = true;
try {
await retryer(uptimeFetcher, {});
} catch (err) {
PATsValid = false;
}

if (PATsValid) {
res.setHeader(
"Cache-Control",
`max-age=0, s-maxage=${RATE_LIMIT_SECONDS}`,
);
} else {
res.setHeader("Cache-Control", "no-store");
}

switch (type) {
case "shields":
res.send(shieldsUptimeBadge(PATsValid));
break;
case "json":
res.send({ up: PATsValid });
break;
default:
res.send(PATsValid);
break;
}
} catch (err) {
// Return fail boolean if something went wrong.
logger.error(err);
res.setHeader("Cache-Control", "no-store");
res.send("Something went wrong: " + err.message);
}
};
Loading