warren830 opened a new pull request, #3758:
URL: https://github.com/apache/incubator-devlake/pull/3758

   ### Summary
   According to issue#3757, user met the error which related to line 67 in 
subtask `enrichApiBuildWithStages`
   I checked the code of that line `build.JobName = strings.TrimSpace(str[0])`, 
I can only assume the error was caused by `str[0]` which means len(str) = 0.
   To avoid this panic, I tried to add some check to avoid panic by the 
following situations:
   1. After splitting stage's buildName by '#', and the string list of that 
result has less than 2 elements, we can just ignore this build
   2. If the last element of the string list above is not a number, which means 
we got an error after converting it to number, then we again ignore the build
   
   ### Does this close any open issues?
   Relates to #3757 
   
   ### Screenshots
   Include any relevant screenshots here.
   
   ### Other Information
   Any other information that is important to this PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to