Github Issues Dump

Export all GitHub issues (open/closed) using a PAT from .env and write open.md + closed.md including description, link, and comments.

alirana01 Updated

File contents

GitHub Issues Dump

What it does

  • Reads GITHUB_TOKEN from a .env file.
  • Fetches all issues from a repo (excluding pull requests).
  • Writes two files into an output folder:
    • open.md
    • closed.md
  • Each issue includes: title, number, URL, author, created/updated, body, and all comments.

Usage

Run:

  • python .cursor/skills/github-issues-dump/scripts/export_issues.py --repo OWNER/REPO --out issues_dump

Optional:

  • --env .env
  • --since 2025-01-01 (ISO date)
  • --include-labels (prints labels)
  • --max-comments 0 (0 = all, otherwise limit)

Required .env

Create .env with:

  • GITHUB_TOKEN=ghp_...

alirana01/cursor-skills/tree/main/github-issues-dump commit 0960a0d0db

Frequently asked questions

npx skillmds@latest add alirana01/github-issues-dump