• 如何维护更新日志【keep a changelog】


    Don't let your friends dump git logs into changelogs.

    Example

    # 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.0.0/),
    and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    
    ## [Unreleased]
    
    ## [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 [@karalamalar](https://github.com/karalamalar).
    - French translation from [@zapashcanon](https://github.com/zapashcanon).
    - Brazilian Portugese 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.0.0...HEAD
    [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
    

    更新日志是什么?【What is a changelog?】

    更新日志(Change Log)是一个由人工编辑,以时间为倒序的列表, 以记录一个项目中所有版本的显著变动。

    为何要提供更新日志?【Why keep a changelog?】

    为了让用户和开发人员更简单明确的知晓项目在不同版本之间有哪些显著变动。

    哪些人需要更新日志?【Who needs a changelog?】

    人人需要更新日志。无论是消费者还是开发者,软件的最终用户都关心软件所包含什么。 当软件有所变动时,大家希望知道改动是为何、以及如何进行的。

    怎样制作高质量的更新日志?【How do I make a good changelog?】

    指导原则【Guiding Principles】

    • 记住日志是写给人的,而非机器。
    • 每个版本都应该有独立的入口。
    • 同类改动应该分组放置。
    • 版本与章节应该相互对应。
    • 新版本在前,旧版本在后。
    • 应包括每个版本的发布日期。
    • 注明是否遵守语义化版本格式.

    变动类型

    • Added新添加的功能。
    • Changed对现有功能的改变。
    • Deprecated不建议使用,将很快移除的功能。
    • Removed已经移除的功能。
    • Fixed对bug的修复。
    • Security对安全性的改进。

    如何减少维护更新日志的精力?

    在文档最上方提供 Unreleased 区块以记录即将发布的更新内容。

    这样有两大意义:

    • 大家可以知道在未来版本中可能会有哪些变更
    • 在发布新版本时,可以直接将Unreleased区块中的内容移动至新发 布版本的描述区块就可以了

    reference
    https://keepachangelog.com/en/1.1.0/

  • 相关阅读:
    如何确定软件测试结束?
    为什么会有软件测试这一栏目?
    SQL Server 新建 数据库关系图 时弹出警告提示此数据库没有有效所有者,因此无法安装数据库关系图支持对象。
    IIS 7 实现http跳转https 重定向方法
    Centos 利用yum安装卸载软件常用命令[转载]
    VMware虚拟机中Centos7的IP地址设置方法
    【3】工厂方法模式
    【2】简单工厂模式
    【1】Singleton模式(单例模式)
    SVN提交小结
  • 原文地址:https://www.cnblogs.com/cpg123/p/14906947.html
Copyright © 2020-2023  润新知