Delete merged source branches safely from mobile receipts #1365

Merged
timmy merged 2 commits from timmy/1364-delete-merged-source-branches into main 2026-08-24 20:54:33 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit b6684bb7ba - Show all commits

View File

@ -231,6 +231,7 @@
passkey_counter_anomaly: 'Passkey counter anomaly',
device_revoked: 'Device access revoked', all_sessions_revoked: 'All device access revoked',
issue_closed: 'Issue closed', pull_merged: 'Pull request merged',
source_branch_deleted: 'Source branch deleted',
comment_deleted: 'Comment deleted',
pull_review_approved: 'Pull request approved',
pull_review_changes_requested: 'Changes requested', gitea_time_logged: 'Gitea time logged',

View File

@ -6,6 +6,12 @@ from pathlib import Path
SECURITY_CENTER = Path(__file__).parents[1] / "frontend" / "security-center.js"
def test_source_branch_cleanup_has_a_specific_security_activity_label():
source = SECURITY_CENTER.read_text()
assert "source_branch_deleted: 'Source branch deleted'" in source
def test_open_security_center_loads_all_sections_concurrently_and_is_awaitable():
harness = f"""
const attachSecurityCenter=require({json.dumps(str(SECURITY_CENTER))});