You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: let cacheless Netlify deploys proceed - #483
At netlify.toml:9, the old ignore command diffs the current commit against itself when the two refs match. It returns 0, so Netlify skips the docs build and can keep serving stale instructions. The updated command returns 1 for equal refs so Netlify builds. For different refs, the existing Git diff still checks Documentation and netlify.toml for changes. This is the repository's only ignore hook that uses the two refs. Netlify ignore commands
The cache ref from the deploy reported in #170 is unknown, so the cause of that skip remains unconfirmed.
How was it tested?
A temporary Bats file (not committed) on macOS. It read and ran the configured hook from Documentation/. On main, the equal-ref case returned 0 instead of 1. With the patch, all six cases passed, including the skip for distinct refs with identical docs and config.
make lint SWIFTLINT_FLAGS='--no-cache --strict' passed with SwiftLint 0.65.1 and zero violations.
git diff --check origin/main -- netlify.toml passed. The TOML parsed, and Bash accepted the hook syntax.
No live Netlify build was run.
AI tool usage
How much of the code in this PR was AI-assisted? (check one)
0 - No AI was used to write code
1 - I was assisted by AI in writing code. I reviewed the finished result.
2 - I set the AI going and left it to it; nobody has read the result - no review, or AI review only
Draft PR.
Prepared with AI assistance (Codex and Claude Code) and reviewed with GitHub Copilot.
Updated build checks so changes to documentation or build configuration can trigger a Netlify build, even when other commit conditions would otherwise skip it. This helps ensure published documentation and deployment settings stay in sync with the latest changes.
This change lets Netlify deploys that have no cache proceed instead of being skipped. Documentation builds are still skipped when nothing relevant changed. The risk is low and the change is easy to revert.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "build: let cacheless Netlify deploys proceed" matches the single change in the changeset. The Netlify ignore condition in netlify.toml is changed so that cacheless deploys, where the cached…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "build: let cacheless Netlify deploys proceed" matches the single change in the changeset. The Netlify ignore condition in netlify.toml is changed so that cacheless deploys, where the cached and current commit refs match, no longer skip the docs build. The title names the main change and the component (build) in a short, specific sentence.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: e62688fc-6c66-4ff2-826d-f5a8a4c43b62
Commits
Reviewing files that changed from the base of the PR and between 9f76637 and ae546f3.
Files selected for processing: 1
netlify.toml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
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
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.
What does this PR do?
At
netlify.toml:9, the old ignore command diffs the current commit against itself when the two refs match. It returns0, so Netlify skips the docs build and can keep serving stale instructions. The updated command returns1for equal refs so Netlify builds. For different refs, the existing Git diff still checksDocumentationandnetlify.tomlfor changes. This is the repository's only ignore hook that uses the two refs. Netlify ignore commands“When a build runs without cache,
CACHED_COMMIT_REFwill be the same as theCOMMIT_REF.” Netlify build environment variablesRefs #170
The cache ref from the deploy reported in #170 is unknown, so the cause of that skip remains unconfirmed.
How was it tested?
Documentation/. Onmain, the equal-ref case returned0instead of1. With the patch, all six cases passed, including the skip for distinct refs with identical docs and config.make lint SWIFTLINT_FLAGS='--no-cache --strict'passed with SwiftLint 0.65.1 and zero violations.git diff --check origin/main -- netlify.tomlpassed. The TOML parsed, and Bash accepted the hook syntax.No live Netlify build was run.
AI tool usage
How much of the code in this PR was AI-assisted? (check one)
Draft PR.
Prepared with AI assistance (Codex and Claude Code) and reviewed with GitHub Copilot.
🤖 Generated with Claude Code
Summary by CodeRabbit