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

Merged
merged 52 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
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
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
// "dot-notation": "warn",
// "eqeqeq": [ "error", "smart" ],
// "guard-for-in": "warn",
// "no-alert": "error",
// "no-caller": "error",
"no-alert": "error",
"no-caller": "error",
// "no-case-declarations": "warn",
// "no-div-regex": "warn",
// "no-else-return": "warn",
Expand Down
129 changes: 86 additions & 43 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,95 @@
themes: themes/index.js
doc-translation: docs/*
themes:
- changed-files:
- any-glob-to-any-file:
- themes/index.js

doc-translation:
- changed-files:
- any-glob-to-any-file:
- docs/*

card-i18n:
- src/translations.js
- src/common/I18n.js
- changed-files:
- any-glob-to-any-file:
- src/translations.js
- src/common/I18n.js

documentation:
- readme.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- SECURITY.md
- changed-files:
- any-glob-to-any-file:
- readme.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- SECURITY.md

dependencies:
- package.json
- package-lock.json
- changed-files:
- any-glob-to-any-file:
- package.json
- package-lock.json

lang-card:
- api/top-langs.js
- src/cards/top-languages-card.js
- src/fetchers/top-languages-fetcher.js
- tests/fetchTopLanguages.test.js
- tests/renderTopLanguagesCard.test.js
- tests/top-langs.test.js
- changed-files:
- any-glob-to-any-file:
- api/top-langs.js
- src/cards/top-languages-card.js
- src/fetchers/top-languages-fetcher.js
- tests/fetchTopLanguages.test.js
- tests/renderTopLanguagesCard.test.js
- tests/top-langs.test.js

repo-card:
- api/pin.js
- src/cards/repo-card.js
- src/fetchers/repo-fetcher.js
- tests/fetchRepo.test.js
- tests/renderRepoCard.test.js
- tests/pin.test.js
- changed-files:
- any-glob-to-any-file:
- api/pin.js
- src/cards/repo-card.js
- src/fetchers/repo-fetcher.js
- tests/fetchRepo.test.js
- tests/renderRepoCard.test.js
- tests/pin.test.js

stats-card:
- api/index.js
- src/cards/stats-card.js
- src/fetchers/stats-fetcher.js
- tests/fetchStats.test.js
- tests/renderStatsCard.test.js
- tests/api.test.js
- changed-files:
- any-glob-to-any-file:
- api/index.js
- src/cards/stats-card.js
- src/fetchers/stats-fetcher.js
- tests/fetchStats.test.js
- tests/renderStatsCard.test.js
- tests/api.test.js

wakatime-card:
- api/wakatime.js
- src/cards/wakatime-card.js
- src/fetchers/wakatime-fetcher.js
- tests/fetchWakatime.test.js
- tests/renderWakatimeCard.test.js
- changed-files:
- any-glob-to-any-file:
- api/wakatime.js
- src/cards/wakatime-card.js
- src/fetchers/wakatime-fetcher.js
- tests/fetchWakatime.test.js
- tests/renderWakatimeCard.test.js
- tests/wakatime.test.js

gist-card:
- api/gist.js
- src/cards/gist-card.js
- src/fetchers/gist-fetcher.js
- tests/fetchGist.test.js
- tests/renderGistCard.test.js
- tests/gist.test.js
ranks: src/calculateRank.js
- changed-files:
- any-glob-to-any-file:
- api/gist.js
- src/cards/gist-card.js
- src/fetchers/gist-fetcher.js
- tests/fetchGist.test.js
- tests/renderGistCard.test.js
- tests/gist.test.js

ranks:
- changed-files:
- any-glob-to-any-file:
- src/calculateRank.js

ci:
- .github/workflows/*
- scripts/*
infrastructure: .eslintrc.json
- changed-files:
- any-glob-to-any-file:
- .github/workflows/*
- scripts/*

infrastructure:
- changed-files:
- any-glob-to-any-file:
- .eslintrc.json
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Run empty issues closer action
uses: rickstaa/empty-issues-closer-action@37f2cd30a4fb97504bbb570dc73264cfa522dee3 # v1.1.40
uses: rickstaa/empty-issues-closer-action@d2c9a91e632aadd8acabdb33babc55c69c4ca978 # v1.1.62
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-theme-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
if: github.repository == 'anuraghazra/github-readme-stats'
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
2 changes: 1 addition & 1 deletion .github/workflows/ossf-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: SARIF file
path: results.sarif
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/top-issues-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run top issues action
uses: rickstaa/top-issues-action@da2fb7f2bd61828135e0971f8d33efb1a079e9a9 # v1.3.65
uses: rickstaa/top-issues-action@fa1b14384871ebbc2f341f953a728e8370788992 # v1.3.87
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
2 changes: 2 additions & 0 deletions api/pin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default async (req, res) => {
locale,
border_radius,
border_color,
description_lines_count,
} = req.query;

res.setHeader("Content-Type", "image/svg+xml");
Expand Down Expand Up @@ -96,6 +97,7 @@ export default async (req, res) => {
border_color,
show_owner: parseBoolean(show_owner),
locale: locale ? locale.toLowerCase() : null,
description_lines_count,
}),
);
} catch (err) {
Expand Down
4 changes: 4 additions & 0 deletions api/wakatime.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default async (req, res) => {
api_domain,
border_radius,
border_color,
display_format,
disable_animations,
} = req.query;

res.setHeader("Content-Type", "image/svg+xml");
Expand Down Expand Up @@ -83,6 +85,8 @@ export default async (req, res) => {
locale: locale ? locale.toLowerCase() : null,
layout,
langs_count,
display_format,
disable_animations: parseBoolean(disable_animations),
}),
);
} catch (err) {
Expand Down