GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — ci: release the SDK on any change that alters what it ships by josecarneiro · Pull Request #470 · epilot-dev/sdk-js Conversation
Contributor
WhyThe
This is not hypothetical: #464 and #469 both landed on The trap this has to avoidThe So a naive The gate works today partly by accident: the release commit happens to match nothing in it. Widening removes that accidental protection, so this PR restores it deliberately. What changedThe gate matches hand-written paths and excludes generated output: SDK_PATHS='^(clients/.*/openapi\.json$|clients/[^/]+/src/(schema-model|additional-types|index)\.ts$|scripts/generate-sdk-v2\.ts$|packages/epilot-sdk-v2/src/)' SDK_GENERATED='^packages/epilot-sdk-v2/src/(apis|types|models|definitions|docs)/|^packages/epilot-sdk-v2/src/client-map\.ts$' if echo "$CHANGED_FILES" | grep -E "$SDK_PATHS" | grep -qvE "$SDK_GENERATED"; then A denylist for the generated dirs rather than an allowlist of runtime files, so a new hand-written module is covered by default instead of silently missed. The release commit now carries The CLI gate is untouched. Test planRan the new expression against real commit file lists, including the actual release commit:
Out of scopeThis covers Generated by Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe auto-release gate only fired on `clients/*/openapi.json`, so a change to the SDK's own runtime (proxy.ts, retry.ts, client-factory.ts), to a hand-written client module (schema-model.ts, additional-types.ts), or to the generator itself never published. #464 and #469 both landed on main unpublished and only shipped when an unrelated spec PR swept them up. The gate now matches those paths too, and excludes the generated output under src/{apis,types,models,definitions,docs} — the auto-release commit rewrites those itself, so matching them would make it re-trigger this job and bump versions in a loop. The release commit also now carries `[skip release]`, which the job's own `if` already honours, as a second layer in case the exclusion is later widened carelessly. Verified the new expression against real commit file lists: a spec change, #464, #469, an SDK runtime fix and a generator change all trigger; the auto-release commit 5e39d9c, docs-only, changeset-only and generated-output-only changes all do not. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PXhwfYV419Bodt42E3aw2C
4 tasks done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | ||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |