ci: update changesets action to v2 input and output names - #628
Conversation
changesets/action v2 renamed its inputs and outputs. version -> version-script, commit -> commit-message, title -> pr-title, and the token moves from the GITHUB_TOKEN env var to the github-token input. The hasChangesets output is now has-changesets. Left unfixed it would resolve to empty, so every build, sign, and release step guarded on it would have silently skipped. Dashed output names need index syntax in expressions, since - is the subtraction operator. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AC2oCkfh7vSiv9bn4XUM4i
|
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 41 minutes Limit details: You’ve used all 2 included reviews currently available under your plan. You completed 81 included PR reviews in the past 7 days; at that activity level, included reviews refill at 2 reviews per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Comment |
Description
The Release workflow pins
changesets/action@198f833(v2.1.0), but still passed v1 input names, so the step hard-failed:Renamed the inputs, and moved the token from the
GITHUB_TOKENenv var to the newgithub-tokeninput (v2 reads the input and throws if a differingGITHUB_TOKENenv var is also set).The outputs were renamed too, which the error message does not mention.
hasChangesetsis nowhas-changesets. Left as-is, the eight downstream steps guarded onsteps.changesets.outputs.hasChangesets == 'false'would have compared an empty string against'false'and silently skipped — no database build, no checksum, no minisign signature, no GitHub Release. The workflow would have gone green while shipping nothing.Dashed output names also need index syntax (
outputs['has-changesets']) rather than dot access, since-is the subtraction operator in GitHub Actions expressions.version:version-script:commit:commit-message:title:pr-title:env: GITHUB_TOKENgithub-token:inputoutputs.hasChangesetsoutputs['has-changesets']Input and output names verified against
action.ymlat the pinned SHA, not from memory.Type of Change
Checklist
pnpm validateand it passesNo
data/*.yamlfiles are touched, so the data-oriented checklist items above do not apply. Verified instead: the workflow parses as YAML with the expectedwith:keys andif:expressions, andprettier --checkpasses.Additional Notes
No changeset is included: the
Changesetworkflow only requires one whendata/*.yamlchanges, and this is CI-only.Unaffected but worth noting for later:
existential-engineering/racks.github/workflows/release.ymlstill useschangesets/action@v1with the old input names. It works today on v1, but a bump to v2 there will hit this same breakage, including the silent output rename (pullRequestNumber→pr-number, which that workflow reads).Generated by Claude Code