Skip to content

Fix SchemaStore workflow creating empty PRs#3848

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix/schemastore-workflow-empty-pr
Mar 3, 2026
Merged

Fix SchemaStore workflow creating empty PRs#3848
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix/schemastore-workflow-empty-pr

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

The update-schemastore.yaml workflow used git diff --cached to detect schema changes, but json.dump formatting differs from SchemaStore's prettier formatting. This caused every release to open a PR with formatting-only diffs and no actual schema content changes (e.g. #5434).

Replace file-level diff with parsed JSON comparison — only writes the file and proceeds when the schema content actually differs.

Compare parsed JSON content instead of using git diff on file
text. The json.dump formatting differs from SchemaStore's
prettier formatting, causing false-positive diffs on every
release even when the schema content is identical.
@gaborbernat gaborbernat merged commit 40b5538 into tox-dev:main Mar 3, 2026
26 of 27 checks passed
@gaborbernat gaborbernat deleted the fix/schemastore-workflow-empty-pr branch March 3, 2026 17:04
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