fix(client): improve API robustness #215
Loading…
Reference in New Issue
No description provided.
Delete Branch "wangyue111/gitlink-cli:fix/client-robustness"
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?
背景
这一组修改聚焦 CLI 底层稳定性,而不是新增单点命令。当前所有 Shortcut 和 Raw API 最终都会经过
internal/client与仓库上下文解析,一旦这里存在边界问题,会影响 Issue、PR、Webhook、批处理等多个功能域。修改内容
Accept: application/jsonContent-Type: application/jsondata字段以 JSON 字符串返回的情况,自动解析为结构化对象PaginateAll克隆调用方传入的 query,避免分页过程中污染外部参数/或空路径导致的 owner/repo 误解析价值
测试
文档
新增
doc/changes/client-robustness-fixes.md记录问题背景、修复点和验证方式。35fef13287tofd816a7240fd816a7240to3a020e75753a020e7575to036e835a76Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.