Skip to content

Fix uninitialized constant in update protected branch

Sashi Kumar Kumaresan requested to merge sk/329422-fix-protected-branch into master

What does this MR do?

Related to #329422 (closed)

This change fixes the uninitialized constant error when updating a protected branch while creating a security policy project. Specs were not covered initially because the condition works only when BranchHooksService is invoked from post_receive which works only with end-to-end tests.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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
Edited by Sashi Kumar Kumaresan

Merge request reports