git-report
git-report copied to clipboard
Have json.Unmarshal exception on some commits message
I Have debug it today, found that: When the jsonStr: [{"commit": "81effe674dfe5d0bfd242112ffa61051a20580e8","refs": "","subject": "templates/user/profile: added rel="me" to website link on user profile (#5485)","body": "* Added rel="me" to website link on user profile
See issue #5008
- Added
nofollowas per feedback ","author": {"name": "Federico Culloca","email": "[email protected]","date": "2018-11-13T02:49:30+01:00"},"commiter": {"name": "Unknwon","email": "[email protected]","date": "2018-11-12T20:49:30-05:00"}}]
It has an exception on these code: invalid character 'm' after object key:value pair
var commits []*GitCommit err = json.Unmarshal([]byte(jsonStr), &commits) if err != nil { return nil, err }
@andy-y-li tks you for using and reporting issues for my project :D
Unfortunately, I don't have much free time recently. I would glad to accept any PR addressing this issue.