Skip to content

Add anchored markdown comment utilities#4

Merged
machado144 merged 4 commits into
mainfrom
feature/anchored-pr-comments
Jun 3, 2026
Merged

Add anchored markdown comment utilities#4
machado144 merged 4 commits into
mainfrom
feature/anchored-pr-comments

Conversation

@machado144

Copy link
Copy Markdown
Contributor

Summary

  • add a new comment command group for hidden-anchor markdown PR comments
  • support rendering, fencing, inspecting, selecting, and amending anchored comment bodies
  • upgrade fenced code block parsing to support longer fences with nested triple backticks
  • document a gh-based PR comment upsert workflow

Tests

  • go test ./...
  • go build ./...
  • go run . comment render --anchor preview '## Preview\n\nReady'
  • printf 'before\nyaml\na: b\n\nafter\n' | go run . comment fence --language md | go run . parse extract-block --language md
  • printf '[{"id":42,"html_url":"https://example.test/c","user":{"login":"bot"},"body":"\n\nready"}]' | go run . comment select --anchor preview --format id

@machado144 machado144 merged commit 427c5a1 into main Jun 3, 2026
1 check passed
@machado144 machado144 deleted the feature/anchored-pr-comments branch June 3, 2026 19:08
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