-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dark0dave <dark0dave@mykolab.com>
- Loading branch information
Showing
20 changed files
with
595 additions
and
47 deletions.
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,45 @@ | ||
[remote.bitbucket] | ||
owner = "orhunp" | ||
repo = "git-cliff-readme-example" | ||
|
||
[changelog] | ||
# template for the changelog body | ||
# https://keats.github.io/tera/docs/#introduction | ||
body = """ | ||
## What's Changed | ||
{%- if version %} in {{ version }}{%- endif -%} | ||
{% for commit in commits %} | ||
* {{ commit.message | split(pat="\n") | first | trim }}\ | ||
{% if commit.bitbucket.username %} by @{{ commit.bitbucket.username }}{%- endif -%} | ||
{% if commit.bitbucket.pr_number %} in #{{ commit.bitbucket.pr_number }}{%- endif %} | ||
{%- endfor -%} | ||
{% if bitbucket.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} | ||
{% raw %}\n{% endraw -%} | ||
## New Contributors | ||
{%- endif %}\ | ||
{% for contributor in bitbucket.contributors | filter(attribute="is_first_time", value=true) %} | ||
* @{{ contributor.username }} made their first contribution | ||
{%- if contributor.pr_number %} in \ | ||
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \ | ||
{%- endif %} | ||
{%- endfor -%} | ||
""" | ||
# remove the leading and trailing whitespace from the template | ||
trim = true | ||
# changelog footer | ||
footer = """\n | ||
<!-- generated by -cliff --> | ||
""" | ||
|
||
[git] | ||
# parse the commits based on https://www.conventionalcommits.org | ||
conventional_commits = false | ||
# filter out the commits that are not conventional | ||
filter_unconventional = true | ||
# process each line of a commit as an individual commit | ||
split_commits = false | ||
# regex for preprocessing the commit messages | ||
commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }] | ||
# protect breaking changes from being skipped due to matching a skipping commit_parser | ||
protect_breaking_commits = false |
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,7 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
git remote add origin https://bitbucket.org/orhunp/git-cliff-readme-example | ||
git pull origin master | ||
git fetch --tags | ||
git checkout df6aef4 |
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,12 @@ | ||
## What's Changed | ||
* feat(config): support multiple file formats by @orhun <orhun@archlinux.org> | ||
* feat(cache): use cache while fetching pages by @orhun <orhun@archlinux.org>## What's Changed in v1.0.1 | ||
* refactor(parser): expose string functions by @orhun <orhun@archlinux.org> | ||
* chore(release): add release script by @orhun <orhun@archlinux.org>## What's Changed in v1.0.0 | ||
* Initial commit by @orhun <orhun@archlinux.org> | ||
* docs(project): add README.md by @orhun <orhun@archlinux.org> | ||
* feat(parser): add ability to parse arrays by @orhun <orhun@archlinux.org> | ||
* fix(args): rename help argument due to conflict by @orhun <orhun@archlinux.org> | ||
* docs(example)!: add tested usage example by @orhun <orhun@archlinux.org> | ||
|
||
<!-- generated by -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
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
Oops, something went wrong.