{"id":27994016,"url":"https://github.com/joshbeard/gh-issue-export","last_synced_at":"2025-05-08T19:05:58.456Z","repository":{"id":287440943,"uuid":"960132391","full_name":"joshbeard/gh-issue-export","owner":"joshbeard","description":"Quick CLI tool to export GitHub issues","archived":false,"fork":false,"pushed_at":"2025-04-03T23:07:00.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T19:05:40.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshbeard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-03T23:05:18.000Z","updated_at":"2025-04-03T23:07:03.000Z","dependencies_parsed_at":"2025-04-11T18:58:08.317Z","dependency_job_id":"aeea2496-0b99-4ae3-9b70-ed90665db31b","html_url":"https://github.com/joshbeard/gh-issue-export","commit_stats":null,"previous_names":["joshbeard/gh-issue-export"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fgh-issue-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fgh-issue-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fgh-issue-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fgh-issue-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshbeard","download_url":"https://codeload.github.com/joshbeard/gh-issue-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253133128,"owners_count":21859111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-08T19:05:57.899Z","updated_at":"2025-05-08T19:05:58.436Z","avatar_url":"https://github.com/joshbeard.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Issue Exporter\n\nA simple command-line tool to export GitHub issues and pull requests in a format\noptimized for AI/LLM context. This was mostly generated by Claude.\n\n## Features\n\n- Export any GitHub issue or pull request by specifying owner, repository, and issue number\n- Supports both issues and pull requests\n- Extracts all linked URLs from the issue/PR and comments\n- For pull requests, includes additional details like commit count, changed files, etc.\n- Outputs in JSON format or text format optimized for LLM input\n- Easy URL-like syntax support (e.g., `joshbeard/web-indexer/issue/4`)\n\n## Installation\n\n```bash\ngo install github.com/joshbeard/gh-issue-exporter@latest\n```\n\nOr clone and build:\n\n```bash\ngit clone https://github.com/joshbeard/gh-issue-exporter.git\ncd gh-issue-exporter\ngo build\n```\n\n## Usage\n\nYou'll need a GitHub personal access token with at least `repo` scope permissions.\n\n### Command Line Arguments\n\n```bash\n# Using command line flags\ngh-issue-exporter -owner=joshbeard -repo=web-indexer -number=4 -token=your_github_token\n\n# Using environment variable for token\nexport GITHUB_TOKEN=your_github_token\ngh-issue-exporter -owner=joshbeard -repo=web-indexer -number=4\n\n# Save output to a file\ngh-issue-exporter -owner=joshbeard -repo=web-indexer -number=4 -output=issue.json\n\n# Using URL-like format\ngh-issue-exporter joshbeard/web-indexer/issue/4\n\n# Output in text format (better for direct LLM input)\ngh-issue-exporter joshbeard/web-indexer/issue/4 -text\n```\n\n### Output Formats\n\n#### JSON Format (default)\n\nThe tool outputs JSON by default:\n\n```json\n{\n  \"title\": \"Example Issue\",\n  \"number\": 4,\n  \"state\": \"open\",\n  \"url\": \"https://github.com/joshbeard/web-indexer/issues/4\",\n  \"created_at\": \"2023-04-01T12:34:56Z\",\n  \"updated_at\": \"2023-04-02T12:34:56Z\",\n  \"author\": \"joshbeard\",\n  \"body\": \"This is an example issue description.\",\n  \"labels\": [\"bug\", \"high-priority\"],\n  \"comments\": [\n    {\n      \"author\": \"contributor\",\n      \"body\": \"I found the issue in main.go\",\n      \"created_at\": \"2023-04-01T13:45:32Z\"\n    }\n  ],\n  \"linked_urls\": [\n    \"https://github.com/joshbeard/web-indexer/blob/main/main.go\",\n    \"https://example.com/related-doc\"\n  ],\n  \"is_pull_request\": false\n}\n```\n\nFor pull requests, additional fields are included:\n\n```json\n{\n  \"title\": \"Add search functionality\",\n  \"number\": 5,\n  \"state\": \"open\",\n  \"url\": \"https://github.com/joshbeard/web-indexer/pull/5\",\n  \"created_at\": \"2023-04-03T10:15:20Z\",\n  \"updated_at\": \"2023-04-03T14:30:45Z\",\n  \"author\": \"contributor\",\n  \"body\": \"This PR adds search functionality to the application.\",\n  \"labels\": [\"enhancement\"],\n  \"comments\": [],\n  \"linked_urls\": [\n    \"https://github.com/joshbeard/web-indexer/blob/feature/search/README.md\"\n  ],\n  \"is_pull_request\": true,\n  \"pr_details\": {\n    \"commits\": 3,\n    \"additions\": 120,\n    \"deletions\": 45,\n    \"changed_files\": 5,\n    \"merge_status\": \"clean\",\n    \"commit_urls\": [\n      \"https://github.com/joshbeard/web-indexer/commit/abc123\",\n      \"https://github.com/joshbeard/web-indexer/commit/def456\",\n      \"https://github.com/joshbeard/web-indexer/commit/ghi789\"\n    ]\n  }\n}\n```\n\n#### Text Format\n\nUse the `-text` flag for a more LLM-friendly format:\n\n```\n# GitHub Issue: Example Issue\nURL: https://github.com/joshbeard/web-indexer/issues/4\nNumber: #4\nState: open\nAuthor: joshbeard\nCreated: 2023-04-01T12:34:56Z\nUpdated: 2023-04-02T12:34:56Z\nLabels: bug, high-priority\n\n## Description\nThis is an example issue description.\n\n## Comments\n\n### Comment 1 (by contributor on 2023-04-01T13:45:32Z)\nI found the issue in main.go\n\n## Linked URLs\n- https://github.com/joshbeard/web-indexer/blob/main/main.go\n- https://example.com/related-doc\n```\n\nFor pull requests, the text format includes PR-specific details:\n\n```\n# GitHub Pull Request: Add search functionality\nURL: https://github.com/joshbeard/web-indexer/pull/5\nNumber: #5\nState: open\nAuthor: contributor\nCreated: 2023-04-03T10:15:20Z\nUpdated: 2023-04-03T14:30:45Z\nLabels: enhancement\n\n## Pull Request Details\nCommits: 3\nChanged Files: 5\nAdditions: 120\nDeletions: 45\nMerge Status: clean\n\n## Description\nThis PR adds search functionality to the application.\n\n## Linked URLs\n- https://github.com/joshbeard/web-indexer/blob/feature/search/README.md\n\n## Commit URLs\n- https://github.com/joshbeard/web-indexer/commit/abc123\n- https://github.com/joshbeard/web-indexer/commit/def456\n- https://github.com/joshbeard/web-indexer/commit/ghi789\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fgh-issue-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshbeard%2Fgh-issue-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fgh-issue-export/lists"}