Skip to content

Commit 906a5e5

Browse files
authored
Merge pull request #30 from ONS-Innovation/patch_contact_button
updated email template
2 parents e34a045 + c215b73 commit 906a5e5

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/app.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,14 @@ def load_file(filename: str) -> dict:
393393

394394
mail_link = (
395395
f"mailto:{','.join(points_of_contact)}"
396-
f"?subject={selected_repo['Repository']}%20-%20GitHub%20Usage%20Policy%20Recommendations"
397-
f"&body=Hello%2C%0A%0AWe%20have%20identified%20some%20issues%20with%20your%20repository%20-%20{selected_repo['Repository']}%20-%20which%20breach%20parts%20of%20the%20GitHub%20Usage%20Policy.%0A"
398-
"Please%20review%20the%20following%20rules%20and%20take%20the%20necessary%20actions%20to%20resolve%20them.%0A%0A"
399-
f"-%20{',%0A-%20'.join(failed_checks.index).replace('_', '%20').title()}%0A%0A"
400-
"If%20you%20have%20any%20questions%20or%20need%20further%20assistance%2C%20please%20reply%20to%20this%20email.%0A"
396+
f"?subject=ONS%20GitHub%20Usage%20Policy%20Compliance%20-%20{selected_repo['Repository']}"
397+
"&body=Hello%2C%0A%0A"
398+
f"We%20have%20identified%20some%20issues%20with%20your%20repository%20%22{selected_repo['Repository']}%22%20which%20is%20not%20currently%20compliant%20with%20ONS%27%20GitHub%20Usage%20Policy.%0A%0A"
399+
"Please%20check%20your%20repositories%20for%20the%20following%20issues%20and%20take%20the%20appropriate%20action%20to%20resolve%20them.%0A%0A"
400+
f"-%20{',%0A-%20'.join(failed_checks.index).replace('_', '%20').title().replace("Pirr", "PIRR")}%0A%0A"
401+
"If%20you%20have%20any%20questions%20or%20need%20further%20assistance%2C%20please%20get%20in%20touch.%0A%0A"
402+
"Many thanks%2C%0A%0A"
403+
"Name"
401404
)
402405

403406
st.html(

0 commit comments

Comments
 (0)