Skip to content

Fix a case when MergeRequest are created with nil as attributes

Rémy Coutable requested to merge fix-case-when-merge_request-is-nil into master

What does this MR do and why?

When a pipeline for a stable branch failed, we created a MergeRequest object with nil given as initial attributes, which resulted in https://sentry.gitlab.net/gitlab/triage-ops/issues/4166853/?environment=production.

This merge request ensures that if given attributes are nil, we just return and don't create a MergeRequest object.

Action items

Edited by Rémy Coutable

Merge request reports