def get_commits_content(commits_data, is_truncated=False):
    commits_content = u''
    for commit in commits_data[:COMMITS_LIMIT]:
        commits_content += COMMIT_ROW_TEMPLATE.format(commit_short_sha=get_short_sha(commit.get('sha')), commit_url=commit.get('url'), commit_msg=commit.get('message').partition('\n')[0])
    if (len(commits_data) > COMMITS_LIMIT):
        commits_content += COMMITS_MORE_THAN_LIMIT_TEMPLATE.format(commits_number=(len(commits_data) - COMMITS_LIMIT))
    elif is_truncated:
        commits_content += COMMITS_MORE_THAN_LIMIT_TEMPLATE.format(commits_number='').replace('  ', ' ')
    return commits_content.rstrip()
def get_commits_content(commits_data, is_truncated=False):
    commits_content = u
    for commit in commits_data[:COMMITS_LIMIT]:
        commits_content += COMMIT_ROW_TEMPLATE.format(commit_short_sha=get_short_sha(commit.get('sha')), commit_url=commit.get('url'), commit_msg=commit.get('message').partition('\n')[0])
    if (len(commits_data) > COMMITS_LIMIT):
        commits_content += COMMITS_MORE_THAN_LIMIT_TEMPLATE.format(commits_number=(len(commits_data) - COMMITS_LIMIT))
    elif is_truncated:
        commits_content += COMMITS_MORE_THAN_LIMIT_TEMPLATE.format(commits_number=).replace('  ', ' ')
    return commits_content.rstrip()