Skip to content

Add comment reply action, thread rendering, and fix timeline sorting#112

Merged
stylessh merged 3 commits intomainfrom
feat/comment-reply-threads
Apr 14, 2026
Merged

Add comment reply action, thread rendering, and fix timeline sorting#112
stylessh merged 3 commits intomainfrom
feat/comment-reply-threads

Conversation

@stylessh
Copy link
Copy Markdown
Owner

@stylessh stylessh commented Apr 14, 2026

Summary

Add inline reply functionality for issue/PR comments, render detected comment threads visually, and fix timeline entries not sorting correctly by date.

Changes

  • Add CommentReplyForm component for inline replies that post a new comment with a blockquote of the parent
  • Add buildCommentThreads utility that detects reply relationships by matching blockquote patterns (> **@user** [commented](#issuecomment-ID): and fuzzy quoted-text matching)
  • Update issue and PR activity timelines to show a reply button on hover and render threaded replies indented with a left border
  • Filter reply comments from the main timeline to avoid duplication when shown in threads
  • Fix reviewed events missing createdAt by falling back to submitted_at from the GitHub timeline API, which fixes both date sorting and missing timestamps on approval entries

Test Plan

  • Open a PR or issue with existing comments and verify timeline is sorted chronologically (most recent at bottom)
  • Hover over a comment and verify the reply button appears
  • Click reply, type a message, and submit — verify it posts with a blockquote and appears as a threaded reply
  • Verify approved/reviewed events now display their relative timestamp
  • Verify review comment threads (inline code review) still work as before

…ting

- Add inline reply form for issue/PR comments with quoted parent context
- Detect and render comment threads via blockquote pattern matching
- Fix reviewed events missing timestamps by reading submitted_at fallback
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 14, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
diffkit 23fe384 Apr 14 2026, 01:42 AM

@stylessh stylessh force-pushed the feat/comment-reply-threads branch from 08b89dd to 3b93195 Compare April 14, 2026 01:36
@stylessh stylessh force-pushed the feat/comment-reply-threads branch from 3b93195 to 14270ff Compare April 14, 2026 01:38
When a workflow re-runs, GitHub creates new check run entries with the
same name but a new id. Keep only the latest run (highest id) per name
so the checks list doesn't show stale skipped/cancelled duplicates.
@stylessh stylessh merged commit 3293412 into main Apr 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant