GitHub issues and PR export
Exports issues and pull requests with comments and images to deterministic Markdown
Problem
Keep a readable offline copy of issues and pull requests, including from private repositories, with every comment and embedded image.
Approach
Export scripts read issues, pull requests, comments and review comments through the authenticated GitHub CLI, keep the raw JSON for offline regeneration and write one Markdown file per item in the original comment order. Images on GitHub user-attachment URLs, which the API cannot download, are fetched by a Playwright browser step and linked as local files.
Result
Repeated runs produce the same Markdown. Image downloads accept only public HTTP(S) destinations, with limits such as 25 MiB per image and 1,000 images per repository run, and failed images are recorded for a later recovery run.