Taskotron task any particular or changed outcome(s)

    With this rule, you can limit messages to only those task results
    with any particular outcome(s) (FAILED and NEEDS_INSPECTION by default)
    or those with changed outcomes. This rule is a handy way of filtering
    a very useful use case - being notified when either task requires
    your attention or the outcome has changed since the last time the task
    ran for the same item (e.g. a koji build).

    You can specify several outcomes by separating them with a comma ',',
    i.e.: ``PASSED,FAILED``.

    The full list of supported outcomes can be found in the libtaskotron
    `documentation <https://docs.qadevel.cloud.fedoraproject.org/
    libtaskotron/latest/resultyaml.html#minimal-version>`_.

def taskotron_task_particular_or_changed_outcome(config, message,
                                                 outcome='FAILED,NEEDS_INSPECTION'):
    """ Taskotron task any particular or changed outcome(s)

    With this rule, you can limit messages to only those task results
    with any particular outcome(s) (FAILED and NEEDS_INSPECTION by default)
    or those with changed outcomes. This rule is a handy way of filtering
    a very useful use case - being notified when either task requires
    your attention or the outcome has changed since the last time the task
    ran for the same item (e.g. a koji build).

    You can specify several outcomes by separating them with a comma ',',
    i.e.: ``PASSED,FAILED``.

    The full list of supported outcomes can be found in the libtaskotron
    `documentation <https://docs.qadevel.cloud.fedoraproject.org/
    libtaskotron/latest/resultyaml.html#minimal-version>`_.
    """

    return taskotron_task_outcome(config, message, outcome) or \
           taskotron_changed_outcome(config, message)