mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1253] Feat/public GitHub metadata export #1286
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1286
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1253
Author: @NinsonD
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:feat/public-github-metadata-export📝 Commits (5)
1877c30feat(tools): add read-only public GitHub metadata exporterb298eb4test(tools): cover exporter pagination and record validation180824bdocs(tools): document public metadata export and limitationsb61a6d6test(tools): match exact pagination query parameter9e4b0baFix metadata export tests and public-only scope📊 Changes
3 files changed (+245 additions, -0 deletions)
View changed files
➕
docs/github-metadata-export.md(+39 -0)➕
scripts/export_github_metadata.py(+122 -0)➕
tests/test_export_github_metadata.py(+84 -0)📄 Description
Claimed in the coordination issue as: Not formally assigned; proposed in #563.
Related issue: #563
What and why
Added a standalone Python utility to preserve publicly accessible GitHub issue and pull request metadata.
The exporter includes:
This is an initial proof of concept for preserving project history before considering a full migration. No external Python dependencies or game files are required. The CLI uses unauthenticated requests to limit exports to public content; GitHub's lower unauthenticated rate limit applies.
Tested
On Windows, Python 3.11.9, tested commit
9e4b0bab961244b050b31e3238a5ec342ebd3a83using an isolated copy of the exporter and its test file:python -I tests/test_export_github_metadata.py: 6 tests passed with mocked API responses and a writable workspace temporary directory.GPUs tested: N/A
AI-assisted: Yes
Checklist
Translator contract changes: N/A.
This is a proof of concept rather than a complete migration solution. Feedback on the implementation and scope is welcome.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.