(cls, line, payload)
return prefix + line
Prefixes lines with [JobName] and adds colours
Prefixes lines with [JobName] and adds colours
Prefixes lines with [ JobName ] and adds colours
def _prefix_line(cls, line, payload):
        """
        Prefixes lines with [JobName] and adds colours
        """
        prefix = u'{RESET}[{BLUE}{name}{RESET}] '.format(
            # Project names may be encoded depending on the version of
            # jekins being used.
            name=urllib.unquote(payload['name']),
            **HookService.colors
        )
        return prefix + line
def _prefix_line ( cls , line , payload ) : prefix = u'{RESET}[{BLUE}{name}{RESET}] ' . format ( # Project names may be encoded depending on the version of # jekins being used. name = urllib . unquote ( payload [ 'name' ] ) , * * HookService . colors ) return prefix + line