fix(release): gitea_release_assistant validate_semver/preview_notes always answer "Preflight complete" #31
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
gitea_release_assistantreturnsRelease Assistant: Preflight complete (no check details returned).for every action exceptpreflight, sovalidate_semverandpreview_noteslook like they ran a preflight and found nothing. The actual validation/notes payload is discarded.Repro
Observed vs expected
validate_semverreply names a different action and omits the version pair/bump type.preview_noteshides the generated en/ru/zh notes.validate_semver:Valid minor bump from 0.7.40-dsh.7 to 0.8.0(or the validation error). Expectedpreview_notes: the generated release notes (or a short preview) per language.Root cause
lib/release-assistant.jsreturns{ ok: true, data: validateSemverBump(...) }forvalidate_semverand{ currentVersion, targetVersion, notes: {en,ru,zh} }forpreview_notes.lib/handlers/formatters.jsonly handles the preflight shape:Proposed fix
Add per-action formatter branches:
validate_semver(current → next, bump type, or the error),preview_notes(language headings + notes, capped), and keeppreflightas is. Tests for all three payload shapes.Acceptance:
validate_semverprints the bump/validation result;preview_notesprints notes; neither mentions preflight.Duplicate check
Searched
release(state all) — #12/#28-adjacent but no assistant-output issue.Layer
dsh-gitea plugin/tool (formatter).
Fixed in
b74ca23(PR #43).The formatter branches on the payload:
validate_semver→Release Assistant: valid minor bump from 0.7.40-dsh.7 to 0.8.0.(or the validation error);preview_notes→ English/Russian/Chinese note blocks;preflightkeepsPreflight N/N passed.Live: both actions render their own result; neither mentions preflight.
Tests:
test/release-package.test.mjs.