fix(home): format close/approve PR activity display when comment is empty #166
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper!166
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/activity-types"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Fix home panel display for
close_pull_request,approve_pull_request, andreopen_pull_requestactivity events. Added opTypeLabel entries and activityColor entries for these types.Why
These op types exist in the Gitea/Forgejo API but were unhandled in
formatDesc, showing raw JSON like["163",""]instead ofPR #163 closed.Testing
go build ./...passesBreaking Changes
None
Notes
Follow-up to #164 which fixed the same pattern for issue events.
Review
Result: Approved — no blocking issues.
Summary: Extends PR activity display for close/approve/reopen events, following the same pattern established in #164. Adds opTypeLabel icons, activityColor grouping, and empty-comment fallbacks.
Notable: Existing
create_pr/merge_prwith empty comment now shows#42instead of#42 →(improvement, not regression).Discussion:
close_pull_requestusesColorLightBlue(grouped with other PR events) whileclose_issueusesColorRed. Intentional design choice — consistent PR grouping in activity feed.Testability concern already tracked in #165.