1.2.14 - Issue & Pull Request Templates, Documentation Improvement
Feature
- Issue and pull request templates:
client.issues/client.pulls(and async counterparts) now exposelist_templatesandget_templatefor GitCode’s.gitcode/issue and PR template files on the default branch, including metadata (RepositoryGitCodeTemplatewith path, SHA, and resolvedtemplate_owner/template_repo). GitCode does not expose this as a dedicated REST “list/get templates” API, so the SDK composes the behavior from repository content calls with custom resolution logic (active template paths, default branch, and upstream template sources). The CLI picks these up automatically asissues list-templates,issues get-template,pulls list-templates, andpulls get-template. as_dict: Top-level helper to turn oneAPIObject(or a list of them) into plaindictvalues viato_dict, with an optionaldeep_copyflag for isolated mappings.Repositorymodel: Responses can include aparentfield describing the upstream source repository when the API returns it.
Refactor
- Models: Dropped unused legacy
TypedDictdefinitions fromgitcode_api._models(no public API change).
Docs
- Homepage and REST API index: added a short “Why this project” section and clarified that the REST mirror is based on GitCode Help material but manually corrected and extended in this repo.
- README and SDK docs updated for template listing/fetching; runnable examples under
examples/for issue and pull request templates.
Full Changelog: 1.2.13...1.2.14