Skip to content

fix: read release version from candidate - #109

Merged
nicholls73 merged 1 commit into
mainfrom
codex/fix-release-version-dispatch
Jul 31, 2026
Merged

fix: read release version from candidate#109
nicholls73 merged 1 commit into
mainfrom
codex/fix-release-version-dispatch

Conversation

@nicholls73

@nicholls73 nicholls73 commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • read the release version from the release PR head commit
  • dispatch automatic approval with that exact version

Why

Release Please's PR output does not include a version field, so the automatic dispatch failed before creating Release v0.7.1.

Validation

  • live lookup against release PR chore(main): release 0.7.1 #101 returned 0.7.1
  • workflow YAML and embedded Bash syntax
  • pnpm lint
  • pnpm build
  • pnpm test (128 passed, 1 skipped)

Summary by CodeRabbit

  • Bug Fixes
    • Release approvals now use the version from the prepared release change, improving accuracy and preventing mismatches with manually supplied release details.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1e300474-5582-4cbf-beb5-abc6b3a844ed

📥 Commits

Reviewing files that changed from the base of the PR and between 16cb34f and 1670568.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

📝 Walkthrough

Walkthrough

The release approval workflow now derives the release version from the prepared release PR’s head commit and its package.json, instead of using the dispatch payload.

Changes

Release approval

Layer / File(s) Summary
Read version from release PR commit
.github/workflows/ci.yml
The approval step parses the release PR number, retrieves its head SHA, and reads package.json at that commit to determine the release version.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: reading the release version from the release candidate.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-release-version-dispatch

Comment @coderabbitai help to get the list of available commands.

@nicholls73
nicholls73 merged commit 0d44652 into main Jul 31, 2026
6 checks passed
@nicholls73
nicholls73 deleted the codex/fix-release-version-dispatch branch July 31, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant