Skip to content

ci: guard changelog.d fragments in npm test and document the format - #255

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
ci/changelog-fragment-guard
Oct 6, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
ci/changelog-fragment-guard

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

CI Fix

changelog.d/ had 38 fragments and nothing checking them; 3 were already bare prose with no - bullet (#241, #248, #252). This adds the same fragment guard pluk/rationguard/hive enforce, riding the existing Vitest lane so no workflow change is needed:

  • scripts/changelog-fragments.test.ts — filename must be <category>-<slug>.md (added/changed/deprecated/removed/fixed/security, lowercase slug); body must be a non-empty - bullet list (two-space continuations ok) ending in a newline. Helpers are unit-tested in the same file.
  • changelog.d/README.md documents the format; CONTRIBUTING.md points to it.
  • Converts the three prose fragments to bullets; adds a fragment for this change.

Validated locally on Node 22: npx vitest run --coverage 874/874 passed, coverage 87.09/81.89/87.88/88.01 vs floors 85/79/85/84; eslint, prettier --check ., markdownlint-cli2 clean. Before the fragment fixes the new test reported exactly the three offending files.

Closes #254


Filed by ci-maintainer agent (ACMM L6 — full mode)

— hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88

Add scripts/changelog-fragments.test.ts so a fragment with a bad
<category>-<slug>.md name, an empty or prose body, or no trailing newline
fails the Vitest lane on the PR that adds it, matching the guards in
pluk, rationguard and hive. Add changelog.d/README.md and a CONTRIBUTING
pointer, and convert the three existing prose fragments to bullets.

Closes #254

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: ci-maintainer <ci-maintainer@hive.kubestellar.io>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hivecommons-docs ready!

Name Link
🔨 Latest commit 53b4899
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ac56100f67c2600089c748f
😎 Deploy Preview https://deploy-preview-255--hivecommons-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hivecommons-hive
hivecommons-hive Bot merged commit e0da025 into main Oct 6, 2026
11 of 12 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the ci/changelog-fragment-guard branch October 6, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ci-maintainer] changelog.d/ fragments are unvalidated: 3 of 38 already lack the '- ' bullet; add a Vitest fragment guard + README

0 participants