{% macro breadcrumb(repo, ref, path_parts, display_ref_prefix) %} {% if display_ref_prefix -%} {{ scmreflabel }}: {{ ref }} {% endif -%} {% for part in path_parts -%} {% if loop.last %}{{ part.name }}{% else %}{{ part.name }}/{% endif -%} {% endfor -%} {% endmacro %} {% macro commit_event(repo, commit, full=False, skip_body=False, skip_date=False, skip_refs=False) %}
{{commit.prefix|default('')}}{{commit.short_id}} {% if commit.idextras -%} {% for idextra in commit.idextras -%} {{idextra.name}} {% endfor -%} {% endif -%} — {% set author_user = lookup_user(commit.author_email) %} {% if author_user %} {{commit.author_name}} {% else %} {{commit.author_name}} {% endif %} {% if commit.parents %} {{icon('code-branch', cls="sm")}} {% for parent in commit.parents %} {{parent.short_id}} {% if not loop.last %} + {% endif %} {% endfor %} {% endif %} {% if commit.refs and not skip_refs %} {% for ref in commit.refs -%} {{ref.name}} {% endfor %} {% endif %} {% if not skip_date %} {{ commit.date | date }} {% endif %}
{% if not skip_body %}
{% if full %}
{{ commit.desc }}
{% else %}
{{ commit.desc_first_line }}
{% endif %}
{% endif %} {% endmacro %}