{%- if source_type and source_user and source_repo and source_type in ("github", "gitlab") -%} {%- if source_type == "github" -%} {%- set source_url = "https://github.com/{}/{}".format(source_user, source_repo) -%} {%- else -%} {%- set source_url = "https://gitlab.com/{}/{}".format(source_user, source_repo) -%} {%- endif -%} {% set repo = source_user + "/" + source_repo %} {% if repo|count > 17 %} {{ source_repo }} {% else %} {{ repo }} {% endif %} 0 0 {%- endif -%}