Resolve "NoMethodError: undefined method `commit' for nil:NilClass in sidekiq caused by a merge commit in a forked project with upstream project deleted."
requested to merge 45592-nomethoderror-undefined-method-commit-for-nil-nilclass-in-sidekiq-caused-by-a-merge-commit-in-a-forked-project-with-upstream-project-deleted into master
What does this MR do?
Fixes the check in ProcessCommitWorker
so we can process commits on projects that come from a fork of a deleted project.
Are there points in the code the reviewer needs to double check?
Could the specs be simplified?
Why was this MR needed?
It's a bug!
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Conform by the code review guidelines
-
Has been reviewed by a Backend maintainer
-
What are the relevant issue numbers?
Closes #45592 (closed).
Edited by Sean McGivern