Skip to content

Conversation

@rickstaa
Copy link
Collaborator

@rickstaa rickstaa commented Nov 21, 2022

This commit prevents confusion about the Contributed to stat. Currently, only the last year's results are shown, but it looks like it is the all-time contribution count (see #2269). This commit adds a ' (last year)' suffix to prevent this confusion from happening.

Old card

Anurag's GitHub stats

[![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats)

New card

Anurag's GitHub stats

[![Anurag's GitHub stats](https://github-readme-stats-git-fixrepo-7dd470-github-readme-stats-team.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats)

@rickstaa rickstaa added the bug Something isn't working. label Nov 21, 2022
@vercel
Copy link

vercel bot commented Nov 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
github-readme-stats ✅ Ready (Inspect) Visit Preview Nov 22, 2022 at 8:14AM (UTC)

@codecov
Copy link

codecov bot commented Nov 21, 2022

Codecov Report

Base: 96.67% // Head: 96.67% // No change to project coverage 👍

Coverage data is based on head (877df5e) compared to base (b2e34ac).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 877df5e differs from pull request most recent head dc60b1f. Consider uploading reports for the commit dc60b1f to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2274   +/-   ##
=======================================
  Coverage   96.67%   96.67%           
=======================================
  Files          22       22           
  Lines        3824     3824           
  Branches      322      322           
=======================================
  Hits         3697     3697           
  Misses        125      125           
  Partials        2        2           
Impacted Files Coverage Δ
src/cards/stats-card.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

This commit prevents confusion about the Contributed to stat. Currently,
only the last year's results are shown, but it looks like it is the
all-time contribution count (see #2269). This commit adds a ' (last year)'
suffix to prevent this confusion from happening.
@rickstaa rickstaa force-pushed the fix_repo_contrib_confusion branch from 877df5e to dc60b1f Compare November 22, 2022 08:14
@rickstaa rickstaa merged commit ad3726e into master Nov 22, 2022
@rickstaa rickstaa deleted the fix_repo_contrib_confusion branch November 22, 2022 08:18
Repository owner deleted a comment from Elprimojr69 Dec 20, 2022
'g[transform="translate(0, 100)"]>.stagger>.stat.bold',
).textContent,
).toMatchInlineSnapshot(`"参与项目数:"`);
).toMatchInlineSnapshot(`"参与项目数 (last year):"`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parenthesized (star), (commit), (PR), and (issue) above are annotating the Chinese terms , 提交, 拉取请求, and 问题.
(last year) breaks parallelism both syntactically (half-width vs full-width parentheses) and semantically (should be "过去一年" rather than "last year").

I understand it's an i18n problem. Maybe worth tracking it somewhere? @anuraghazra

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liyishuai, you are 100% correct. When I added that code, I didn't have time to implement the i18n translations; feel free to create an issue and implement a PR. I'm happy to review it. I think you should wait until #2053 (comment) is implemented since this will change the translation pipeline a bit.

devantler pushed a commit to devantler/github-readme-stats that referenced this pull request May 1, 2023
This commit prevents confusion about the Contributed to stat. Currently,
only the last year's results are shown, but it looks like it is the
all-time contribution count (see anuraghazra#2269). This commit adds a ' (last year)'
suffix to prevent this confusion from happening.
necofuryai added a commit to necofuryai/github-readme-stats that referenced this pull request May 19, 2025
This commit prevents confusion about the Contributed to stat. Currently,
only the last year's results are shown, but it looks like it is the
all-time contribution count (see anuraghazra#2269). This commit adds a ' (last year)'
suffix to prevent this confusion from happening.
xhayper pushed a commit to xhayper/github-readme-stats that referenced this pull request Jul 2, 2025
This commit prevents confusion about the Contributed to stat. Currently,
only the last year's results are shown, but it looks like it is the
all-time contribution count (see anuraghazra#2269). This commit adds a ' (last year)'
suffix to prevent this confusion from happening.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. high-priority High priority issue or PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants