Detect bad bullet point indentation in changelog entries #225
Labels
No labels
approved
bug
dependencies
DO-NOT-MERGE
enhancement
good-first-issue
help-wanted
historical-reviewed
historical-reviewing
needs-adoption
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
single-reviewer
size-l
size-m
size-s
size-xs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/mbedtls-framework#225
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changelog entries are supposed to start with three spaces, an asterisk and a space. Continuation lines are supposed to be intended with five spaces. That is:
assemble_changelog.pydoes not enforce the indentation precisely because it's occasionally useful to have lines that are more indented. However, it should enforce more than it currently does.For example, if a line begins with four spaces and an asterisk, it doesn't get rendered as expected in release notes (where we copy-paste the changelog): assuming the previous line isn't blank (it normally isn't: ), GitHub renders the asterisk as a text element rather than starting new bulleted list entry. This happens occasionally, e.g. “* Add mbedtls_pk_sign_ext() which allows generating RSA-PSS signatures…” and “* Extend the existing PSA_ALG_TLS12_PSK_TO_MS()” in https://github.com/Mbed-TLS/mbedtls/releases/tag/v3.2.0 .
I propose to enforce that every line starts with either
" * "or" ".