Skip to content

Use the correct project visibility in system hooks

Bob Van Landuyt requested to merge bvl-fix-system-hook-project-visibility into master

What does this MR do?

This makes sure the Project#visbility is used in system webhooks.

This uses Gitlab::VisibilityLevel.string_options which isn't used for translations, rather than Gitlab::VisibilityLevel.options which includes namespaces for translations.

Does this MR meet the acceptance criteria?

  • Changelog entry added, if necessary
  • Tests added for this feature/bug
  • Review
    • Has been reviewed by Backend

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39496

Edited by Sean McGivern

Merge request reports