redhat-cop / gitwebhook-operator

Automates the setup and configuration of git webhooks
Apache License 2.0
6 stars 3 forks source link

It does not work when using gitlab and project inside a group. #4

Open varodrig opened 1 year ago

varodrig commented 1 year ago

It seems the source code does not check by ownerType but rather if found out data or not on the user. When using the ownertype: user and user root. It detects as an org instead of a user. however, when using type as org and owner myorg it tries to find the myorg as a user, instead of an org. I tried different samples. this is one: apiVersion: redhatcop.redhat.io/v1alpha1 kind: GitWebhook metadata: name: gitwebhook-gitlab spec: active: true webhookSecret: name: webhook-secret repositoryOwner: myorg ownerType: organization repositoryName: app-name webhookURL: >- https://webhook-app-el-cluster content: json events:

treddy08 commented 1 year ago

I've picked up the same issue.

yaroslavkasatikov commented 6 months ago

The same issue. Would it be possible to take a look into?