Skip to content

Commit

Permalink
Tweak output format.
Browse files Browse the repository at this point in the history
It wasn't as clear and useful as it could be. User and repo are most important
for working out if it needs responding to, so put them first. Include
"Deletion: " text before the datetime to make it clear to what it refers.

As discussed in Slack: https://bennettoxford.slack.com/archives/C069SADHP1Q/p1736765655458669?thread_ts=1736427127.238419&cid=C069SADHP1Q
  • Loading branch information
mikerkelly committed Jan 13, 2025
1 parent 4b2315b commit cc98c9d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions workspace/codespaces/codespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,19 @@ def main(threshold_in_days):
list_items = [
RichTextSectionElement(
elements=[
Text(text="User", style=BOLD),
Text(text=": "),
Text(text=cs.owner, style=CODE),
Text(text=f" on {cs.retention_expires_at:%A, %b %d at %H:%M}"),
Text(text=f" ({remaining_days_text}) "),
Text(text="repo", style=BOLD),
Text(text=" Repo", style=BOLD),
Text(text=": "),
Text(text=cs.repo, style=CODE),
Text(text=" ID", style=BOLD),
Text(text=" Deletion", style=BOLD),
Text(text=": "),
Text(
text=f"in {remaining_days_text} "
f"({cs.retention_expires_at:%A, %b %d at %H:%M}) "
),
Text(text="ID", style=BOLD),
Text(text=": "),
Text(text=cs.name, style=CODE),
Text(text=" Retention", style=BOLD),
Expand Down

0 comments on commit cc98c9d

Please sign in to comment.