1.2.12 - Improve CLI User Experience & Add Homepage to Project
Feature
- CLI:
-e/--escapetakes a string of\-style escape sequences (for example"\n\t") to un-escape, which makes multiline payloads easier for human users (e.g.gitcode-api pulls create ... --body 'Line1\nLine2' -e '\n'). - CLI: The shared cli argument parser no longer passes
--owner/--repointo theGitCodeclient constructor. Use each method’s own flags so defaults match the SDK method signatures. - CLI (
gitcode-api serve):--show-banner/-bacceptstrueorfalseand forwards to FastMCP’srun(show_banner=…); omit it to keep the library default. - CLI (
gitcode-api serve):--transportis validated againststdio,http, andsse.
Docs
- Added a homepage for this project: https://hugohuang.com/gitcode-api
- README, SDK CLI page (
docs/sdk/cli.rst),install_mcp_server.md, and PyPI homepage links updated for the new CLI and MCP options. - Download stat & PyPI version badges now are mutated automatically per-release to suit GitCode's image-caching strategy for
README.md.
Full Changelog: 1.2.11...1.2.12