-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(args): add
--ignore-tags
argument (#696)
* feat(cli,args): allow overwriting `ignore_tags` argument Signed-off-by: Bukowa <[email protected]> * chore(lint): cargo fmt Signed-off-by: Bukowa <[email protected]> * chore(lint): clippy Signed-off-by: Bukowa <[email protected]> * Revert "chore(lint): clippy" This reverts commit f307647. Signed-off-by: Bukowa <[email protected]> * Revert chore(lint): cargo fmt in changelog.rs Signed-off-by: Bukowa <[email protected]> * chore: git update-index --chmod=+x .github/fixtures/test-cli-arg-ignore-tags/commit.sh Signed-off-by: Bukowa <[email protected]> * chore(lint): fix formatting Signed-off-by: Bukowa <[email protected]> * revert changes to test-fixtures-locally.sh Signed-off-by: Bukowa <[email protected]> * revert changes to .gitignore Signed-off-by: Bukowa <[email protected]> * chore: change doc in args.rs and doc Signed-off-by: Bukowa <[email protected]> * Revert "chore(lint): fix formatting" This reverts commit c829865. Signed-off-by: Bukowa <[email protected]> * style(lint): rustfmt Signed-off-by: Bukowa <[email protected]> * tests(fixtures): uncomment commit * tests(fixtures): fix expected.md --------- Signed-off-by: Bukowa <[email protected]>
- Loading branch information
Showing
8 changed files
with
82 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[changelog] | ||
# changelog header | ||
header = """ | ||
# Changelog\n | ||
All notable changes to this project will be documented in this file.\n | ||
""" | ||
# template for the changelog body | ||
# https://keats.github.io/tera/docs/#introduction | ||
body = """ | ||
{% if version %}\ | ||
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} | ||
{% else %}\ | ||
## [unreleased] | ||
{% endif %}\ | ||
{% for group, commits in commits | group_by(attribute="group") %} | ||
### {{ group | upper_first }} | ||
{% for commit in commits %} | ||
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ | ||
{% endfor %} | ||
{% endfor %}\n | ||
""" | ||
# template for the changelog footer | ||
footer = """ | ||
<!-- generated by git-cliff --> | ||
""" | ||
# remove the leading and trailing whitespace from the templates | ||
trim = true | ||
|
||
[git] | ||
# regex for skipping tags | ||
skip_tags = "" | ||
# regex for ignoring tags | ||
ignore_tags = "" |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
GIT_COMMITTER_DATE="2021-01-23 01:23:45" git commit --allow-empty -m "feat: add first beta feature" | ||
git tag v1.0.0-beta.1 | ||
|
||
GIT_COMMITTER_DATE="2021-01-23 01:23:46" git commit --allow-empty -m "feat: add second beta feature" | ||
git tag v1.0.0-beta.2 | ||
|
||
# WARNING: If we won't create this commit, 1.0.0 won't be created! | ||
GIT_COMMITTER_DATE="2021-01-23 01:23:47" git commit --allow-empty -m "chore: why do i need a commit here?" | ||
git tag v1.0.0 | ||
|
||
GIT_COMMITTER_DATE="2021-01-23 01:23:49" git commit --allow-empty -m "fix: simple fix" | ||
git tag v1.0.1 |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [1.0.1] - 2021-01-23 | ||
|
||
### Fix | ||
|
||
- Simple fix | ||
|
||
## [1.0.0] - 2021-01-23 | ||
|
||
### Chore | ||
|
||
- Why do i need a commit here? | ||
|
||
### Feat | ||
|
||
- Add first beta feature | ||
- Add second beta feature | ||
|
||
<!-- generated by git-cliff --> |
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
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
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