[T377023] - CI/CD Component to prevent schema deletions

This MR aims to create a new GitLab CI/CD Component that can be used from other repositories. The component will check if schemes have been deleted in a Merge Request.

From schemas-event-secondary and primary we'll only need to add something like:

include:
  - component: $CI_SERVER_FQDN/repos/data-engineering/jsonschema-tools/schema-deletion@master
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'

The folder to check and the default branch can be passed as arguments.

Bug: T377023

Merge request reports

Loading