-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Bug: Unknown contribution type error when trying to run the npm run contributors:add command #155
Comments
Hey @jdwilkin4. Have you checked this locally? |
yes, I have included screenshots in the post above 👍 |
Here is the PR that triggered it Here is the line that needs to be changed |
Hey @jdwilkin4, I've tried it locally, and yes. It seems that this was a manual entry. And "web development" is not included in the list of emoji key and contribution type. The solution is precisely what you described, by replacing the "web development" with "code". And thanks for the suggestion to have the additional check. We will take that into account. :) Do you want to work on this issue? |
Sure, I can create a PR for that fix 👍 |
Awesome! Thank you, @jdwilkin4! |
Thanks, @jdwilkin4! |
Describe the bug
I tried running the
npm run contributors:add
command locally, and ran into this errorError: Unknown contribution type web development for contributor
Here is the complete screenshot
The error is happening because web development is not a valid entry for the contributions array
the fix would be to change that to
code
since that is a valid entryBut also, for the long term it might be nice to have an additional check in place to double check that the contributions array only holds valid values.
That way if a user tries to contribute to the guestbook manually with an invalid value, then the check will catch that.
Steps to reproduce
npm run contributors:add
commandBrowsers
No response
Additional context (Is this in dev or production?)
No response
Code of Conduct
Contributing Docs
The text was updated successfully, but these errors were encountered: