-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(changelog): filter max majors/minors/patches
Adds the following options --max-majors <MAX_MAJORS> Only show this number of minor versions --max-minors <MAX_MINORS> Only print this number of major versions --max-patches <MAX_PATCHES> Only show this number of patch versions Refs: #59
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,9 +79,18 @@ pub struct ChangelogCommand { | |
pub rev: String, | ||
#[clap(short, long)] | ||
pub skip_empty: bool, | ||
/// Limits the number of version tags to add in the changelog | ||
/// Limits the number of version tags to add in the changelog. | ||
#[clap(short, long)] | ||
pub max_versions: Option<usize>, | ||
/// Only print this number of major versions. | ||
#[clap(long, default_value_t=u64::MAX, hide_default_value=true)] | ||
pub max_minors: u64, | ||
/// Only show this number of minor versions. | ||
#[clap(long, default_value_t=u64::MAX, hide_default_value=true)] | ||
pub max_majors: u64, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hdevalke
Author
Collaborator
|
||
/// Only show this number of patch versions. | ||
#[clap(long, default_value_t=u64::MAX, hide_default_value=true)] | ||
pub max_patches: u64, | ||
/// Do not generate links. Overrides linkReferences and linkCompare in the config. | ||
#[clap(short, long)] | ||
pub no_links: bool, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is a mixup of major and minor here.
Comment major, var minor, and comment minor and var majors.