Skip to content

Commit c8796ed

Browse files
committed
Removed site name from email subject and body - Addressed code reviews
1 parent 57da335 commit c8796ed

8 files changed

+13
-15
lines changed

warehouse/templates/email/added-as-collaborator.body.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
You have been added as a collaborator to the PyPI project {{ project }}
1+
You have been added as a collaborator to the project {{ project }}
22
by {{ submitter }}.
33

44
{% if role == 'Owner' -%}

warehouse/templates/email/collaborator-added.body.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A new collaborator has been added to a project you own on PyPI:
1+
A new collaborator has been added to a project you own:
22

33
Username: {{ username }}
44
Role: {{ role }}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
A collaborator's role has been changed in a project you own on PyPI:
1+
A collaborator's role has been changed in a project you own:
22

33
Username: {{ username }}
44
New role: {{ role }}
55
Collaborator for: {{ project }}
66
Changed by: {{ submitter }}
77

8-
If this was a mistake, you can reply to this email directly to communicate with
8+
If this was a mistake, you can email [email protected] to communicate with
99
the PyPI administrators.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Role changed on PyPI for project {{ project }}
1+
Role changed for project {{ project }}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
A collaborator's role has been removed from a project you own on PyPI:
1+
A collaborator's role has been removed from a project you own:
22

33
Username: {{ username }}
44
Role was previously: {{ role }}
55
Collaborator for: {{ project }}
66
Changed by: {{ submitter }}
77

8-
If this was a mistake, you can reply to this email directly to communicate with
8+
If this was a mistake, you can email [email protected] to communicate with
99
the PyPI administrators.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Role removed on PyPI for project {{ project }}
1+
Role removed for project {{ project }}
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
Your role in the {{ project }} project has been changed by {{ submitter }}.
22

3-
{% if role == 'Owner' %}
3+
{% if role == 'Owner' -%}
44
You are now a project owner. This means that you may add other collaborators,
55
upload releases for the project, delete files and releases, or delete the entire
66
project.
7-
{% endif %}
8-
9-
{% if role == 'Maintainer' %}
7+
{%- elif role == 'Maintainer' -%}
108
You are now a project maintainer. This means that you may upload releases for
119
the project. You cannot add collaborators, delete files, delete releases, or
1210
delete the project.
13-
{% endif %}
11+
{%- endif %}
1412

15-
If this was a mistake, you can reply to this email directly to communicate with
13+
If this was a mistake, you can email [email protected] to communicate with
1614
the PyPI administrators.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Role changed on PyPI for project {{ project }}
1+
Role changed for project {{ project }}

0 commit comments

Comments
 (0)