From 0fc325ff72c7bf95e3ca10c6726f03b3fb0fb4b6 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 25 Jan 2024 22:35:40 +0100 Subject: [PATCH] rename git_log to git-log again --- .autocrate.yaml | 2 +- README.md | 6 +++--- src/config/mod.rs | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.autocrate.yaml b/.autocrate.yaml index 4d8fe0f..eb8ea98 100644 --- a/.autocrate.yaml +++ b/.autocrate.yaml @@ -1,6 +1,6 @@ changelog: enable: true - git_log: true + git-log: true uses: cargo: diff --git a/README.md b/README.md index cf5223e..5ea9159 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,9 @@ repository. It should contain the following parameters (replace the placeholders | Parent | Key | Value | Explanation | |-----------------|--------------|----------------------------------------------------------------------------------|------------------------------------------------------------------------------| -| (root) | `changelog` | list of keys with this as parent (`git_log` etc) | information on how a changelog is generated | +| (root) | `changelog` | list of keys with this as parent (`git-log` etc) | information on how a changelog is generated | | `changelog` | `enable` | `true`/`false` | If false, no changelog will be generated | -| `changelog` | `git_log` | `true`/`false` | should a changelog be generated with `git log`? | +| `changelog` | `git-log` | `true`/`false` | should a changelog be generated with `git log`? | | (root) | `uses` | list of keys with this as parent (`cargo` etc) | Marks features to be used by Autocrate | | `uses` | `cargo` | list of keys with this as parent (`publish` etc) | tells us that your project uses cargo | | `cargo` | `publish` | `true`/`false` | should we publish crates? | @@ -86,7 +86,7 @@ An example `.autocrate.yaml` could look like this: ```yaml changelog: enable: true - git_log: true + git-log: true uses: cargo: diff --git a/src/config/mod.rs b/src/config/mod.rs index 9adce03..c0812bf 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -13,6 +13,7 @@ use cli::Cli; #[derive(Debug, Clone, Deserialize)] pub struct Changelog { enable: bool, + #[serde(alias="git-log")] git_log: bool, }