Changelog
All notable changes to this project are documented here. Release ranges link to the GitHub compare view. Tag names follow the repository (v1.0.x through v1.0.3, then 1.1.0 onward).
1.2.5 — 2026-05-06
Changes since 1.2.4…1.2.5.
Feature
LLM integrations: optional adapters under
gitcode_api.llmfor agent workflows —GitCodeOpenAITool(OpenAI Chat Completions tool shape) and MCP helpers (GitCodeMCP,create_mcp_gitcode_api_tool,register_mcp_gitcode_api_tool,create_mcp_server) built on FastMCP when themcpextra is installed (pip install 'gitcode-api[mcp]'; requires Python 3.10+ for FastMCP). Heavy dependencies load lazily viagitcode_api.llm.__getattr__.
Refactor
Tightened typing across the package so
mypy -p gitcode_apipasses cleanly.
Chore
Expanded PyPI metadata (description, keywords, classifiers) to mention CLI and optional LLM/MCP integration.
Added a
changelogURL entry in[project.urls]pointing at this file.make docsnow also builds Sphinx epub and singlehtml outputs (alongside html), using a shared doctree cache to avoid EPUB mimetype warnings.
Docs
README updates for MCP and OpenAI tool usage, plus an FAQ section aligned with the bundled skill.
Sphinx SDK guide
docs/sdk/llm_tools.rst(OpenAIGitCodeOpenAITool, MCP / FastMCP helpers, sharedGitCodeLLMTool, TLS notes) linked fromdocs/sdk/index.rstand the docs landing page;gitcode_api.llmmodules added to the autosummary reference.Added a CodeFactor badge; fixed a broken link in
README.zh.md.AGENTS.md: documented the preferred git commit message convention.README Makefile section refreshed for the current targets.
1.2.4 — 2026-05-01
Changes since 1.2.3…1.2.4.
Fix
Release zip contents: GitHub Release zips built by
scripts/package_release_zip.pyno longer includeexamples/README.md; they still bundle the PyInstaller CLI,.claude/, and the repository rootREADME.md/README.zh.md.
Docs
Corrected
AGENTS.mdand the1.2.3changelog bullets so they describe the same zip layout as the packager.
1.2.3 — 2026-05-01
Changes since 1.2.2…1.2.3.
CI
Release binaries: uploads are now versioned
.zipfiles (gitcode-api-<tag>-<platform>.zip) that bundle the PyInstaller CLI with the.claude/skill tree andREADME.md/README.zh.md(notexamples/README.md), assembled byscripts/package_release_zip.py.Pinned build matrix to
ubuntu-22.04,ubuntu-24.04,macos-14(arm64), andwindows-2022, and builds with Python 3.12 (replacing*-latest/ 3.13) for more predictable release artifacts.
Chore
Added
scripts/package_release_zip.pyto create the release zip layout with best-effort compression.
Docs
Updated
AGENTS.mdto describe the zip-based GitHub Release assets.
1.2.2 — 2026-05-01
Changes since 1.2.1…1.2.2.
Feature
Added a PyInstaller one-file build for the
gitcode-apiCLI (gitcode-api.spec, entry script underscripts/), installable via a new uv dependency groupbinaryand themake binarytarget (output underdist/).
CI
Added a Release binaries workflow that runs on published GitHub Releases, builds the CLI on Linux (x86_64), Windows (x86_64), and macOS (Apple Silicon), and uploads versioned release assets.
Chore
Tracked
gitcode-api.specin git while keeping other*.specignored.
Docs
Documented the standalone binary workflow in
AGENTS.md.
1.2.1 — 2026-05-01
Changes since 1.2.0…1.2.1.
Feature
Added
AGENTS.mdas repository guidance for AI-assisted development workflows.Improved the bundled GitCode API skill: tighter workflow patterns, SKILL updates, and enhancements to the skill’s
gitcode_api_clihelper script.
Chore
Extended the
Makefilewithdocstring(pydocstyle) andamendhelpers, and broadened.PHONYcoverage for existing targets.
Style
Aligned package docstrings with reStructuredText field conventions for pydocstyle checks.
Docs
Expanded and refreshed CLI documentation (
docs/sdk/cli.rst).Simplified README and Sphinx quickstart examples by removing
try/finallyboilerplate around the client.Minor README improvements (English and Chinese).
1.2.0 — 2026-05-01
Changes since 1.1.3…1.2.0.
Feature
Exposed a
methodsproperty on resource namespaces so callers can discover available API methods at runtime.Exposed
method_signatureon resource groups to inspect method parameters and return shape.Added the
examples/inspect_resource_group_methods.pyexample script demonstrating introspection helpers.
Fix
Client: Removed leftover legacy behavior around closing
httpxclients so shutdown matches current usage.Switched LRU-cached properties to
functools.cached_propertyfor correct semantics and compatibility.Avoided using the builtin
collectionsname as a generic type alias in examples and tests (Python compatibility).Reworked resource group lifecycle so garbage collection and client teardown behave predictably.
Style
Polished CLI presentation.
Added Pylint format configuration.
Removed a redundant README badge.
Docs
Documented CLI usage in the main docs.
Removed the REST API quickstart page.
Updated
pulls.createdocstring for fork-based pull request flows.Standardized documentation terminology to resource group.
Updated the bundled skill README for
methods,method_signature, and related workflow.
1.1.3 — 2026-04-18
Feature
Experimental CLI support (
gitcode-apientry point).
Docs
Changed pip installation examples to use the
-Uoption.Minor index and copy tweaks (including capitalization of “GitHub”).
1.1.2 — 2026-04-16
Feature
Bundled Cursor/agent skill for GitCode API workflows.
Support for encrypted GitCode tokens.
Fix
Clients now close their
httpxclient whether a custom client was supplied or not.
Docs
Updated documentation and skill for token encryption.
Added project links to the docs site.
Style
README and Chinese README badge updates and link styling; more compact code blocks in README.
1.1.1 — 2026-04-16
Feature
Stronger response model typing and annotations across the client.
Redefined context manager
__enter__on synchronous and asynchronous client classes for clearer type annotations.
Fix
Corrected mirrored official REST API documentation (
docs/rest_api/orgs.rst).Pytest configuration adjustments.
Style
Examples switched to attribute-style access where appropriate.
1.1.0 — 2026-04-16
Feature
Refreshed examples; removed
python-dotenvfrom package dependencies.
Fix
Makefile
formattarget repair.
Style
Expanded docstring coverage; codebase formatted with Ruff.
PyPI badge updated to include a link.
Test
Added unit tests for context manager usage.
Docs
Documentation refresh and context manager usage called out explicitly.
1.0.3 — 2026-04-16
Chore
Removed redundant PyPI license classifier from package metadata.
1.0.2 — 2026-04-16
Fix
Ensured Read the Docs installs the
gitcode-apipackage in the docs environment.
Chore
Read the Docs configuration updates for hosted builds.
1.0.1 — 2026-04-16
Fix
Corrected the example for listing commits.
Restored Python 3.9 compatibility where it had regressed.
Docs
README updates alongside the version bump.
1.0.0 — 2026-04-15
Initial published release on PyPI.
Feature
Initial
gitcode-apiPython SDK for the GitCode REST API (HTTPX-based client).
Chore
CI/workflow: PyPI project URL correction in publishing configuration.
Docs
README updates for the first public release.