Gilles Peskine | b695d5e | 2020-03-27 20:06:12 +0100 | [diff] [blame] | 1 | # Pending changelog entry directory |
| 2 | |
Gilles Peskine | 7c3f7cd | 2020-03-27 19:47:35 +0100 | [diff] [blame] | 3 | This directory contains changelog entries that have not yet been merged |
| 4 | to the changelog file ([`../ChangeLog`](../ChangeLog)). |
| 5 | |
Gilles Peskine | ece00a0 | 2020-09-30 01:16:59 +0200 | [diff] [blame] | 6 | ## What requires a changelog entry? |
| 7 | |
| 8 | Write a changelog entry if there is a user-visible change. This includes: |
| 9 | |
Gilles Peskine | 4bcfe92 | 2020-09-30 09:55:27 +0200 | [diff] [blame^] | 10 | * Bug fixes in the library or in sample programs: fixing a security hole, |
| 11 | fixing broken behavior, fixing the build in some configuration or on some |
| 12 | platform, etc. |
| 13 | * New features in the library, new sample programs, or new platform support. |
Gilles Peskine | ece00a0 | 2020-09-30 01:16:59 +0200 | [diff] [blame] | 14 | * Changes in existing behavior. These should be rare. Changes in features |
| 15 | that are documented as experimental may or may not be announced, depending |
| 16 | on the extent of the change and how widely we expect the feature to be used. |
| 17 | |
| 18 | We generally don't include changelog entries for: |
| 19 | |
| 20 | * Documentation improvements. |
| 21 | * Performance improvements, unless they are particularly significant. |
Gilles Peskine | 4bcfe92 | 2020-09-30 09:55:27 +0200 | [diff] [blame^] | 22 | * Changes to parts of the code base that users don't interact with directly, |
| 23 | such as test code and test data. |
Gilles Peskine | ece00a0 | 2020-09-30 01:16:59 +0200 | [diff] [blame] | 24 | |
| 25 | Prior to Mbed TLS 2.24, we required changelog entries in more cases. |
| 26 | Looking at older changelog entries is good practice for how to write a |
| 27 | changelog entry, but not for deciding whether to write one. |
| 28 | |
Gilles Peskine | b695d5e | 2020-03-27 20:06:12 +0100 | [diff] [blame] | 29 | ## Changelog entry file format |
| 30 | |
Gilles Peskine | 7c3f7cd | 2020-03-27 19:47:35 +0100 | [diff] [blame] | 31 | A changelog entry file must have the extension `*.txt` and must have the |
| 32 | following format: |
| 33 | |
| 34 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 35 | Security |
| 36 | * Change description. |
| 37 | * Another change description. |
| 38 | |
| 39 | Features |
Gilles Peskine | b695d5e | 2020-03-27 20:06:12 +0100 | [diff] [blame] | 40 | * Yet another change description. This is a long change description that |
| 41 | spans multiple lines. |
Gilles Peskine | 7c3f7cd | 2020-03-27 19:47:35 +0100 | [diff] [blame] | 42 | * Yet again another change description. |
| 43 | |
| 44 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 45 | |
Gilles Peskine | b695d5e | 2020-03-27 20:06:12 +0100 | [diff] [blame] | 46 | The permitted changelog entry categories are as follows: |
| 47 | <!-- Keep this synchronized with STANDARD_CATEGORIES in assemble_changelog.py! --> |
| 48 | |
| 49 | API changes |
| 50 | Default behavior changes |
| 51 | Requirement changes |
| 52 | New deprecations |
| 53 | Removals |
| 54 | Features |
| 55 | Security |
| 56 | Bugfix |
| 57 | Changes |
| 58 | |
Gilles Peskine | ece00a0 | 2020-09-30 01:16:59 +0200 | [diff] [blame] | 59 | Use “Changes” for anything that doesn't fit in the other categories. |
Gilles Peskine | b695d5e | 2020-03-27 20:06:12 +0100 | [diff] [blame] | 60 | |
| 61 | ## How to write a changelog entry |
| 62 | |
| 63 | Each entry starts with three spaces, an asterisk and a space. Continuation |
| 64 | lines start with 5 spaces. Lines wrap at 79 characters. |
| 65 | |
| 66 | Write full English sentences with proper capitalization and punctuation. Use |
| 67 | the present tense. Use the imperative where applicable. For example: “Fix a |
| 68 | bug in mbedtls_xxx() ….” |
| 69 | |
| 70 | Include GitHub issue numbers where relevant. Use the format “#1234” for an |
| 71 | Mbed TLS issue. Add other external references such as CVE numbers where |
| 72 | applicable. |
| 73 | |
Gilles Peskine | 3b4edc7 | 2020-09-30 01:13:05 +0200 | [diff] [blame] | 74 | Credit bug reporters where applicable. |
Gilles Peskine | b695d5e | 2020-03-27 20:06:12 +0100 | [diff] [blame] | 75 | |
| 76 | **Explain why, not how**. Remember that the audience is the users of the |
| 77 | library, not its developers. In particular, for a bug fix, explain the |
| 78 | consequences of the bug, not how the bug was fixed. For a new feature, explain |
| 79 | why one might be interested in the feature. For an API change or a deprecation, |
| 80 | explain how to update existing applications. |
| 81 | |
| 82 | See [existing entries](../ChangeLog) for examples. |
| 83 | |
| 84 | ## How `ChangeLog` is updated |
| 85 | |
| 86 | Run [`../scripts/assemble_changelog.py`](../scripts/assemble_changelog.py) |
| 87 | from a Git working copy |
| 88 | to move the entries from files in `ChangeLog.d` to the main `ChangeLog` file. |