actions / labeler

An action for automatically labelling pull requests
MIT License
1.99k stars 419 forks source link

Allow for only applying a label if another label has not been applied (enumerated labels) #781

Open mofosyne opened 6 months ago

mofosyne commented 6 months ago

Was experimenting with

"review complexity : high":
    - changed-files:
        - any-glob-to-any-file:
            - ggml-cuda/**
            - ggml-vulkan.cpp
            - ggml_vk_generate_shaders.py
"review complexity : medium":
    - changed-files:
        - any-glob-to-any-file:
            - .devops/**
            - .github/**
            - ci/**
#'review complexity : low':
...

But realised that there is a possibility that multiple of these tags can apply at the same time. I would like the ability to not label if another label (or in my context a higher priority label) has already been matched.

I hope to also combine it with https://github.com/actions/labeler/issues/486 for a more robust review complexity estimating labeler

HarithaVattikuti commented 6 months ago

Hello @mofosyne Thank you for creating this feature request. We will investigate it and get back to you as soon as we have some feedback.