Majkey25

Ask about my work

Answers use my public projects, profile and approved public sources.

Questions and attachments go to OpenAI through Cloudflare. OpenAI may use shared content to train models. Attachments are not saved in local history. Do not share sensitive data. Privacy

~ / work / 13

GitHub issues and PR export

Exports issues and pull requests with comments and images to deterministic Markdown

area
Developer tools
stack
Python · Playwright
as of
Nov 2026

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.