Skip to content

Dev-dependency-only bumps on next each produce a ready-to-merge release PR and a changelog obligation #370

Closed

Description

@Shinrai

Problem

Dependabot bumps of dev dependencies (for example vitest 5.0.2 → 5.0.3, eslint 10.11 → 10.12, @cldmv/vitest-runner 1.5.1 → 1.5.3) are merged into next by dependabot-auto-merge.yml. Each merge puts next ahead of master, so next-release.yml opens or refreshes the persistent next → master release PR, adds a chore: bump version to X.Y.Z commit, and titles the PR after the bump commit.

Nothing the package ships has changed in these ranges, but each one is treated as a release:

  • the release PR is open and mergeable, so it can publish a version that differs from the previous one only in devDependencies;
  • release-notes tooling (the release-docs sweep, report_release_prs) gives it the verdict write, so every one carries a changelog obligation.

Evidence (2026-10-08)

27 next → master release PRs were open at once. All 21 in non-dev-trunk repos were created by dev-dependency bumps, for example fix-headers #139, configs #26, uuid #63 and envm #45. Six more are in dev-trunk repos, where the scaffold next collects the same bumps.

Why it repeats: a dev-only cycle

Six packages dev-depend on each other: fix-headers, configs, vitest-runner, jsonv, eslint-plugin-jsonv and prettier-plugin-jsonv (for example fix-headers → configs → fix-headers; jsonv dev-depends on both plugins while the plugins peer-depend on jsonv). Every publish from one of them opens bump PRs in the other five and in every consumer; each of those merges and cuts a patch release, which publishes again. fix-headers 2.2.1 and configs 1.2.4 were both releases whose only change was the other's bump.

A check of the published manifests found no cycle over runtime, peer or optional dependencies, so installs are unaffected. The cycle exists only through devDependencies.

Constraint

The bumps themselves must keep landing on next (toolchain currency, security fixes). Nothing extra should be added to master, and a version should not be published just to carry them. They can sit on next and ride along with the next real change, which is effectively what happens when nobody merges these release PRs today.

Proposal

  1. Classify a pending range as deps-only when every commit between master and next is a dependency or tooling bump that does not touch the published artifact: only devDependencies, lockfiles and CI configuration changed, and dependencies, peerDependencies, optionalDependencies, files, exports and the shipped source are untouched.
  2. For a deps-only range, keep the release PR from becoming a ready-to-merge release. Hold it as a draft, or label it (for example release: deps-only) and exclude it from the release-merge auto-merge gate, so it cannot publish a no-op version by accident.
  3. Expose the classification to tooling: a deps-only verdict in the release-PR analysis, so a changelog is not demanded until a real change joins the range.
  4. When a real change joins, the PR becomes a normal release and the accumulated dev bumps are listed under the changelog's Dependencies section, as they are now.

Not proposed

Skipping or delaying the dependency bumps, retargeting Dependabot away from next, or committing anything directly to master.

Open questions

  • How to decide generically that the published artifact is unchanged: compare the manifest fields listed above, or compare npm pack --dry-run output?
  • Whether the version-bump commit should also be skipped for a deps-only range, so next does not keep incrementing its version.
  • Dev-trunk repos see the same release PRs on their scaffold next; the same classification would apply there.

Activity

  1. added
    type: enhancement
    priority: medium
    status: not started
    on Oct 8, 2026
  2. added a commit that references this issue on Oct 12, 2026
    81d4d28
  3. added
    status: implemented
    and removed
    status: not started
    on Oct 12, 2026
  4. cldmv-bot commented on Oct 12, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #374, merged into next. This issue closes automatically when that work ships to the default branch.

  5. cldmv-bot commented on Oct 12, 2026

    @cldmv-bot
    Contributor

    Closed in v4.33.0 — resolved by #374.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions