Repository navigation
feat(json): add github backend to parse PR/Issues from json into DoclingDocument/DocLang - #5328
PeterStaar-IBM wants to merge 8 commits into
Conversation
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
|
✅ DCO Check Passed Thanks @PeterStaar-IBM, all your commits are properly signed off. 🎉 |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
AI triage (advisory)Checked commit The PR adds a CI safety: needs maintainer care before you approve CI.
2 related pull request(s) in the same code
The |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Summary
Add native conversion of GitHub issues, pull requests, and discussions into a
DoclingDocument. The backend accepts saved GitHub JSON, and the CLI can retrieve a conversation directly through the authenticated GitHub CLI (gh).Try it with the CLI
Use a Docling build from this branch. For URL input, install
ghand rungh auth loginfirst.The same command accepts GitHub issue and discussion URLs. To convert a saved export, pass its path. Local JSON works without
gh, and--keep-sourceembeds the original JSON in the archive.Image fetching is opt-in. Use
--github-image-fetch remotefor online images and--github-image-fetch localfor files referenced by a local export. Add--github-strict-assetsto fail on missing images. For large conversations,--github-timeout 180raises the default 60-second retrieval limit.See the GitHub conversion guide for JSON export commands and SDK usage.
Checklist
Review evidence
make validatepassed on the staged merge.uv lock --locked --offlineconfirmed the lockfile is current.