Categories
Rules
Date
November 15, 2022
The current way of toggling a label using Mergify is usually to write 2 sets of conditions, such as:
As this can be quite cumbersome to write and maintain, it is now possible to toggle a label based on the conditions written a rule. The above example can be simplified with:
This will add or remove the label ci-fail
depending whether the rule matches or not.