Skip to content

ci: add DiffviewConfig schema drift check#141

Merged
dlyongemallo merged 1 commit intomainfrom
schema_drift_check
Apr 24, 2026
Merged

ci: add DiffviewConfig schema drift check#141
dlyongemallo merged 1 commit intomainfrom
schema_drift_check

Conversation

@dlyongemallo
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 24, 2026 08:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Introduces an automated CI guard to detect drift between lua/diffview/config.lua’s M.defaults keys and the top-level keys declared in @class DiffviewConfig / @class DiffviewConfig.user, helping keep config defaults and LuaLS type annotations synchronized.

Changes:

  • Add scripts/check_config_schema.lua to mechanically compare top-level keys across M.defaults, DiffviewConfig, and DiffviewConfig.user.
  • Add make check-config-schema and a new CI job (config-schema) that runs the check in headless Neovim.
  • Expand StyLua checks/docs to include the scripts/ directory.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
scripts/check_config_schema.lua Implements a source-based schema drift detector for config keys.
Makefile Adds a check-config-schema target to run the drift check locally/CI.
CONTRIBUTING.md Updates formatting instructions to include scripts/ and documents the new CI schema check.
.github/workflows/ci.yml Extends the lint job to format-check scripts/ and adds a config-schema CI job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/check_config_schema.lua
Comment thread scripts/check_config_schema.lua Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlyongemallo dlyongemallo merged commit 385f26f into main Apr 24, 2026
8 checks passed
@dlyongemallo dlyongemallo deleted the schema_drift_check branch April 24, 2026 09:27
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.

2 participants