fleaz / CptHook

Receive webhooks from different applications and post them to IRC channels
MIT License
17 stars 8 forks source link

GitLab: Match most specific namespace, not first one #55

Closed mweinelt closed 3 years ago

mweinelt commented 4 years ago

For "path_with_namespace": "ffda/infra/salt", there is a difference between the following config snippets. Currently the first match is preferred over that with the longest matching prefix.

          'ffda':
            - '#ffda'
          'ffda/infra':
            - '#ffda-infra'

and

          'ffda/infra':
            - '#ffda-infra'
          'ffda':
            - '#ffda'
fleaz commented 4 years ago

Sound like a sane behaviour. Will try to implement it soon'ish :D