(hook, j, commit)
return u' '.join(line)
Create a formatted line summarizing the single commit `commit`.
Create a formatted line summarizing the single commit `commit`.
Create a formatted line summarizing the single commit commit .
def _make_commit_line(hook, j, commit):
    """
    Create a formatted line summarizing the single commit `commit`.
    """
    line = []

    original = j['original']
    config = hook.config or {}
    show_raw_author = config.get('show_raw_author', False)

    line.append(u'{RESET}[{BLUE}{name}{RESET}]'.format(
        name=original['repository']['name'],
        **HookService.colors
    ))

    line.append(u'{ORANGE}{0}{RESET}'.format(
        commit['raw_author'] if show_raw_author else commit['author'],
        **HookService.colors
    ))

    line.append(u'{GREEN}{0}{RESET}'.format(
        commit['node'][:7],
        **HookService.colors
    ))

    line.append(u'-')
    line.append(commit['message'])

    return u' '.join(line)
def _make_commit_line ( hook , j , commit ) : line = [ ] original = j [ 'original' ] config = hook . config or { } show_raw_author = config . get ( 'show_raw_author' , False ) line . append ( u'{RESET}[{BLUE}{name}{RESET}]' . format ( name = original [ 'repository' ] [ 'name' ] , * * HookService . colors ) ) line . append ( u'{ORANGE}{0}{RESET}' . format ( commit [ 'raw_author' ] if show_raw_author else commit [ 'author' ] , * * HookService . colors ) ) line . append ( u'{GREEN}{0}{RESET}' . format ( commit [ 'node' ] [ : 7 ] , * * HookService . colors ) ) line . append ( u'-' ) line . append ( commit [ 'message' ] ) return u' ' . join ( line )