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

Show year so far when clicking on current year #317

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Show year so far when clicking on current year #317

merged 1 commit into from
Jul 25, 2024

Conversation

FdelMazo
Copy link
Contributor

Now, when clicking on the current year, the lastDay is set to the current date. This has two impacts:

  • The average commit per day is now calculated taking the days in the year so far, instead of the whole year
  • The Jan 1 -> Dec 31 on the total contributions chart is now replaced with a Jan 1 -> <currentdate>

image

Closes #316

@jasonlong
Copy link
Owner

@FdelMazo I was on vacation last week, but I'm back now and will check this out shortly. Thanks for the contribution.

@jasonlong
Copy link
Owner

Had a chance to test this out today and it seems to work great. Thanks for the contribution, @FdelMazo.

I will publish a new release after merging.

@jasonlong jasonlong merged commit b7b3a7c into jasonlong:main Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should the average count consider the whole current year?
2 participants