Skip to content

release: v4.4.0 - redirect Dependabot security PRs to the hotfix lane - #40

Merged
Shinrai merged 27 commits into
masterfrom
next
May 26, 2026
Merged

Shinrai merged 27 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

🐛 Bug Fixes

🔧 Other Changes

👥 Contributors

Shinrai and others added 9 commits May 26, 2026 10:44
Replaces the placeholder/disclaimer text in the seed's cla-versions/v1.0.md
with the actual binding CLA. Twelve-section structure: definitions, ownership
retained, copyright + patent grants, representations, no-use-obligation,
no-warranty, no-support-obligation, org-member coverage, acceptance method,
versioning policy, and entire-agreement clause.

The text is sourced from CLDMV's draft CLA after legal review and
formatting cleanup (no hard-wrapping, fenced code block on the acceptance
text, center-aligned versioning table).

Boilerplate additions:
- .gitignore: standard Node + OS + editor hygiene plus .audit-cache.json
  (regenerable cache produced by tools/audit.mjs)
- signatures/github/.gitkeep: makes the platform-bucket path exist from
  day one so the structure is self-documenting before any signature is
  recorded
- README "License" section replaced with "Rights": all rights reserved,
  no license granted, since the ledger is a private internal CLDMV resource

This seed is the canonical source for what gets committed to the live
private CLDMV/.cla-signatures repository. The CLA.md at the root of this
.github repo stays as the contributor-facing template/sample (with its
own disclaimer) and is not affected by this change.
The .github repository is the workflow library, not a CLA participant.
Carrying a root-level CLA.md was a holdover from the per-PR signing model
and a footgun: any code path that opportunistically fetched CLA.md from the
.github repo would silently use this file as a fallback CLA source instead
of the binding text in the private CLDMV/.cla-signatures ledger.

Deletes CLA.md from the root. The binding CLA lives only in the private
ledger at cla-versions/v<X.Y>.md. A public-readable mirror is kept in this
repo's seed at examples/repo-seeds/.cla-signatures/cla-versions/ — that's
where consumers copy from when scaffolding a new repo that uses the CLA
workflow.

Doc updates aligned with the new model:
- examples/repo-seeds/.cla-signatures/VERSIONING.md: patch / minor / major
  workflows now sync the public seed mirror, not a "working copy" in .github
- examples/guides/WORKFLOW-SETUP-GUIDE.md: explains the deliberate absence
  of root CLA.md; references the seed mirror for consumer copies
- examples/guides/AGENT-SCAFFOLDING.md: scaffolding agents now copy from
  the seed mirror, not from a (non-existent) root CLA.md
- README.md: drops the CLA.md entry from the repo file tree

The consumer-side bot behavior is unchanged today: the bot reads CLA.md
from each consumer repo's own root. The "no root CLA.md in .github"
property protects against accidental shifts that would let the .github
repo's file leak in as the canonical CLA.
The seed at examples/repo-seeds/.cla-signatures/cla-versions/v1.0.md was
being described as a "mirror" of the private ledger's binding text. That
framing is wrong: a contributor reading the public sample can't verify
what the private one says, so calling the public one a mirror tells the
reader to defer to something they can't see.

Reframes the sample as a standalone public reference CLA — what consumer
repos copy from when scaffolding a local CLA.md, and what the org pushes
to the live private ledger to seed it. Same-text-in-two-places is a
maintenance discipline, not an architectural relationship.

- WORKFLOW-SETUP-GUIDE.md: "public sample" instead of "public mirror"
- AGENT-SCAFFOLDING.md: same (this is the doc agents follow for
  scaffolding new consumer repos)
- examples/repo-seeds/.cla-signatures/VERSIONING.md: rewrites the patch
  and minor/major bump steps to treat the sample as independent — keep
  it in step with binding text as a discipline, not a derivation
…er-text-hash scope

Two scopes resolved at runtime by checking whether the consumer repo has its
own root CLA.md:

- DEFAULT: no consumer CLA.md → bot reads cla-versions/v<X.Y>.md from the
  ledger. Signatures land at signatures/<platform>/v<X.Y>/<shard>/<id>.json.
  Version comes from the workflow cla_version input.

- OVERRIDE: consumer has root CLA.md → bot enforces that text. Version is
  parsed from the file's H1 header (e.g. "# CLDMV CLA — v1.0" → "v1.0"); the
  workflow cla_version input is only a fallback. Signatures land at
  signatures/<platform>/overrides/<owner>/<repo>/v<X.Y>/<shard>/<id>.json.

Signature scope is per-CLA-text-hash. Signing default v1.0 does NOT cover
override-repo v1.0 and vice versa — they're different agreements.

cla-record additions:

- On first signature for an override scope+version, bootstraps an immutable
  snapshot at cla-versions/overrides/<owner>/<repo>/v<X.Y>.md (with .sha256)
  before writing the signature.
- On subsequent override signatures, performs drift detection: if the
  consumer's current CLA.md sha256 differs from the snapshot's, the bot
  fails loudly with a clear remediation message (revert the edit or bump
  the header version).
- cla_url_at_signing always points at a commit-pinned URL in the ledger,
  not the consumer repo.
- Signature record gains agreement.cla_scope and agreement.cla_path_in_ledger
  so audit can see which scope a signature belongs to without parsing paths.

Removes the previous assumption that the bot reads CLA.md from the consumer
repo for every signature.
…ument override behavior

reusable-cla.yml: declares the new public_cla_url_template input and passes
it to the cla-check action. Workflow header comments updated to describe
default vs. override scope, the first-signer bootstrap, and the drift
detection.

examples/individual-repo-workflows/security/cla.yml: header comment block
updated to explain the two scopes and the fact that adding a root CLA.md
flips the consumer into override scope automatically.

The example consumer workflow doesn't need any input changes — defaults
cover both scopes correctly.

The linter flag on `public_cla_url_template` in reusable-cla.yml is a known
false positive: it resolves against the currently-tagged @v4 cla-check
action, which doesn't yet have the new input. Clears at the next v4 retag.
tools/audit.mjs now finds signatures across both signatures/<platform>/v<X.Y>/
(default scope) and signatures/<platform>/overrides/<owner>/<repo>/v<X.Y>/
(override scope) when looking up a contributor.

Adds --scope flag for --version queries:

  node tools/audit.mjs --version v1.0                          # default only
  node tools/audit.mjs --version v1.0 --scope overrides        # all overrides
  node tools/audit.mjs --version v1.0 --scope override:<o>/<r> # one override

Summary output now includes the signature's scope.
…docs

WORKFLOW-SETUP-GUIDE.md: rewrites the CLA Bot section to describe both
scopes, the bootstrap mechanic, drift detection, and the per-text-hash
signature scoping. Common-prereqs section drops the "CLA.md required by
cla.yml" framing and makes the local CLA.md explicitly optional (override
only).

AGENT-SCAFFOLDING.md: Q6 reframed (don't add CLA.md by default), new Q6b
asks whether the consumer needs an override. Setup-step rows mirror the
new behavior — agents must not drop a stray CLA.md or they silently flip
the repo into override scope.

README.md + examples/README.md: catalog entries describe both scopes.

examples/repo-seeds/.cla-signatures/README.md: Layout section split into
default-tree and override-tree diagrams. Signature record format section
gains the new agreement fields (cla_scope, cla_path_in_ledger). "How a
signature is added" walk-through now covers scope detection + bootstrap.

examples/repo-seeds/.cla-signatures/VERSIONING.md: adds the full
"Override CLAs" section — how versions are detected from the header,
first-signer bootstrap, why patch fixes to overrides aren't allowed (the
snapshot is binding once signed), and the minor/major bump workflow for
overrides. Default-scope sections labeled accordingly.
…38)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- fix(cla): remove root CLA.md; bot must use the central ledger as
source (f01b007)

### 🔧 Other Changes
- docs(cla): reframe public sample CLA, drop mirror-of-private framing
(549263a)
- chore(cla): seed real CLA text + add boilerplate files (730a90e)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@cldmv-bot cldmv-bot Bot added ! release → master release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected type: documentation Relates to docs, README updates, guides, or inline code comments labels May 26, 2026
…docs (#39)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- fix(cla): audit tool walks both default and override signature trees
(84ecbed)
- fix(cla): pass public_cla_url_template through reusable workflow;
document override behavior (97bb8d2)
- fix(cla): bot reads CLA from ledger (default) or consumer override;
per-text-hash scope (132bcb7)
- fix(cla): remove root CLA.md; bot must use the central ledger as
source (f01b007)

### 🔧 Other Changes
- docs(cla): describe override scope across all onboarding + reference
docs (7a25d06)
- docs(cla): reframe public sample CLA, drop mirror-of-private framing
(549263a)
- chore(cla): seed real CLA text + add boilerplate files (730a90e)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---------

Co-authored-by: Nate Corcoran <[email protected]>
Shinrai and others added 4 commits May 26, 2026 12:27
…fix lane

Previously the redirect-hotfix-pr action skipped every bot-authored PR. That
meant Dependabot's security-update PRs — which need to ship quickly via the
hotfix lane, not the next-batch release — sat on `next` until someone manually
retargeted them.

The action now redirects on either of two triggers:

- Head branch matches the hotfix/security pattern (existing behavior).
- Author is `dependabot[bot]` AND the PR body contains a GHSA reference (a
  `GHSA-xxxx-xxxx-xxxx` id or a `github.com/advisories/GHSA-…` URL). These
  body markers are present on Dependabot's security PRs and absent on
  routine version bumps, so the two paths cleanly separate.

Implementation:

- Adds `isDependabotSecurityPR({userLogin, prBody})` pure helper.
- `shouldSkip()` gains `userLogin` + `prBody` parameters and returns a new
  `redirectKind` field ("hotfix" or "dependabot-security") so the caller
  knows why the redirect happened.
- `buildCommentBody(oldBase, newBase, kind)` emits a kind-specific
  explanatory comment (mentions the GHSA reference for security redirects).
- `main()` pulls user.login + body from the fetched PR — no new inputs.
- Test suite expanded from ~14 to 30 cases covering the new helper, all
  shouldSkip branches with the new signature, and both comment kinds.

Docs updated in WORKFLOW-SETUP-GUIDE, AGENT-SCAFFOLDING, examples/README,
top-level README, and the example consumer hotfix-redirector.yml header.
…ession anchor'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…fix lane (#41)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
- feat(redirect-hotfix-pr): redirect Dependabot security PRs to the
hotfix lane (c4e4c89)

### 🐛 Bug Fixes
- Potential fix for pull request finding 'CodeQL / Missing regular
expression anchor' (329f7fe)

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@cldmv-bot cldmv-bot Bot changed the title release: v4.3.3 - remove root CLA.md; bot must use the central ledger as… release: v4.4.0 - redirect Dependabot security PRs to the hotfix lane May 26, 2026
@cldmv-bot cldmv-bot Bot added semver: minor This release adds new functionality in a backwards-compatible way type: feature request A request to add new functionality that does not currently exist and removed semver: patch This release contains only backwards-compatible bug fixes labels May 26, 2026
Shinrai added 4 commits May 26, 2026 12:42
…-merge wiring

Adds a new template at examples/individual-repo-workflows/automation/dependabot.yml
that consumers copy to their own .github/dependabot.yml. Sets target-branch
to "next" so Dependabot's PRs pool with other contributor changes and
batch into the next release. Includes github-actions + npm ecosystem blocks
by default with weekly schedules and a "deps" commit-message prefix —
consumers customize ecosystems for their stack.

Dependabot security updates flow into the hotfix lane via the
dependabot-aware hotfix-redirector (separate branch): the body's GHSA
reference triggers an automatic next → hotfixes retarget before
dependabot-auto-merge.yml takes effect. No special config needed in
dependabot.yml itself — both routine and security PRs target "next"; the
redirector promotes the security ones.

Updates to existing files:

- examples/.../automation/dependabot-auto-merge.yml: docstring rewritten
  for v4. Default-on, opt-out by deletion; explains the routing interplay
  with hotfix-redirector. Note that branch protection now needs CI checks
  on `next` and `hotfixes`, not just master.
- .github/workflows/reusable-dependabot-auto-merge.yml: header comment
  explains the v4-aware merge target.
- WORKFLOW-SETUP-GUIDE.md: new "Dependabot config" section above the
  auto-merge section; Dependabot Auto-Merge section rewritten to explain
  the default-on + opt-out model and the hotfix-redirector sequence.
- AGENT-SCAFFOLDING.md: Q7 reframed (Dependabot enabled? — encompasses
  both files; auto-merge defaults ON). Setup-step row tells agents to
  copy dependabot.yml to .github/, NOT .github/workflows/. New troubleshooting
  entry for the common mistake.
- examples/README.md: catalog rows updated.
…ding

The embedded-tests-ci capability has lived as a documented convention in
docs/conventions/embedded-tests-ci.md but is invisible from any of the
consumer-facing surfaces (onboarding guide, scaffolding agent, examples
catalog, top-level README). An agent or human walking those discovery
docs would never learn the feature exists, even though the CI workflow
fully supports it via the enable_embedded_tests input.

This commit just adds visibility. No code changes.

- examples/guides/WORKFLOW-SETUP-GUIDE.md: new "Optional: embedded private
  tests" subsection under CI Tests & Build with a link to the conventions
  doc; the high-level table row for ci.yml flags the capability.
- examples/guides/AGENT-SCAFFOLDING.md: new Q11 discovery question; new
  setup-step row for Q11 (no file copy, just an input flip on ci.yml).
- examples/README.md: pointer to the conventions doc in the Guides list.
- README.md: bullet under "CI Workflow" mentioning the optional input.
…-merge wiring (#42)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 🔧 Other Changes
- chore(dependabot): add v4-tuned dependabot.yml template + update
auto-merge wiring (d52b60e)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
…ding (#43)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 🔧 Other Changes
- docs(embedded-tests): surface the embedded-tests-ci feature in
onboarding (27a82f6)
- chore(dependabot): add v4-tuned dependabot.yml template + update
auto-merge wiring (d52b60e)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@Shinrai Shinrai self-assigned this May 26, 2026
Shinrai added 3 commits May 26, 2026 13:53
…hangelogs

Two related fixes for the duplicated-commit-line problem in to-master
release PRs.

**1. Ruleset generator now emits per-branch merge methods.**

The pullRequestRule helper accepts a `mergeMethods` array. Builders pass:

  - master    → ["squash"]   (each release lands as one clean commit on
                              the released line; categorized changelog in
                              the commit body)
  - next      → ["rebase"]   (feature-PR commits land linearly; GitHub
                              appends `(#N)` to subjects on merge)
  - hotfixes  → ["rebase"]   (same, for the hotfix lane)

Previously every branch was hard-coded to ["squash"]. With rebase on
next/hotfixes, the to-master release PR no longer has a merge commit AND
the original commit for each feature PR (which is what was producing the
"duplicate line per PR" mess in next/hotfixes git log + changelog).

The generator's `index.html` notes section is updated to describe the new
per-branch policy.

**2. Changelog generator annotates commits with their PR refs.**

generate-comprehensive-changelog now looks up each commit's associated
pull request via `GET /repos/{owner}/{repo}/commits/{sha}/pulls` when the
commit's subject doesn't already carry a `(#N)` reference. The result is
that the to-master release PR's categorized changelog has a PR link for
every commit, regardless of whether the commit came in via rebase-merge
(subject already has `(#N)`) or some other path.

Augmentation is best-effort: API failures or missing owner/repo/token
degrade gracefully to the un-annotated subject. Already-annotated commits
are passed through unchanged so the existing rebase-merge flow incurs no
extra API calls.

The augmentation runs after `filterBotCommits`, so version-bump commits
and other bot-attributed entries are still filtered out and never get a
PR ref looked up.
…lback

Two related ruleset-generator fixes following review:

**Copilot review belongs on next + hotfixes, not master.** Under the v4
flow, master PRs are release bundles opened by the release-flow workflows
from next or hotfixes — every commit in them was already reviewed when it
landed there. Code review (human or Copilot) on the release PR adds no
signal; the PR review is essentially "approve the version bump and
changelog". So the Copilot opt-in now adds the `copilot_code_review` rule
to next and hotfixes (where actual code-review PRs land) and not to master.

**Allow squash as a fallback on next / hotfixes.** Rebase stays the
preferred merge method (listed first → default button selection), so the
to-master release-PR changelog still benefits from GitHub's auto-appended
`(#N)` refs on commit subjects. But maintainers occasionally want to
collapse noisy PR history (lots of "fix typo" / "wip" commits) — leaving
squash available as a dropdown choice keeps that escape hatch.

index.html notes + checkbox label updated to reflect both changes.
…llNumber

CodeQL flagged `if (!sha || !owner || !repo || !token) return null;` as a
useless conditional that always evaluates to false. It does — the only
caller is augmentCommitsWithPRRefs, which already validates owner/repo/token
at the top of the function and skips commits with `if (!sha) continue;`
before calling. The inner check is dead code.

Removed; replaced with a short comment noting the caller's contract.
Shinrai added 6 commits May 26, 2026 14:00
…ked-PR commits

**Two related fixes — same root cause: signatures.**

GitHub's "Rebase and merge" web-UI button re-creates the PR's commits
server-side and strips their GPG signatures. Every rebased commit lands on
the target unsigned, even when the source PR's commits were all signed.
This is a documented GitHub limitation; there's no setting to make
rebase-merge preserve signatures.

To keep signed commits on `next`/`hotfixes`, only "Create a merge commit"
is allowed there now. It keeps the PR's original commits intact (signatures
preserved) and adds a single merge commit on top. master stays squash —
each release still lands as one clean signed commit.

**Ruleset generator** (`docs/tools/ruleset-generator/`):

- `buildNext` / `buildHotfix`: `mergeMethods` → `["merge"]` (was `["rebase", "squash"]`).
- Comments + index.html notes explain why and call out the signature-strip
  behavior so a maintainer who sees a "Rebase and merge" button in some
  consumer repo with looser settings knows to avoid it.

**Changelog generator dedup** (`.github/actions/git/steps/generate-comprehensive-changelog/action.mjs`):

With merge commits, a stacked PR's source branch contains the earlier
PR's commits via the original SHAs. The `base..head` range then includes
them in the rendered changelog even though they're already on the target
(via the earlier PR's merge commit). Patch-id-based dedup via `git cherry`
identifies those duplicates and drops them from the body:

  filterAlreadyAppliedByPatchId(commits, "base..head")
    runs `git cherry <base> <head>`, parses `-` lines (patch already on
    base), filters those SHAs out of the commits array.

The release-to-master changelog (master..next range) is unaffected: master
has no equivalent patches for commits between releases, so `git cherry`
marks everything as `+` and the dedup is a no-op there.

**Out-of-scope for this commit but documented elsewhere:** the existing 3
unsigned commits on `next` (from the earlier rebase-merge experiment) are
historical artifacts. They'll be absorbed into the next master squash —
the resulting release commit on master is signed, so the published line
is clean. If we want to force-fix `next` itself, that's a separate
admin-bypass force-push operation, not part of this code change.
…eset-generator links

The top-level README still had v3-launch framing throughout — "🆕 v3"
markers on every entry in the file tree, an "Available Workflows" section
that described the v3 single-PR release model ("push `release:` commits to
non-master branches"), and a "Reusable building blocks" intro that called
them "introduced in v3". All of that's now years old; the relevant info
is what each workflow does today, not when it was added.

**Quick Start** rewritten to walk a new consumer through actual v4 adoption:
copy release-flow-v4 templates, copy core-cicd templates, import rulesets
from the generator, dispatch v4-bootstrap, configure fork-PR approval.
Points readers at AGENT-SCAFFOLDING.md for agent-driven setup.

**Repository Structure** tree drops every "🆕 v3" marker. The annotations
that remain describe what each file does, not when it landed. Adds the
seed dir for the CLA-signatures ledger and the ruleset-generator tool dir,
which the previous tree omitted.

**Org entry-point workflows** section renamed from "Available Workflows"
and rewritten:
  - workflow-ci, workflow-publish, workflow-update-major-version-tags,
    reusable-tag-health: each now describes its v4 trigger context
    (workflow_call from the consumer's matching .yml).
  - workflow-release: explicitly demoted as **legacy v3 only** — new
    repos using v4 use next-release.yml / hotfixes-release.yml from the
    staging-branch flow and never push `release:` commits manually.
  - New paragraph at top mentions the optional `enable_embedded_tests`
    input on workflow-ci (the embedded-tests-ci convention).

**Reusable building blocks** intro drops "introduced in v3, current on @v4".

**Documentation** section expanded from 3 bullets to 8 — adds the
scaffolding guide, setup guide, release-flow-v4 design doc, branch-naming
conventions, embedded-tests-ci convention, and the v3-to-v4 migration
guide that consumers actually need to find.

**Ruleset-generator links** across the repo updated to point at the
GitHub Pages-hosted page (https://cldmv.github.io/.github/tools/ruleset-generator/)
instead of the source-view URL on github.com. The old links rendered the
HTML source in GitHub's web UI rather than serving the running tool.
Updated in: README, docs/migration/v3-to-v4.md, docs/conventions/release-flow-v4.md,
examples/guides/AGENT-SCAFFOLDING.md, examples/individual-repo-workflows/release-flow-v4/v4-bootstrap.yml.
…eset-generator links (#46)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 🔧 Other Changes
- docs(readme): modernize for v4; drop stale v3-launch markers; fix
ruleset-generator links (d09fdb8)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
…ked-PR commits (#47)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- fix(v4): prefer "Create a merge commit" on next/hotfixes; dedupe
stacked-PR commits (c552494)

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
Under v4's merge-commit-only policy on `next`/`hotfixes`, every PR that
lands leaves two artifacts in the target branch's history:

  - The merge commit (subject: `<PR title> (#N)`, with two parents — the
    target branch and the PR's head)
  - The original commits from the PR's source branch, unchanged

`next-release.yml` walks `master..next` and feeds every commit in that
range to the changelog generator. Without filtering, the result is each
PR producing two adjacent changelog lines that say the same thing — one
for the merge commit (with the auto-appended `(#N)`) and one for the
original commit (without). E.g.:

    feat(redirect-hotfix-pr): ... (#41) (5fb9ffb)    ← merge commit
    feat(redirect-hotfix-pr): ... (c4e4c89)          ← original

The merge commit is structural — it joins histories — but it isn't a
real change-bearing commit. The contributor's original commit already
describes the change. The merge commit should never appear in a release
changelog.

Adds `filterMergeCommits(commits, range)` to generate-comprehensive-
changelog, which uses `git log --merges --format=%H <range>` to
enumerate merge commits in the range and drops them from the commits
array. Best-effort: failures log a warning and pass commits through
unchanged. One git call per generator run.

Runs in this order in the filter chain:
  1. filterBotCommits        (drops bot-attributed / automation commits)
  2. filterMergeCommits      (NEW: drops structural merge commits)
  3. filterAlreadyAppliedByPatchId   (drops stacked-PR duplicates by patch-id)
  4. augmentCommitsWithPRRefs        (appends (#N) to commits whose subject lacks it)

Combined effect on the example above: after the merge commit is dropped,
`c4e4c89` survives. augmentCommitsWithPRRefs then queries the API,
finds it's associated with PR #41, and produces:

    feat(redirect-hotfix-pr): ... (#41) (c4e4c89)

— one clean line per PR, with the PR link attached to the actual commit.
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- fix(changelog): drop merge commits from release-PR changelog (7ccdfde)

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@Shinrai
Shinrai merged commit e9b5d98 into master May 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected type: documentation Relates to docs, README updates, guides, or inline code comments type: feature request A request to add new functionality that does not currently exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant