Closed sentry-io[bot] closed 5 years ago
I did not realize the breadth of runtime errors we were having!
Yea, I was similarly a little surprised. Though, of course people have reported them from time to time. It's nice that we can address them proactively!
I believe that I've managed to figure out the edge-case for which this bug can happen. If the user does not specify a branch, the Scrutinizer service will use the default_branch
instead (see here: https://github.com/badges/shields/blob/b3be4d94d5ef570b8daccfd088c343a958988843/services/scrutinizer/scrutinizer-base.js#L20). However, if the default branch does not have any analysis data available, we will try to destructure undefined. This will probably happen temporarily when the user sets the default branch to one for which the CI has not yet run.
I'll submit a fix.
Sentry Issue: SHIELDS-36