Fix `CommitLinter#{files,lines}_changed` when commit isn't found
What does this MR do and why?
This works around gitlab-org/gitlab#227814 for the rare cases when a commit cannot be found. It's a shame Danger is breaking for this optional check anyway, so we can just rescue, return 0
, and move on.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Rémy Coutable