Skip to content

Ensure MR labels are available, e.g. not local

Ash McKenzie requested to merge 273358-bundle-exec-danger-dry_run-fails into master

What does this MR do?

This MR fixes running bundle exec danger dry_run locally by checking if helper.gitlab_helper&.mr_labels are available before continuing. helper.gitlab_helper.mr_labels are not available (helper.gitlab_helper is nil actually) when running locally, outside of CI.

Related !45191 (merged)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #273358 (closed)

Edited by Ash McKenzie

Merge request reports

Loading