You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thisconfigurationallowstheworkflowfileathttps://gitlab.com/rust-lang/my-crate/-/blob/HEAD/.gitlab-ci.yml to publish new versions of this crate. The workflow must use the `production` environment.
Copy file name to clipboardExpand all lines: src/email/templates/trustpub_config_created/body.txt.j2
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,29 @@
1
1
{%extends"base.txt.j2"%}
2
2
3
+
{%ifsaved_config.type == "GitHub"%}
4
+
{%setci_provider = "GitHub Actions"%}
5
+
{%elifsaved_config.type == "GitLab"%}
6
+
{%setci_provider = "GitLab CI"%}
7
+
{%endif%}
8
+
3
9
{%blockcontent%}
4
10
Hello {{ recipient }}!
5
11
6
12
{%ifrecipient == auth_user.gh_login -%}
7
-
You added a new "Trusted Publishing" configuration for GitHub Actions to your crate "{{ krate.name }}". Trusted publishers act as trusted users and can publish new versions of the crate automatically.
13
+
You added a new "Trusted Publishing" configuration for {{ ci_provider }} to your crate "{{ krate.name }}". Trusted publishers act as trusted users and can publish new versions of the crate automatically.
8
14
{%- else -%}
9
-
crates.io user {{ auth_user.gh_login }} added a new "Trusted Publishing" configuration for GitHub Actions to a crate that you manage ("{{ krate.name }}"). Trusted publishers act as trusted users and can publish new versions of the crate automatically.
15
+
crates.io user {{ auth_user.gh_login }} added a new "Trusted Publishing" configuration for {{ ci_provider }} to a crate that you manage ("{{ krate.name }}"). Trusted publishers act as trusted users and can publish new versions of the crate automatically.
10
16
{%- endif%}
11
17
18
+
{%ifsaved_config.type == "GitHub" -%}
12
19
This configuration allows the workflow file at https://github.com/{{ saved_config.repository_owner }}/{{ saved_config.repository_name }}/blob/HEAD/.github/workflows/{{ saved_config.workflow_filename }} to publish new versions of this crate.
13
20
{%- ifsaved_config.environment%} The workflow must use the `{{ saved_config.environment }}` environment (https://github.com/{{ saved_config.repository_owner }}/{{ saved_config.repository_name }}/deployments/{{ saved_config.environment }}).
14
21
{%- endif%}
15
-
22
+
{%elifsaved_config.type == "GitLab" -%}
23
+
This configuration allows the workflow file at https://gitlab.com/{{ saved_config.namespace }}/{{ saved_config.project }}/-/blob/HEAD/{{ saved_config.workflow_filepath }} to publish new versions of this crate.
24
+
{%- ifsaved_config.environment%} The workflow must use the `{{ saved_config.environment }}` environment.
25
+
{%- endif%}
26
+
{%endif%}
16
27
If you did not make this change and you think it was made maliciously, you can remove the configuration from the crate via the "Settings" tab on the crate's page.
17
28
18
29
If you are unable to revert the change and need to do so, you can email [email protected] for assistance.
You removed a "Trusted Publishing" configuration for GitHub Actions from your crate "{{ krate.name }}".
13
+
You removed a "Trusted Publishing" configuration for {{ ci_provider }} from your crate "{{ krate.name }}".
8
14
{%- else -%}
9
-
crates.io user {{ auth_user.gh_login }} removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage ("{{ krate.name }}").
15
+
crates.io user {{ auth_user.gh_login }} removed a "Trusted Publishing" configuration for {{ ci_provider }} from a crate that you manage ("{{ krate.name }}").
10
16
{%- endif%}
11
17
18
+
{%ifconfig.type == "GitHub" -%}
12
19
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 }}
13
20
{%- ifconfig.environment%} using the `{{ config.environment }}` environment
14
21
{%- endif -%}
15
22
.
16
-
23
+
{%elifconfig.type == "GitLab" -%}
24
+
The removed configuration was for the workflow file at https://gitlab.com/{{ config.namespace }}/{{ config.project }}/-/blob/HEAD/{{ config.workflow_filepath }}
25
+
{%- ifconfig.environment%} using the `{{ config.environment }}` environment
26
+
{%- endif -%}
27
+
.
28
+
{%endif%}
17
29
If you did not make this change and you think it was made maliciously, you can email [email protected] for assistance.
0 commit comments