diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index cf463c5e8..018a3e544 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,7 +5,7 @@ - System components: dashboard, platform, operator, cilium, kube-ovn, linstor, fluxcd, cluster-api - Managed apps: postgres, mariadb, redis, kafka, clickhouse, virtual-machine, kubernetes - Development and maintenance: api, hack, tests, ci, docs, maintenance - - Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or add a `BREAKING CHANGE:` footer + - Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or add a `BREAKING CHANGE:` footer, a `fix` included. What counts as breaking: https://github.com/cozystack/cozystack/blob/main/docs/agents/contributing.md#what-counts-as-breaking - If it's a work in progress, consider creating this PR as a draft. - Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft. - Fixes merged to `main` reach the release lines the backport batch runs for automatically, so do not open backport PRs by hand: https://github.com/cozystack/cozystack/blob/main/docs/release/backports.md diff --git a/docs/agents/contributing.md b/docs/agents/contributing.md index f5f19d923..94d3e90a5 100644 --- a/docs/agents/contributing.md +++ b/docs/agents/contributing.md @@ -62,7 +62,7 @@ git commit --signoff --message "type(scope): brief description" - Apps, e.g.: `postgres`, `mariadb`, `redis`, `kafka`, `clickhouse`, `virtual-machine`, `kubernetes` - Other, e.g.: `api`, `hack`, `tests`, `ci`, `docs`, `agents`, `maintenance` -Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or add a `BREAKING CHANGE:` footer. +Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or add a `BREAKING CHANGE:` footer. What counts as breaking is defined in [What counts as breaking](#what-counts-as-breaking). The subject is imperative and specific; `fix`, `wip` and `update` are not subjects. The body, when there is one, explains why the change is made and only that: the diff already shows what changed and how. Write for a reader who has only `git log`, so no review-iteration or planning vocabulary (`address review comments`, `pass 2`, `batch 1`, `as discussed`) and no bare issue or ticket number in place of the explanation. @@ -84,6 +84,14 @@ A commit that fixes a defect introduced by an earlier commit carries a kernel-st Use `Closes: #N` only when the change fully resolves the issue. For partial work, use a non-closing reference such as `Refs: #N`; a closing commit trailer can close the issue when it reaches the default branch even if the PR body uses a non-closing link. For an issue in another repository, qualify the reference as `owner/repository#N`, including in a closing trailer (`Closes: owner/repository#N`). Reference trailers go after the body and before `Assisted-by:` and `Signed-off-by:`. +### What counts as breaking + +A change is breaking when, after the upgrade, an existing install, client or consumer is refused, loses something it used, or has to be edited to keep working. That covers a refusal at render, admission or runtime of something that worked before, including a refusal that hits only new or changed objects while existing ones keep working. Losing something covers a removed or renamed key, field or name, and a name or format a consumer reads. + +A change is not breaking when it only accepts more, makes something broken work, changes how a working install runs while it keeps working and there is nothing for the user to do, or refuses only what never worked, even if that rendered or deployed. The commit type does not exempt a change, and neither does the old behaviour having been a bug, as long as an install was running on it. + +The `release-note` block describes the consequence and what to do about it; it does not stand in for the marker. A release note that asks the operator to act, with an `Action required` line for instance, is a prompt to apply the definition above, and a change the definition calls breaking carries the `!` or the footer as well as the note. + ### AI Agent Attribution When an AI agent authors or materially assists with a commit, add exactly one trailer line next to the `Signed-off-by:` trailer that `--signoff` produces: