You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry if the behavior this is a specification.
Describe the bug
Skip all tags, when skip_tags = "".
Is this the expected behavior?
To Reproduce
I've created a test script.
test script
#!/bin/bashset -e
rm -rf /tmp/cliff/skip_tags_test
mkdir -p /tmp/cliff/skip_tags_test
cd /tmp/cliff/skip_tags_test
git init
git commit --allow-empty -m "chore: v0.0.1"
git tag v0.0.1
git commit --allow-empty -m "feat: v0.1.0-beta.1"
git tag v0.1.0-beta.1
git commit --allow-empty -m "feat: v0.1.0"
git tag v0.1.0
git cliff --init
echo'====================================='echo'skip_tags = "v0.1.0-beta.1" (Default)'echo'====================================='
git cliff
sed -i 's/\(skip_tags = \)"v0.1.0-beta.1"/\1""/' cliff.toml
echo'====================================='echo'skip_tags = ""'echo'====================================='
git cliff
sed -i 's/skip_tags.*//' cliff.toml
echo'====================================='echo'skip_tags is unset.'echo'====================================='
git cliff
output
Initialized empty Git repository in /tmp/cliff/skip_tags_test/.git/
[main (root-commit) c57e04c] chore: v0.0.1
[main fe30e5e] feat: v0.1.0-beta.1
[main 9492956] feat: v0.1.0
INFO git_cliff > Saving the configuration file to "cliff.toml"
=====================================
skip_tags = "v0.1.0-beta.1" (Default)
=====================================
# Changelog
All notable changes to this project will be documented in this file.
## [0.1.0] - 2022-02-19
### Features
- V0.1.0
## [0.0.1] - 2022-02-19
### Miscellaneous Tasks
- V0.0.1
<!-- generated by git-cliff -->
=====================================
skip_tags = ""
=====================================
# Changelog
All notable changes to this project will be documented in this file.
<!-- generated by git-cliff -->
=====================================
skip_tags is unset.
=====================================
# Changelog
All notable changes to this project will be documented in this file.
## [0.1.0] - 2022-02-19
### Features
- V0.1.0
## [0.1.0-beta.1] - 2022-02-19
### Features
- V0.1.0-beta.1
## [0.0.1] - 2022-02-19
### Miscellaneous Tasks
- V0.0.1
<!-- generated by git-cliff -->
skip_tags = ""
# Changelog
All notable changes to this project will be documented in this file.
<!-- generated by git-cliff -->
Expected behavior
I expect don't skip all tags, as when skip_tags is unset.
skip_tags is unset.
# Changelog
All notable changes to this project will be documented in this file.
## [0.1.0] - 2022-02-19
### Features
- V0.1.0
## [0.1.0-beta.1] - 2022-02-19
### Features
- V0.1.0-beta.1
## [0.0.1] - 2022-02-19
### Miscellaneous Tasks
- V0.0.1
<!-- generated by git-cliff -->
System (please complete the following information):
I'm sorry if the behavior this is a specification.
Describe the bug
Skip all tags, when
skip_tags = ""
.Is this the expected behavior?
To Reproduce
I've created a test script.
test script
output
skip_tags = ""
Expected behavior
I expect don't skip all tags, as when
skip_tags
is unset.skip_tags
is unset.System (please complete the following information):
Additional context
Code that may be relevant.
git-cliff/git-cliff/src/lib.rs
Lines 124 to 130 in 761669e
I have changed to the following code.
println!("{}", skip);
outputtrue
always, whenskip_tags = ""
.Thank you.
The text was updated successfully, but these errors were encountered: