PR Review Comment Publisher
Workflow
- Receive inline XML from the pr-review workflow.
- Convert XML sections to Markdown, omitting empty sections.
- Post the Markdown as a PR comment using
gh pr comment.
Usage
Preferred (owner/repo#PR):
python /codex/skills/pr-review-comment/scripts/post_comment.py --pr owner/repo#123 <<'XML'
<final_review>
...
</final_review>
XML
If already in the repo:
python /codex/skills/pr-review-comment/scripts/post_comment.py --pr 123 <<'XML'
<final_review>
...
</final_review>
XML
Optional override:
python /codex/skills/pr-review-comment/scripts/post_comment.py --repo owner/repo --pr 123 <<'XML'
<final_review>
...
</final_review>
XML
Section Mapping
changed_files_ref→ "Changed Files"requirements_ref→ "Requirements"summary→ "Summary"blockers→ "Blockers"non_blocking_suggestions→ "Non-blocking Suggestions"test_gaps→ "Test Gaps"documentation_gaps→ "Documentation Gaps"actionable_outcomes→ "Actionable Outcomes" (one bullet per task with priority/effort, why, files, change)questions_for_author→ "Questions for Author"merge_recommendation→ "Merge Recommendation"
Notes
- Input must be well-formed
<final_review>XML and is read from stdin. - Requires an authenticated
ghCLI with access to the target repo. - Use
--print-onlyto render the Markdown without posting.