Skip to content

Protected packages: Use CheckRuleExistenceService in npm push protection

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

🛠 with at Siemens

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

MR Checklist (@gerardo-navarro)

Screenshots or screen recordings

No frontend change. Only a small backend refactoring

How to set up and validate locally

  1. Execute the test for Npm::CreatePackageService
bundle exec rspec spec/services/packages/npm/create_package_service_spec.rb

Related to #323970

Edited by Gerardo Navarro

Merge request reports

Loading