{% set mine_users = (state.usernames | default({})).values() | list %} {% if mrs %} {% set mine_count = [] %} {% set approved_count = [] %} {% for m in mrs %} {% if m.author in mine_users %}{% if mine_count.append(1) %}{% endif %}{% endif %} {% if m.approved %}{% if approved_count.append(1) %}{% endif %}{% endif %} {% endfor %}
{{ mrs | length }} total
{% if mine_count %}
{{ mine_count | length }} mine
{% endif %} {% if approved_count %}
{{ approved_count | length }} approved
{% endif %}
{% for m in mrs %} {% endfor %}
Repo Title Author Branches Status Info
{{ m.repo_name }} {{ m.title }} !{{ m.iid }} {{ m.author }} {{ m.source_branch }} {{ m.target_branch }} {{ m.state }} {% if m.user_notes_count %} {{ m.user_notes_count }} {% endif %} {% if m.approved %} {% endif %}
{% else %}

No open merge requests.

{% endif %}