Some commits have authors with user.email in invalid format, including characters like \n causing eventual breaks in the json generation for reading by the API.
$ ./huskyci-client
[HUSKYCI][*] PRJ-staging -> user@gitlab.com:prj/test.git
[HUSKYCI][*] huskyCI analysis started! 5917dde3-8fec-4279-bbbc-c74e216cb5c6
[HUSKYCI][ERROR] Monitoring analysis 5917dde3-8fec-4279-bbbc-c74e216cb5c6: huskyCI encountered an error trying to execute this analysis: invalid character '\n' in string literal
Proposed Changes
This PR proposes to sanitize the user.email so that the output is always a valid json. No break changes
Description
Some commits have authors with user.email in invalid format, including characters like \n causing eventual breaks in the json generation for reading by the API.
Proposed Changes
This PR proposes to sanitize the user.email so that the output is always a valid json. No break changes
Testing
Thks @fguisso and @henriporto