mirror of
https://github.com/olivierlacan/keep-a-changelog.git
synced 2025-08-22 18:28:16 +02:00
276 lines
23 KiB
HTML
276 lines
23 KiB
HTML
<!DOCTYPE html> <html lang='zh-TW'> <head> <meta charset='utf-8'> <meta content='IE=edge' http-equiv='X-UA-Compatible'> <meta content='width=device-width, initial-scale=1.0' name='viewport'> <meta content='更新日誌絕對不應該是 git log 的堆砌物' name='description'> <meta content='https://www.facebook.com/olivier.lacan.5' property='og:article:publisher'> <meta content='如何維護更新日誌' property='og:title'> <meta content='article' property='og:type'> <meta content='https://keepachangelog.com/zh-TW/1.1.0/' property='og:url'> <meta content='更新日誌絕對不應該是 git log 的堆砌物' property='og:description'> <meta content='https://keepachangelog.com/assets/images/keep-a-changelog-opengraph-851f2d20.png' property='og:image'> <link href='/assets/images/favicon.ico' rel='shortcut icon' type='image/x-icon'> <link href='https://keepachangelog.com/zh-TW/1.1.0/' rel='canonical'> <title>如何維護更新日誌</title> <link href='https://fonts.googleapis.com' rel='preconnect'> <link crossorigin='true' href='https://fonts.gstatic.com' rel='preconnect'> <link href="//fonts.googleapis.com/css?family=Muli:400,700&display=swap" rel="stylesheet"/> <link href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap" rel="stylesheet"/> <link href="/assets/stylesheets/application-d3e51c0c.css" rel="stylesheet"/> <script src="/assets/javascripts/all-466c2b8a.js" defer="defer"></script> </head> <body> <article> <header> <nav class='locales' role='navigation'> <label for='language-select' title='Pick one of the 28 translations'>Languages (28):</label> <select id='language-select' name='language'> <option label='1.0.0 العربية' value='ar'> 1.0.0 العربية </option> <option label='1.1.0 Čeština' value='cs'> 1.1.0 Čeština </option> <option label='1.1.0 Dansk' value='da'> 1.1.0 Dansk </option> <option label='1.1.0 Deutsch' value='de'> 1.1.0 Deutsch </option> <option label='1.1.0 English' value='en'> 1.1.0 English </option> <option label='1.1.0 Español' value='es-ES'> 1.1.0 Español </option> <option label='1.1.0 Français' value='fr'> 1.1.0 Français </option> <option label='1.0.0 Hrvatski' value='hr'> 1.0.0 Hrvatski </option> <option label='1.0.0 Indonesia' value='id-ID'> 1.0.0 Indonesia </option> <option label='1.1.0 Italiano' value='it-IT'> 1.1.0 Italiano </option> <option label='1.1.0 日本語' value='ja'> 1.1.0 日本語 </option> <option label='1.1.0 Norsk (Bokmål)' value='nb'> 1.1.0 Norsk (Bokmål) </option> <option label='1.1.0 Nederlands' value='nl'> 1.1.0 Nederlands </option> <option label='1.1.0 polski' value='pl'> 1.1.0 polski </option> <option label='1.1.0 Português do Brasil' value='pt-BR'> 1.1.0 Português do Brasil </option> <option label='1.1.0 română' value='ro'> 1.1.0 română </option> <option label='1.1.0 Pyccкий' value='ru'> 1.1.0 Pyccкий </option> <option label='1.0.0 Slovenčina' value='sk'> 1.0.0 Slovenčina </option> <option label='1.0.0 ქართული' value='ka'> 1.0.0 ქართული </option> <option label='1.1.0 Slovenščina' value='sl'> 1.1.0 Slovenščina </option> <option label='1.0.0 Srpski' value='sr'> 1.0.0 Srpski </option> <option label='1.1.0 Svenska' value='sv'> 1.1.0 Svenska </option> <option label='1.1.0 Türkçe' value='tr-TR'> 1.1.0 Türkçe </option> <option label='1.1.0 Українська' value='uk'> 1.1.0 Українська </option> <option label='1.1.0 简体中文' value='zh-CN'> 1.1.0 简体中文 </option> <option label='1.1.0 正體中文' selected value='zh-TW'> 1.1.0 正體中文 </option> <option label='1.0.0 한국어' value='ko'> 1.0.0 한국어 </option> <option label='1.1.0 فارسی' value='fa'> 1.1.0 فارسی </option> </select> </nav> <img src="/assets/images/keep-a-changelog-mark-f8b06a42.svg" width="130" height="100" class="mark" alt=""/> </header> <div class='main' role='main'> <div class='header'> <div class='title'> <h1>如何維護更新日誌</h1> <h2>更新日誌絕對不應該是 git log 的堆砌物</h2> </div> <a href="https://github.com/olivierlacan/keep-a-changelog/blob/main/CHANGELOG.md">Version <strong>1.1.0</strong> </a><pre class='changelog' lang='en'># Changelog
|
||
|
||
All notable changes to this project will be documented in this file.
|
||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||
|
||
## [Unreleased]
|
||
|
||
### Added
|
||
|
||
- v1.1 Brazilian Portuguese translation.
|
||
- v1.1 German Translation
|
||
- v1.1 Spanish translation.
|
||
- v1.1 Italian translation.
|
||
- v1.1 Polish translation.
|
||
- v1.1 Ukrainian translation.
|
||
|
||
### Changed
|
||
|
||
- Use frontmatter title & description in each language version template
|
||
- Replace broken OpenGraph image with an appropriately-sized Keep a Changelog
|
||
image that will render properly (although in English for all languages)
|
||
- Fix OpenGraph title & description for all languages so the title and
|
||
description when links are shared are language-appropriate
|
||
|
||
### Removed
|
||
|
||
- Trademark sign previously shown after the project description in version
|
||
0.3.0
|
||
|
||
## [1.1.1] - 2023-03-05
|
||
|
||
### Added
|
||
|
||
- Arabic translation (#444).
|
||
- v1.1 French translation.
|
||
- v1.1 Dutch translation (#371).
|
||
- v1.1 Russian translation (#410).
|
||
- v1.1 Japanese translation (#363).
|
||
- v1.1 Norwegian Bokmål translation (#383).
|
||
- v1.1 "Inconsistent Changes" Turkish translation (#347).
|
||
- Default to most recent versions available for each languages.
|
||
- Display count of available translations (26 to date!).
|
||
- Centralize all links into `/data/links.json` so they can be updated easily.
|
||
|
||
### Fixed
|
||
|
||
- Improve French translation (#377).
|
||
- Improve id-ID translation (#416).
|
||
- Improve Persian translation (#457).
|
||
- Improve Russian translation (#408).
|
||
- Improve Swedish title (#419).
|
||
- Improve zh-CN translation (#359).
|
||
- Improve French translation (#357).
|
||
- Improve zh-TW translation (#360, #355).
|
||
- Improve Spanish (es-ES) transltion (#362).
|
||
- Foldout menu in Dutch translation (#371).
|
||
- Missing periods at the end of each change (#451).
|
||
- Fix missing logo in 1.1 pages.
|
||
- Display notice when translation isn't for most recent version.
|
||
- Various broken links, page versions, and indentations.
|
||
|
||
### Changed
|
||
|
||
- Upgrade dependencies: Ruby 3.2.1, Middleman, etc.
|
||
|
||
### Removed
|
||
|
||
- Unused normalize.css file.
|
||
- Identical links assigned in each translation file.
|
||
- Duplicate index file for the english version.
|
||
|
||
## [1.1.0] - 2019-02-15
|
||
|
||
### Added
|
||
|
||
- Danish translation (#297).
|
||
- Georgian translation from (#337).
|
||
- Changelog inconsistency section in Bad Practices.
|
||
|
||
### Fixed
|
||
|
||
- Italian translation (#332).
|
||
- Indonesian translation (#336).
|
||
|
||
## [1.0.0] - 2017-06-20
|
||
|
||
### Added
|
||
|
||
- New visual identity by [@tylerfortune8](https://github.com/tylerfortune8).
|
||
- Version navigation.
|
||
- Links to latest released version in previous versions.
|
||
- "Why keep a changelog?" section.
|
||
- "Who needs a changelog?" section.
|
||
- "How do I make a changelog?" section.
|
||
- "Frequently Asked Questions" section.
|
||
- New "Guiding Principles" sub-section to "How do I make a changelog?".
|
||
- Simplified and Traditional Chinese translations from [@tianshuo](https://github.com/tianshuo).
|
||
- German translation from [@mpbzh](https://github.com/mpbzh) & [@Art4](https://github.com/Art4).
|
||
- Italian translation from [@azkidenz](https://github.com/azkidenz).
|
||
- Swedish translation from [@magol](https://github.com/magol).
|
||
- Turkish translation from [@emreerkan](https://github.com/emreerkan).
|
||
- French translation from [@zapashcanon](https://github.com/zapashcanon).
|
||
- Brazilian Portuguese translation from [@Webysther](https://github.com/Webysther).
|
||
- Polish translation from [@amielucha](https://github.com/amielucha) & [@m-aciek](https://github.com/m-aciek).
|
||
- Russian translation from [@aishek](https://github.com/aishek).
|
||
- Czech translation from [@h4vry](https://github.com/h4vry).
|
||
- Slovak translation from [@jkostolansky](https://github.com/jkostolansky).
|
||
- Korean translation from [@pierceh89](https://github.com/pierceh89).
|
||
- Croatian translation from [@porx](https://github.com/porx).
|
||
- Persian translation from [@Hameds](https://github.com/Hameds).
|
||
- Ukrainian translation from [@osadchyi-s](https://github.com/osadchyi-s).
|
||
|
||
### Changed
|
||
|
||
- Start using "changelog" over "change log" since it's the common usage.
|
||
- Start versioning based on the current English version at 0.3.0 to help
|
||
translation authors keep things up-to-date.
|
||
- Rewrite "What makes unicorns cry?" section.
|
||
- Rewrite "Ignoring Deprecations" sub-section to clarify the ideal
|
||
scenario.
|
||
- Improve "Commit log diffs" sub-section to further argument against
|
||
them.
|
||
- Merge "Why can’t people just use a git log diff?" with "Commit log
|
||
diffs".
|
||
- Fix typos in Simplified Chinese and Traditional Chinese translations.
|
||
- Fix typos in Brazilian Portuguese translation.
|
||
- Fix typos in Turkish translation.
|
||
- Fix typos in Czech translation.
|
||
- Fix typos in Swedish translation.
|
||
- Improve phrasing in French translation.
|
||
- Fix phrasing and spelling in German translation.
|
||
|
||
### Removed
|
||
|
||
- Section about "changelog" vs "CHANGELOG".
|
||
|
||
## [0.3.0] - 2015-12-03
|
||
|
||
### Added
|
||
|
||
- RU translation from [@aishek](https://github.com/aishek).
|
||
- pt-BR translation from [@tallesl](https://github.com/tallesl).
|
||
- es-ES translation from [@ZeliosAriex](https://github.com/ZeliosAriex).
|
||
|
||
## [0.2.0] - 2015-10-06
|
||
|
||
### Changed
|
||
|
||
- Remove exclusionary mentions of "open source" since this project can
|
||
benefit both "open" and "closed" source projects equally.
|
||
|
||
## [0.1.0] - 2015-10-06
|
||
|
||
### Added
|
||
|
||
- Answer "Should you ever rewrite a change log?".
|
||
|
||
### Changed
|
||
|
||
- Improve argument against commit logs.
|
||
- Start following [SemVer](https://semver.org) properly.
|
||
|
||
## [0.0.8] - 2015-02-17
|
||
|
||
### Changed
|
||
|
||
- Update year to match in every README example.
|
||
- Reluctantly stop making fun of Brits only, since most of the world
|
||
writes dates in a strange way.
|
||
|
||
### Fixed
|
||
|
||
- Fix typos in recent README changes.
|
||
- Update outdated unreleased diff link.
|
||
|
||
## [0.0.7] - 2015-02-16
|
||
|
||
### Added
|
||
|
||
- Link, and make it obvious that date format is ISO 8601.
|
||
|
||
### Changed
|
||
|
||
- Clarified the section on "Is there a standard change log format?".
|
||
|
||
### Fixed
|
||
|
||
- Fix Markdown links to tag comparison URL with footnote-style links.
|
||
|
||
## [0.0.6] - 2014-12-12
|
||
|
||
### Added
|
||
|
||
- README section on "yanked" releases.
|
||
|
||
## [0.0.5] - 2014-08-09
|
||
|
||
### Added
|
||
|
||
- Markdown links to version tags on release headings.
|
||
- Unreleased section to gather unreleased changes and encourage note
|
||
keeping prior to releases.
|
||
|
||
## [0.0.4] - 2014-08-09
|
||
|
||
### Added
|
||
|
||
- Better explanation of the difference between the file ("CHANGELOG")
|
||
and its function "the change log".
|
||
|
||
### Changed
|
||
|
||
- Refer to a "change log" instead of a "CHANGELOG" throughout the site
|
||
to differentiate between the file and the purpose of the file — the
|
||
logging of changes.
|
||
|
||
### Removed
|
||
|
||
- Remove empty sections from CHANGELOG, they occupy too much space and
|
||
create too much noise in the file. People will have to assume that the
|
||
missing sections were intentionally left out because they contained no
|
||
notable changes.
|
||
|
||
## [0.0.3] - 2014-08-09
|
||
|
||
### Added
|
||
|
||
- "Why should I care?" section mentioning The Changelog podcast.
|
||
|
||
## [0.0.2] - 2014-07-10
|
||
|
||
### Added
|
||
|
||
- Explanation of the recommended reverse chronological release ordering.
|
||
|
||
## [0.0.1] - 2014-05-31
|
||
|
||
### Added
|
||
|
||
- This CHANGELOG file to hopefully serve as an evolving example of a
|
||
standardized open source project CHANGELOG.
|
||
- CNAME file to enable GitHub Pages custom domain.
|
||
- README now contains answers to common questions about CHANGELOGs.
|
||
- Good examples and basic guidelines, including proper date formatting.
|
||
- Counter-examples: "What makes unicorns cry?".
|
||
|
||
[unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.1.1...HEAD
|
||
[1.1.1]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.1.0...v1.1.1
|
||
[1.1.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...v1.1.0
|
||
[1.0.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.3.0...v1.0.0
|
||
[0.3.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.2.0...v0.3.0
|
||
[0.2.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.1.0...v0.2.0
|
||
[0.1.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.8...v0.1.0
|
||
[0.0.8]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.7...v0.0.8
|
||
[0.0.7]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.6...v0.0.7
|
||
[0.0.6]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.5...v0.0.6
|
||
[0.0.5]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.4...v0.0.5
|
||
[0.0.4]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.3...v0.0.4
|
||
[0.0.3]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.2...v0.0.3
|
||
[0.0.2]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.1...v0.0.2
|
||
[0.0.1]: https://github.com/olivierlacan/keep-a-changelog/releases/tag/v0.0.1
|
||
</pre> </div> <div class='answers'> <h3 id='what'> <a aria_hidden='true' class='anchor' href='#what'></a> 更新日誌是什麼? </h3> <p> 更新日誌(Change Log)是一個由人工編輯、以時間為倒序的列表,用於記錄專案中每個版本的顯著改動。 </p> <h3 id='why'> <a aria_hidden='true' class='anchor' href='#why'></a> 為什麼需要提供更新日誌? </h3> <p> 為了讓使用者和開發人員更簡單明確地了解各個版本之間有著哪些顯著改動。 </p> <h3 id='who'> <a aria_hidden='true' class='anchor' href='#who'></a> 哪些人需要更新日誌? </h3> <p> 大家都需要更新日誌。無論是開發人員或是使用者,都會在意軟體包含了什麼東西。當軟件有變動時,大家想知道改了些什麼以及為什麼要改。 </p> </div> <div class='good-practices'> <h3 id='how'> <a aria_hidden='true' class='anchor' href='#how'></a> 怎樣寫出高質量的更新日誌? </h3> <h4 id='principles'> <a aria_hidden='true' class='anchor' href='#principles'></a> 撰寫原則 </h4> <ul> <li> 記住日誌是寫給<em>人</em>而非機器的。 </li> <li> 每個版本都應該有獨立的入口。 </li> <li> 同類改動應該分組放置。 </li> <li> 版本與章節應「可連結化」。 </li> <li> 新版本在前,舊版本在後。 </li> <li> 每個版本都應該註記發佈日期。 </li> <li> 版本命名應遵守<a href="https://semver.org/">語義化版本規範</a>。 </li> </ul> <a aria_hidden='true' class='anchor' href='#types'></a> <h4 id='types'>改動類型</h4> <ul> <li> <code>Added</code> 當增加了新功能。 </li> <li> <code>Changed</code> 當更動了既有的功能。 </li> <li> <code>Deprecated</code> 當功能將在近期被移除。 </li> <li> <code>Removed</code> 當移除了現有的功能。 </li> <li> <code>Fixed</code> 當修復了某些錯誤。 </li> <li> <code>Security</code> 當增進了安全性漏洞。 </li> </ul> </div> <div class='effort'> <h3 id='effort'> <a aria_hidden='true' class='anchor' href='#effort'></a> 如何提升維護「更新日誌」的效率? </h3> <p> 在日誌最上方提供 <code>Unreleased</code> 區塊以記錄即將發佈的更新內容。 </p> <p>這樣做有兩個好處:</p> <ul> <li> 讓大家知道在未來的版本中可能會有哪些改動。 </li> <li> 在發佈新版本時,直接將 <code>Unreleased</code> 區塊中的內容移動至新發佈版本的描述區塊就可以了。 </li> </ul> </div> <div class='bad-practices'> <h3 id='bad-practices'> <a aria_hidden='true' class='anchor' href='#bad-practices'></a> 有很糟糕的更新日誌嗎? </h3> <p>當然有,下麵就是一些糟糕的範例。</p> <h4 id='log-diffs'> <a aria_hidden='true' class='anchor' href='#log-diffs'></a> 🚫 直接複製 git log 到更新日誌 </h4> <p> 使用 git 日誌作為更新日誌是個非常糟糕的方式:git 日誌充滿各種無意義的信息,如合並提交、語焉不詳的提交標題、文檔更新等。 </p> <p> 提交的目的是記錄源碼的演化。一些專案會清理提交記錄,但有些不會。 </p> <p> 更新日誌的目的則是記錄重要的改動以供受衆閱讀,通常涵蓋多個提交記錄,最終目的仍然是讓看的人一目了然。 </p> <h4 id='ignoring-deprecations'> <a aria_hidden='true' class='anchor' href='#ignoring-deprecations'></a> 🚫 忽略即將棄用的功能 </h4> <p> 當從一個版本升級至另一個時,使用者應清楚(盡管痛苦)地知道哪些部分將不再被支援。應該允許先升級至一個列出哪些功能將會被棄用的版本,待去掉那些不再支持的部分後,再升級至把那些棄用功能真正移除的版本。 </p> <p> 即使其他什麼都不做,也至少要在更新日誌中列出棄用的、移除的或是任何可能導致程式碼失效的重大改動。 </p> <h4 id='confusing-dates'> <a aria_hidden='true' class='anchor' href='#confusing-dates'></a> 🚫 容易混淆的日期格式 </h4> <p> 不同區域有著不同的時間格式,要找到讓大家都滿意的日期格式不是件容易的事。使用像<code>2012-06-02</code> 的格式能清楚傳達日期,而且不易與其他日期格式混淆,同時也遵守 <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 標準</a>。因此,推薦在更新日誌中使用此種日期格式。 </p> <h4 id='inconsistent-changes'> <a aria_hidden='true' class='anchor' href='#inconsistent-changes'></a> 🚫 不一致的改動 </h4> <p> 僅提到部分改動的更新日誌可能和沒有更新日誌一樣危險。 雖然許多改動也許與更新日誌無關——例如,刪除一個空格可能不需要每次都被記錄下來——但任何重要的改動都應該在更新日誌中被提及。 通過不一致地實施改動,使用者可能會錯誤地認為更新日誌是事實的唯一來源(而它也應該是)。 能力越大,責任越大——擁有一個好的更新日誌意味著擁有一個一致性更新的更新日誌。 </p> <aside> 還有更多內容?請通過 <a href="https://github.com/olivierlacan/keep-a-changelog/issues">opening an issue</a> 或是 Pull Request 協助收集。 </aside> </div> <div class='frequently-asked-questions'> <h3 id='frequently-asked-questions'> <a aria_hidden='true' class='anchor' href='#frequently-asked-questions'></a> 常見問題 </h3> <h4 id='standard'> <a aria_hidden='true' class='anchor' href='#standard'></a> 是否有一個標準化的更新日誌格式? </h4> <p> 並沒有。雖然有 <a href="https://www.gnu.org/prep/standards/html_node/Style-of-Change-Logs.html#Style-of-Change-Logs">GNU 更新日誌指南</a> 以及只有兩段長的 <a href="https://www.gnu.org/prep/standards/html_node/NEWS-File.html#NEWS-File">GNU - The NEWS File 指南</a>,但這些並不足以稱為「標準」。 </p> <p> 此專案旨在提供一個 <a href="https://github.com/olivierlacan/keep-a-changelog/blob/main/CHANGELOG.md">更好的更新日誌範例</a>,所有點子都來自於對開源社區中優秀實例的觀察與記錄。 </p> <p> 歡迎各位<a href="https://github.com/olivierlacan/keep-a-changelog/issues">提供</a>有建設性的批評、討論及建議。 </p> <h4 id='filename'> <a aria_hidden='true' class='anchor' href='#filename'></a> 更新日誌的檔案名稱應該是? </h4> <p> 通常使用 <code>CHANGELOG.md</code>。有些專案將其命名為 <code>HISTORY</code>、<code>NEWS</code> 或是 <code>RELEASES</code>。 </p> <p> 當然,你可能認為更新日誌的命名並不那麼重要,但為什麼要為難那些僅僅是想看到都有哪些重大改動的使用者呢? </p> <h4 id='github-releases'> <a aria_hidden='true' class='anchor' href='#github-releases'></a> GitHub Releases 怎麼樣? </h4> <p> 這是個非常好的提議。<a href="https://docs.github.com/en/github/administering-a-repository/releasing-projects-on-github/managing-releases-in-a-repository">GitHub Releases</a> 可通過手動添加發佈日誌或將帶有註釋的 git 標簽信息抓取後轉換的方式,將簡單的 git 標簽(如一個叫 <code>v1.0.0</code> 的標簽)轉換為信息豐富的發佈日誌。 </p> <p> GitHub Releases 產生的日誌只能在 GitHub 上瀏覽,雖然 GitHub Releases 能做出接近本專案範例的日誌格式,但這會增加些許與 GitHub 的相依性。 </p> <p> 現行版本的 GitHub Releases 不像那些典型的大寫文件(<code>README</code>,<code>CONTRIBUTING</code> 等),仍可以認為是不利於使用者探索的。另一個小問題則是目前的 GitHub Releases 界麵並沒有提供不同版本間的 commit 日誌的連結。 </p> <h4 id='automatic'> <a aria_hidden='true' class='anchor' href='#automatic'></a> 更新日誌可以被自動識別嗎? </h4> <p> 非常睏難,因為有各式各樣的提交訊息和檔案名稱難以完全掌握。 </p> <p> <a href="https://github.com/tech-angels/vandamme/">Vandamme</a> 是一個 Ruby 程式,由 Gemnasium 團隊製作,可以解析多種(但絕對不是全部)開源庫的更新日誌。 </p> <h4 id='yanked'> <a aria_hidden='true' class='anchor' href='#yanked'></a> 那些後來撤下的版本怎麼辦? </h4> <p> 因為重大漏洞或安全性問題而被撤下(unpublished)的版本通常不會出現在更新日誌中,但仍然建議記錄下來。你可以這樣作出記錄: </p> <p><code>## [0.0.5] - 2014-12-13 [YANKED]</code></p> <p> 因為這類更改十分重要,所以 <code>[YANKED]</code> 標簽應該非常醒目,讓使用者注意到它是最重要的事。。此外,用方括號包圍可使其更易被程式識別。 </p> <h4 id='rewrite'> <a aria_hidden='true' class='anchor' href='#rewrite'></a> 可以更改過去版本的日誌內容嗎? </h4> <p> 當然可以。總會有合適的原因去改進更新日誌。我也時常提 Pull Request 來為那些未維護更新日誌的開源專案加入缺失的發佈信息。 </p> <p> 另外,你很有可能發現自己忘記記錄一個重大功能更新。這種情況下顯然應該重寫更新日誌。 </p> <h4 id='contribute'> <a aria_hidden='true' class='anchor' href='#contribute'></a> 如何貢獻? </h4> <p> 本文檔並非<strong>真理</strong>。而是我經過深思熟慮、遵循蒐集到的資訊和範例之後提出的建議。 </p> <p> 源於我期望社群能達到共識,我相信討論的過程與結果一樣重要。 </p> <p> 所以歡迎<strong><a href="https://github.com/olivierlacan/keep-a-changelog">貢獻</a></strong>。 </p> </div> <div class='press'> <h3>訪談</h3> <p> 我在 <a href="https://changelog.com/podcast/127">The Changelog podcast</a> 上講述了為什麼維護者與協作者應該在意更新日誌,以及建立這項專案背後的契機。 </p> </div> <footer class='footer clearfix' role='contentinfo'> <img src="/assets/images/keep-a-changelog-mark-f8b06a42.svg" width="30" height="30" class="mark" alt=""/> <p class='about'> This project is <a href="https://choosealicense.com/licenses/mit/">MIT Licensed</a> // <a href="https://github.com/olivierlacan/keep-a-changelog/">Created & maintained</a> by <a href="https://olivierlacan.com/">Olivier Lacan</a> <a href="https://ruby.social/@olivierlacan" rel="me" aria-label="Link to Olivier Lacan's Mastodon account"></a> // Designed by Tyler Fortune </p> </footer> </div> </article> </body> <script>
|
||
var _gauges = _gauges || [];
|
||
(function() {
|
||
var t = document.createElement('script');
|
||
t.type = 'text/javascript';
|
||
t.async = true;
|
||
t.id = 'gauges-tracker';
|
||
t.setAttribute('data-site-id', '5389808eeddd5b055a00440d');
|
||
t.src = '//secure.gaug.es/track.js';
|
||
var s = document.getElementsByTagName('script')[0];
|
||
s.parentNode.insertBefore(t, s);
|
||
})();
|
||
</script> </html> |