Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: add make changelog_style for automatic changelog formatting #4532

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

romanz
Copy link
Contributor

@romanz romanz commented Jan 23, 2025

Added also to make style.

[no changelog]

@romanz romanz self-assigned this Jan 23, 2025
Copy link

github-actions bot commented Jan 23, 2025

core UI changes device test click test persistence test
T2T1 Model T test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3B1 Safe 3 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3T1 Safe 5 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
All main(screens)

Makefile Outdated
./tools/generate-changelog.py --fix-style legacy/bootloader
./tools/generate-changelog.py --fix-style legacy/firmware
./tools/generate-changelog.py --fix-style legacy/intermediate_fw
./tools/generate-changelog.py --fix-style python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is becoming rather fragile, instead embed this list into generate-changelog
and make it fail if someone tries to use a non-listed path, telling them to also add the thing they want to the known path list

(that way we have a single command for "changelog check" and "changelog style" and we enforce that every changelog used by someone will be added to that list)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks for the suggestion!
WDYT about 0132526?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I've also added @mmilata, since he is the author of tools/generate-changelog.py)

…atting

Also, rename `generate-changelog.py` to `changelog.py`, in order
to support mulitple subcommands (`generate`, `check`, `style`).
@romanz romanz requested a review from mmilata January 26, 2025 13:43
@romanz romanz marked this pull request as ready for review January 26, 2025 14:03
@romanz romanz requested a review from matejcik January 26, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔎 Needs review
Development

Successfully merging this pull request may close these issues.

2 participants