Repository navigation
fix(paths-gate): fall back to full CI when the diff can't be computed - #331
Merged
Merged
Conversation
The paths gate failed the whole CI run when GET /compare/{before}...{after}
returned `404 No common ancestor`, which happens on every push that rewrites
a ref's history (e.g. dev-trunk repos force-pushing a new root commit over
master/next/hotfixes).
The gate now emits docs_only=false plus a ::notice:: naming the reason, and
never fails the run because of the comparison, when:
- the push has a zero or missing `before` SHA;
- the compare API errors (no common ancestor, `before` not found after a
force-push, or any other status);
- the compare succeeds but `before` is not an ancestor of `after`
(status diverged/behind), where a three-dot diff describes the wrong change
set — a force-push back to an older commit diffed as empty and was
treated as docs-only;
- listing a pull request's files fails.
Behaviour is unchanged when the comparison works. Adds action.test.mjs
(subprocess + mocked fetch) covering these cases and wires it into npm test.
Fixes #330
Contributor
|
Resolves #330 — closed when this ships to the default branch. |
Shinrai
approved these changes
Sep 28, 2026
cldmv-bot Bot
added a commit
that referenced
this pull request
Sep 28, 2026
…mpty… ## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes - #331 - fix(paths-gate): fall back to full CI when the diff can't be computed (63d87e6) - #328 - fix(bundle-size): normalize ./ dist_paths and prune the measure walk (5e6e1c1) - #326 - fix(bundle-size): treat bundle-size.yml as standard v4 and warn on empty dist_paths (085f941) ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes - #326 - test(bundle-size): cover exact-path, glob and zero-match dist_paths (4db8fec) <details> <summary>👥 Contributors</summary> - @Shinrai </details> <!-- co-authors --> Co-authored-by: Shinrai <[email protected]>
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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors