-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bitbucket): add Bitbucket support (#663)
* Draft: feat(bitbucket): Closes #566 Signed-off-by: dark0dave <dark0dave@mykolab.com> * refactor: improve bitbucket integration --------- Signed-off-by: dark0dave <dark0dave@mykolab.com> Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
- Loading branch information
Showing
27 changed files
with
809 additions
and
85 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
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,46 @@ | ||
[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 -%} | ||
{% raw %}\n\n{% endraw -%} | ||
""" | ||
# remove the leading and trailing whitespace from the template | ||
trim = true | ||
# changelog footer | ||
footer = """ | ||
<!-- 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,6 @@ | ||
#!/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 |
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,16 @@ | ||
## 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
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.