ADRs live in docs/adr/ and use sequential numbering: 0001-slug.md, 0002-slug.md, etc.
ADR 放在 docs/adr/ 中,使用循序編號:0001-slug.md、0002-slug.md 等。
Create the docs/adr/ directory lazily: only when the first ADR is needed.
惰性地建立 docs/adr/ 目錄——只在需要第一個 ADR 時才建。
# {Short title of the decision}
{1-3 sentences: what's the context, what did we decide, and why.}
# {Short title of the decision}
{1-3 sentences: what's the context, what did we decide, and why.}
That's it. An ADR can be a single paragraph. The value is in recording that a decision was made and why, not in filling out sections.
就這樣。ADR 可以只是一個段落。價值在於記錄_做了_一個決策以及_為什麼_——不在於填滿章節。
Only include these when they add genuine value. Most ADRs won't need them.
只有當它們帶來真正的價值時才納入。多數 ADR 不需要它們。
proposed | accepted | deprecated | superseded by ADR-NNNN): useful when decisions are revisitedproposed | accepted | deprecated | superseded by ADR-NNNN)——當決策會被重新檢視時有用Scan docs/adr/ for the highest existing number and increment by one.
掃描 docs/adr/ 中最大的既有編號並加一。
All three of these must be true:
以下三項都必須成立:
If a decision is easy to reverse, skip it: you'll just reverse it. If it's not surprising, nobody will wonder why. If there was no real alternative, there's nothing to record beyond "we did the obvious thing."
如果決策容易逆轉,就跳過——你只會把它逆轉回來。如果不令人驚訝,沒人會問為什麼。如果沒有真正的替代方案,除了「我們做了顯而易見的事」之外沒有什麼好記錄的。