def pagure_specific_project_filter(config, message, project=None, *args, **kw):
    """ Particular pagure projects

     Adding this rule allows you to get notifications for one or more
     `pagure.io <https://pagure.io>`_ projects. Specify multiple
     projects by separating them with a comma ','.
     """

    if not pagure_catchall(config, message):
        return False

    project = kw.get('project', project)
    link = fedmsg.meta.msg2link(message, **config)
    if not link:
        return False

    project = project.split(',') if project else []

    valid = False
    for proj in project:
        if '://pagure.io/%s/' % proj.strip() in link:
            valid = True

    return valid
def pagure_specific_project_filter ( config , message , project = None , * args , ** kw ) : if not pagure_catchall ( config , message ) : return False project = kw . get ( 'project' , project ) link = fedmsg . meta . msg2link ( message , ** config ) if not link : return False project = project . split ( ',' ) if project else [ ] valid = False for proj in project : if '://pagure.io/%s/' % proj . strip ( ) in link : valid = True return valid
Particular pagure projects

     Adding this rule allows you to get notifications for one or more
     `pagure.io <https://pagure.io>`_ projects. Specify multiple
     projects by separating them with a comma ','.