chore(ci): enforce settings docs parity in preflight#19210
chore(ci): enforce settings docs parity in preflight#19210LyalinDotCom wants to merge 1 commit intomainfrom
Conversation
Add a dedicated check:docs:settings script and run it from preflight to catch settings doc drift locally before CI. Update GEMINI.md testing guidance to include the new CI-parity check for CLI/UI changes.
Summary of ChangesHello @LyalinDotCom, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the development workflow by integrating settings documentation verification into the preflight checks and providing a dedicated local script for this purpose. The changes aim to ensure documentation consistency and catch potential issues related to settings documentation earlier, improving overall code quality and developer experience by aligning local and CI checks. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new check:docs:settings script to verify that settings documentation is up-to-date and integrates it into the preflight CI check. This is a great improvement for catching documentation parity issues early. The documentation in GEMINI.md is also updated accordingly. My review includes one high-severity suggestion in package.json to fix a redundant build step in the new script, which will improve its efficiency.
| "auth": "npm run auth:npm && npm run auth:docker", | ||
| "generate": "node scripts/generate-git-commit-info.js", | ||
| "predocs:settings": "npm run build --workspace @google/gemini-cli-core", | ||
| "check:docs:settings": "npm run predocs:settings && npm run docs:settings -- --check", |
There was a problem hiding this comment.
The check:docs:settings script redundantly runs predocs:settings. The docs:settings script already has a predocs:settings lifecycle hook defined, which npm automatically executes before running docs:settings. This causes the build for @google/gemini-cli-core to run twice, making the check inefficient.
You can simplify the script to rely on the implicit execution of the pre hook.
| "check:docs:settings": "npm run predocs:settings && npm run docs:settings -- --check", | |
| "check:docs:settings": "npm run docs:settings -- --check", |
|
Size Change: -2 B (0%) Total Size: 24.4 MB ℹ️ View Unchanged
|
|
Suggestion from Sahoon we can also do a check with keybindings doc check? which I think is |
Summary
Testing