Skip to content

ci: link the migration guide and evaluate pull requests with the release configuration - #1326

Merged
kimpenhaus merged 4 commits into
mainfrom
ci/migration-guide-link
Nov 11, 2026
Merged

kimpenhaus merged 4 commits into
mainfrom
ci/migration-guide-link

Conversation

@kimpenhaus

@kimpenhaus kimpenhaus commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Changes

  • Release notes: .release/release.base.mjs adds a finalizeContext hook to the release notes generator. Every release with breaking changes gets a link to the migration guide section of its major version (#upgrading-from-v{N-1}-to-v{N}) as the first entry under "⚠ BREAKING CHANGES". Releases without breaking changes are unchanged.
  • Upper-case footer only: commit analyzer and release notes generator use a notesPattern without the case-insensitive flag. Only BREAKING CHANGE / BREAKING-CHANGE in upper case count as breaking; ! in the header works as before.
  • One set of rules for PRs and releases: .release/check-pull-request.mjs evaluates a PR with the configuration of release.base.mjs. It parses the title with the release's commit parser and checks the type against presetConfig.types, then runs the commit analyzer on the prospective squash commit (title and description). No type list or breaking-change pattern is maintained a second time.
  • Pull Request workflow (.github/workflows/pull-request.yml), runs on open, edit and push:
    • PR Title: installs the release tooling (npm ci --ignore-scripts, cached) and runs the script. The job summary shows which release the PR results in.
    • Migration Guide: when the script reports a major release, fails unless the PR updates docs/docs/operator/migration.mdx.
  • conventional-commits-parser becomes a direct dependency of the release tooling, at the version that was already installed (6.4.0).
  • Contribution guides: the contribution page in the docs describes how to mark breaking changes and both checks; CONTRIBUTING.md links to it.

The notes of v14.0.0-prerelease.1 were updated by hand with the migration guide link.

Before merging

To make the checks block merges, add PR Title and Migration Guide as required status checks for main.

Verification

Releases with breaking changes now link the migration guide section of
their major version as the first entry under "BREAKING CHANGES".

The new "Migration Guide" check fails a pull request whose title is marked
with "!" or whose description contains "BREAKING CHANGE" when it does not
update docs/docs/operator/migration.mdx. The contribution guides describe
the rule.
…tles

The commit parser matched the BREAKING CHANGE footer without regard to case,
so a description line starting with "Breaking change" triggered a major
release. Commit analyzer and release notes generator now only accept the
upper-case footer that Conventional Commits requires.

The "Migration Guide" check uses the same patterns as the parser. The new
"PR Title" check validates the PR title, which becomes the squash commit
header. Both jobs live in the "Pull Request" workflow.
@kimpenhaus kimpenhaus changed the title ci: link the migration guide for breaking changes ci: link the migration guide and enforce breaking change conventions Nov 11, 2026
The PR Title check now runs .release/check-pull-request.mjs instead of a
separate title action and bash patterns. The script parses the title with
the commit parser and types of release.base.mjs and runs the commit
analyzer on the prospective squash commit (title and description). Its
result decides whether the Migration Guide check requires a guide update,
and the job summary shows which release the PR results in.

conventional-commits-parser becomes a direct dependency of the release
tooling at the version that was already installed.
@kimpenhaus kimpenhaus changed the title ci: link the migration guide and enforce breaking change conventions ci: link the migration guide and evaluate pull requests with the release configuration Nov 11, 2026
@kimpenhaus
kimpenhaus merged commit e5a7fb6 into main Nov 11, 2026
9 checks passed
@kimpenhaus
kimpenhaus deleted the ci/migration-guide-link branch November 11, 2026 11:10
kimpenhaus added a commit that referenced this pull request Nov 11, 2026
## Problem

The release notes of every breaking release now link the migration guide
section of their major version (#1326), but the section "Upgrading from
v13 to v14" only covered #1319. The breaking changes of #1285 and #1301
were missing.

## Changes

`docs/docs/operator/migration.mdx`, section "Upgrading from v13 to v14":

- **Introduction** summarizing the v14 changes.
- **.NET 8 and .NET 9 no longer supported** (#1285): target `net10.0` or
`net11.0` with the .NET 10 SDK or later, raise directly referenced
`Microsoft.Extensions.*` / ASP.NET Core packages (otherwise `NU1605`),
or stay on v13.
- **`AddDevelopmentTunnel` removed** (#1301): start a tunnel and switch
to `UseExternalWebhookEndpoint(...)`, with a before/after example, the
configuration-based overload and `WithWebhookDevTunnel()` for Aspire;
links to the tunnel and Aspire sections of the webhook docs.
- **Webhooks derived through a base class of your own are registered**
(#1301): such webhooks become active with the update; a duplicate
validation or mutation webhook per entity kind, group and version fails
the start.

The existing sections for #1319 are unchanged.

## Verification

- `npm run build` in `docs` (`onBrokenLinks: "throw"`): succeeded
without broken links or anchors.
- In the built page, the new links resolve to existing anchors:
`packages/#supported-target-frameworks`,
`building-blocks/webhooks#tunnel`, `#aspire`, `#webhook-classes`.
- The `AddDevelopmentTunnel(ushort port, string hostname = "localhost")`
signature in the example matches v13.
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 14.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant