Skip to content

fix: ci check misses channel-dir bump files on promotion PRs#111

Merged
theoephraim merged 1 commit into
nextfrom
fix/ci-check-channel-bump-files
Jun 12, 2026
Merged

fix: ci check misses channel-dir bump files on promotion PRs#111
theoephraim merged 1 commit into
nextfrom
fix/ci-check-channel-bump-files

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Found via the promotion PR #110: its check failed and commented "Merging this PR will not cause a version bump" even though the cycle has two pending bump files.

Root cause: ciCheckCommand called readBumpFiles(rootDir) without the channels option, so files in .bumpy/next/ were never parsed. On a promotion PR those are exactly the pending files (the diff vs main lists them), so the diff-based filter matched nothing → "no bump files" comment + exit 1.

Fix:

  • ci check reads channel dirs like every other channel-aware path. This is safe for all PR shapes: feature PRs never have shipped channel files in their diff vs the PR base; promotion (channel → main) and graduation (channel → channel) PRs do, and there they genuinely are pending.
  • Channel-dir bump files render in the comment as next/feature.md with subdir-aware view-diff/edit links (previously they'd have linked to the nonexistent root path).

Deliberately not changed: the local bumpy check and bumpy add commands also read bump files without channels, but they always diff against config.baseBranch — making them channel-aware without base-branch awareness would wrongly count shipped channel files as branch coverage on feature branches off next. Separate issue.

Tests: promotion-PR comment rendering + the channel-path/basename id contract that the diff filter relies on. 295 pass.

After this merges to next, re-triggering the check on #110 should produce the proper stable-promotion comment (1.13.2 → 1.14.0).

ci check read only root bump files, so a promotion PR (next → main) — whose
pending work lives in .bumpy/next/ — reported 'no bump files found' and failed.
Read channel dirs like every other channel-aware path, and render channel-dir
files with their subdir path so the view-diff/edit links resolve.
@github-actions

Copy link
Copy Markdown

bumpy-frog

This PR targets the next prerelease channel — merging it ships these packages as a prerelease to the @next dist-tag, not a stable release.

patch Patch releases

  • @varlock/bumpy 1.13.2 → 1.13.3-rc.x

🔀 Published to the @next dist-tag (e.g. npm i @varlock/bumpy@next). Prerelease versions are derived at publish time — the .x counter is filled in from the registry. Promote to a stable release by merging next into your base branch.

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@theoephraim theoephraim merged commit 0175938 into next Jun 12, 2026
5 checks passed
theoephraim added a commit that referenced this pull request Jun 13, 2026
…ior (#116)

Doc gaps surfaced while dogfooding the `next` channel to completion.
Docs-only; no bump file (nothing under `packages/` changes).

**Release workflow examples (`github-actions.md`)** — both the
split-jobs and single-job examples now:
- comment that prerelease channel branches go in the `push` trigger too
(`[main, next, beta]`), with a link to the channels doc, and
- use a **per-ref concurrency group** (`bumpy-release-${{ github.ref
}}`). With a single shared group, a `next` prerelease publish queues
behind — or, with `cancel-in-progress: true`, gets cancelled by — a
`main` release, despite touching different dist-tags. This is the exact
lesson from our own `release.yaml`. The standalone **Concurrency**
section now explains the why, and notes the plain group is equivalent if
you only release from `main`.

**`prereleases.md` setup** — the "only trigger change" line now also
flags that an _existing_ workflow on a single concurrency group should
switch to per-ref (new workflows get it from the example).

**`cli.md`** — documents what `ci check` posts on channel PRs
(prerelease plan, `-<preid>.x`, dist-tag) and on **promotion PRs**
(reads `.bumpy/<channel>/`, shows the consolidated stable plan, calls
out that merging ends the cycle) — behavior that shipped in #111/#113
but wasn't in the command reference.

Not included here: the auto-close-promoted-release-PR docs ride with
#115; nothing here references that unmerged behavior.
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