def _construct_summary(relevant_commits):
    """
    Returns an appropriate summary for the given
    commits

    :param list[Commit] relevant_commits:
    :rtype: unicode
    """
    if not relevant_commits or len(relevant_commits) == 0:
        return 'Autogenerated pull request'
    return relevant_commits[0].summary
