def check_match(issue, patterns):
    """Check if any pattern matches the given issue

    :param issue: issue to match against
    :type  issue: dict
    :param patterns: patterns to try to match
    :type  patterns: list

    :return: True if any pattern matches
    :rtype:  bool
    """
    for item, rgx in patterns:
        if item == 'title' or item == 'any':
            if rgx.search(issue['title']):
                return True
        if item == 'text' or item == 'any':
            if rgx.search(issue['body']):
                return True
        if item == 'label' or item == 'any':
            for label in issue['labels']:
                if rgx.search(label['name']):
                    return True
    return False