I am setting up webhooks for my project.
Currently we can only set the environment on which we want to run the webhook during a modification. It would be interesting to be even more specific and to do it by environment branch. There are a number of cases where this can be very useful.
In my case I want to trigger gitlab pipelines when modifying environments, I want to do it on all “parent” environments but not on the branches.
For example I have 2 branches for my staging environment, I only want to trigger a pipeline for my staging environment, but when modifying a variable I have three calls on the webhook (1 for the parent environment and 2 for branches)