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

Fix empty contribution showing high-level blocks #54

Merged
merged 6 commits into from
Dec 28, 2024

Conversation

siddharthkoli
Copy link
Contributor

This PR fixes the issue where for a user having an empty contribution graph for a year, the ASCII art would have a grid filled with all medium blocks.

Fixed issue with the normalization which had an unchecked divide by 0.

Fixes #50

Before:
image

After:
image

@chrisreddington
Copy link
Collaborator

Thanks for the contribution @siddharthkoli! I've added in a test to verify the empty blocks scenario as well 😄 This will make its way into the next release. Thank you for your support here! ✨

@chrisreddington chrisreddington merged commit bdd428f into github:main Dec 28, 2024
2 checks passed
@siddharthkoli
Copy link
Contributor Author

Thanks a lot @chrisreddington! This was my first open source contribution. Looking forward to making more contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: ASCII art for empty contribution shows grid filled with all high-level blocks
2 participants