From 47952136c443fd2729c0c8c934f5213406ff6dea Mon Sep 17 00:00:00 2001 From: busticated Date: Wed, 25 Oct 2023 10:27:10 -0700 Subject: [PATCH] add changelog docs --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index a0a67e6..a09b3e9 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,29 @@ Run `cargo xtask help` to see any other docs-related commands that are available

+
+How to format commits for changelogs +

+ +In order to support automated crate changelog updates, you will need to: + +* Commit crate changes separately - e.g. run: `git add -p crates//*` to stage files, then run `git add -p crates//*` and commit +* Format your commit message like: `[] ` e.g. `[node-js-release-info] update docs` +* Commit changes to the workspace itself (including the `xtask` crate) separately without prefixing your commit message + +Each crate has its own changelog ([example](crates/node-js-release-info/CHANGELOG.md)). Upon releasing, each changelog will be updated with the changes made to that crate since its last release. + +To view unpublished changelog entries for all crates, run: + +``` +cargo xtask changelog +``` + +Run `cargo xtask help` to see any other changelog-related commands that are available. + +

+
+
How to publish crates