mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 14:42:05 +09:00
docs(contributing): define what counts as a breaking change
The guide says how to mark a breaking change and never says what one is. A fix that made a values shape the previous version rendered fail at render time was merged with no marker, and review asked for a release note instead, because neither this file nor the PR template gives a test to apply. The test is what an install that already runs gets after the upgrade: refused, stripped of something it used, or made to edit its config. The commit type says what a change is for, not what it does to an install that is already running. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
1 parent
8c1e085c92
commit
65db30265e
2 files changed
+10
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user