main ← improve-github-pr-oneboxes
opened 05:23PM - 11 Dec 25 UTC
Previously, GitHub PR oneboxes always showed "opened on [date]" regardless of th…e PR's status. This could be misleading for merged or closed PRs where the relevant date is when that action occurred.
Now the date label and value match the PR status:
- open/draft: "opened/drafted on [created_at]"
- approved/changes_requested: "[status] on [review submitted_at]"
- merged/closed: "merged/closed on [merged_at/closed_at]"
Also removes an unused GITHUB_COMMENT_REGEX constant from github_repo_onebox.rb.
**Here are a few examples**
<img width="743" height="1035" alt="CleanShot 2025-12-11 at 18 10 42" src="https://github.com/user-attachments/assets/810893a5-2563-4a19-96a1-7bf876e2d27c" />