Skip to content

v8.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Dec 20:53
· 99 commits to master since this release

This release ships a new option to define the type of condition that will evaluate the exceptions' matchers:

Exceptions

Property Type Required Description
matchers_conditions "OR" | "AND" no Defines if at least one of the matchers
should match ("OR" which is the default value)
or if all the matchers should match ("AND")

If matchers_conditions is "OR" (default value), only one match from the matchers is needed for the exception to be picked. But if this option is "AND" then all of the matcher must match for the exception to be picked, in this case if any matcher does't match, then the exception will be discarded.

For example, the next exception will match the users with user name "John Doe" or "Jack Sparrow", the admin users or the users with a device Android (because matchers_conditions is by default "OR"):

...
exceptions:
  - user:
    - John Doe
    - Jack Sparrow
    is_admin: true
    device: Android
    order:
      ...

But the next exception will match all admins that are using an iPhone device excluding "ElChiniNet":

...
exceptions:
  - not_user: ElChiniNet
    is_admin: true
    device: iPhone
    matchers_conditions: AND
    order:
      ...

🚀 Features

  • Add an option to set the exceptions' matchers conditions

🧩 Dependencies

  • [Dependencies]: Bump the dependencies-dev group with 4 updates

📝 Documentation

  • Add an option to set the exceptions' matchers conditions