Skip to content

fix(openapi): avoid provenance-only consumer sync PRs - #65

Merged
tiankaima merged 2 commits into
mainfrom
fix/openapi-sync-noop-20260923
Sep 23, 2026
Merged

tiankaima merged 2 commits into
mainfrom
fix/openapi-sync-noop-20260923

Conversation

@tiankaima

@tiankaima tiankaima commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

改动

CLI 的定时或手动同步先比较 server 的 OpenAPI schema 内容。若内容未变化,且现有来源提交有效并可从 server/main 追溯,就保留原提交号,不创建仅更新来源记录的 PR。

移除即时跨仓库通知。schema 内容变化时,仍会固定 server 的具体提交,更新客户端,运行构建、测试、vet 和 lint,再创建 PR。

关联 Life-USTC/server#1101。旧 PR #63 只更新来源提交号,schema 内容与当前 server/main 相同。

验证

  • CLI 当前来源记录有效,所指提交可从 server/main 追溯。
  • CLI 与 server/main 的 OpenAPI SHA-256 均为 4c1265b490519bc921fbab91495043adb8b54d2b9e67462d109ec9d6a783a422。
  • actionlint .github/workflows/openapi-sync.yml、git diff --check 和 PR CI 通过。

@tiankaima
tiankaima merged commit cfda4c3 into main Sep 23, 2026
4 checks passed
@tiankaima
tiankaima deleted the fix/openapi-sync-noop-20260923 branch September 23, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant