Skip to content

add PR review comments#50

Open
philippedev101 wants to merge 1 commit intomattduck:masterfrom
philippedev101:comments
Open

add PR review comments#50
philippedev101 wants to merge 1 commit intomattduck:masterfrom
philippedev101:comments

Conversation

@philippedev101
Copy link
Copy Markdown

Add support for PR review comments (inline code comments left on specific diff lines) in the markdown export. Previously, only regular
conversation comments were included - review comments were silently dropped.

Two new CLI flags:

  • --no-comments - Exclude all comments (both regular and review) from the export
  • --include-diff-hunk - Show the diff context for each review comment

Review comments show the file path and line number by default, linking directly to the comment on GitHub.

Output examples

Default (no diff hunk):

philippedev101 commented on test.md (line 4) at 2026-02-08 18:17:

Starting a review

philippedev101 commented on test.md (line 2) at 2026-02-08 18:17:

Leaving a comment

With --include-diff-hunk:

philippedev101 commented on test.md (line 4) at 2026-02-08 18:17:

@@ -0,0 +1,6 @@
+1
+2
+3
+4

Starting a review

philippedev101 commented on ... at ...:

@@ -0,0 +1,6 @@
+1
+2

Leaving a comment

Tests

Added unit tests for:

  • Review comment formatting (file path, line number, body)
  • Diff hunk shown only when --include-diff-hunk is passed
  • --no-comments flag excludes both regular and review comments
  • CLI flag parsing

…hunk flags

Include inline code review comments in PR exports, showing the file
path and line number for each comment. Add --no-comments to suppress
all comments and --include-diff-hunk to show diff context.
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