-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When I run
name-your-contributors -u mntnr -r name-your-contributors -t $GITHUB_TOKEN > nyc.json
cat nyc.json | whodidwhatI get this (same output as name-your-... | whodidwhat):
TypeError: Cannot read property 'map' of undefined
at cat (/usr/lib/node_modules/whodidwhat/src/index.js:20:20)
at loopField (/usr/lib/node_modules/whodidwhat/src/index.js:23:30)
at typeMap.map (/usr/lib/node_modules/whodidwhat/src/index.js:46:27)
at Array.map (<anonymous>)
at byUser (/usr/lib/node_modules/whodidwhat/src/index.js:46:11)
at process._tickCallback (internal/process/next_tick.js:68:7)I had a quick look at the code but couldn't really understand why that was happening.
To reproduce this, do the following:
npm i -g name-your-contributors whodidwhat
export GITHUB_TOKEN=yourTokenHere
name-your-contributors -u mntnr -r name-your-contributors -t $GITHUB_TOKEN > nyc.json
cat nyc.json | whodidwhatEDIT: This doesn't happen when using cli.js on a repo clone.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels