{% extends "base.txt.j2" %}

{% if config.type == "GitHub" %}
    {% set ci_provider = "GitHub Actions" %}
{% elif config.type == "GitLab" %}
    {% set ci_provider = "GitLab CI" %}
{% endif %}

{% block content %}
Hello {{ recipient }}!

{% if recipient == auth_user.gh_login -%}
You removed a "Trusted Publishing" configuration for {{ ci_provider }} from your crate "{{ krate.name }}".
{%- else -%}
crates.io user {{ auth_user.gh_login }} removed a "Trusted Publishing" configuration for {{ ci_provider }} from a crate that you manage ("{{ krate.name }}").
{%- endif %}

{% if config.type == "GitHub" -%}
The removed configuration was for the workflow file at https://github.com/{{ config.repository_owner }}/{{ config.repository_name }}/blob/HEAD/.github/workflows/{{ config.workflow_filename }}
{%- if config.environment %} using the `{{ config.environment }}` environment
{%- endif -%}
.
{% elif config.type == "GitLab" -%}
The removed configuration was for the workflow file at https://gitlab.com/{{ config.namespace }}/{{ config.project }}/-/blob/HEAD/{{ config.workflow_filepath }}
{%- if config.environment %} using the `{{ config.environment }}` environment
{%- endif -%}
.
{% endif %}
If you did not make this change and you think it was made maliciously, you can email help@crates.io for assistance.
{% endblock %}
