fix(openapi): avoid provenance-only consumer sync PRs - #65
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
CLI 的定时或手动同步先比较 server 的 OpenAPI schema 内容。若内容未变化,且现有来源提交有效并可从
server/main追溯,就保留原提交号,不创建仅更新来源记录的 PR。移除即时跨仓库通知。schema 内容变化时,仍会固定 server 的具体提交,更新客户端,运行构建、测试、vet 和 lint,再创建 PR。
关联 Life-USTC/server#1101。旧 PR #63 只更新来源提交号,schema 内容与当前
server/main相同。验证
server/main追溯。server/main的 OpenAPI SHA-256 均为4c1265b490519bc921fbab91495043adb8b54d2b9e67462d109ec9d6a783a422。actionlint .github/workflows/openapi-sync.yml、git diff --check和 PR CI 通过。