Fix Vale CI failure: add .github/styles/.gitkeep and update .gitignore#152
Merged
Bill Traynor (wmat) merged 3 commits intoJun 8, 2026
Merged
Conversation
Bumps [docs-resources](https://github.com/riscv/docs-resources) from `0904c8a` to `dd2c065`. - [Commits](riscv/docs-resources@0904c8a...dd2c065) --- updated-dependencies: - dependency-name: docs-resources dependency-version: dd2c065ac55cf9649074a9f7a363383b054aae73 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Copilot
AI
changed the title
Bump docs-resources from
Fix Vale CI failure: add .github/styles/.gitkeep and update .gitignore
Jun 8, 2026
0904c8a to dd2c065
Bill Traynor (wmat)
approved these changes
Jun 8, 2026
Bill Traynor (wmat)
left a comment
Collaborator
There was a problem hiding this comment.
Makes sense
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.
Fixes the failing GitHub Actions job
call-reusable-vale-workflow-in-riscv-vale-repo / runner / vale.Root Cause
Vale 3.x validates that the
StylesPathdirectory physically exists before proceeding. The.vale.iniconfiguresStylesPath = .github/styles, but that directory was not tracked in git (git does not track empty directories). When GitHub Actions checked out the repository, the directory was absent, causing Vale to abort immediately withE201 Invalid value.As a secondary consequence,
vale syncfell back to the global styles directory (/home/runner/.local/share/vale/styles) rather than the project-level.github/styles/, so the downloaded packages were not available to the subsequent lint run.Changes Made
.github/styles/.gitkeep: Added to ensure theStylesPathdirectory is tracked by git and present on checkout. This allows Vale's directory validation to pass and causesvale syncto correctly install packages into.github/styles/..gitignore: Added.github/styles/*and!.github/styles/.gitkeepto prevent Vale's downloaded style packages from being accidentally committed to the repository while preserving the.gitkeepfile.