-
-
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(codeberg): add Gitea support (#680)
* feat: add gitea integration * fix: several fixes to get gitea working, add test fixture * docs: update docs * fix: cargo fmt * fix: remove dbg trait * fix: tests * chore: remove vscode settings * refactor: cleanup implementation --------- Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
- Loading branch information
Showing
25 changed files
with
944 additions
and
49 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.gitea] | ||
owner = "ThetaDev" | ||
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.gitea.username %} by @{{ commit.gitea.username }}{%- endif -%} | ||
{% if commit.gitea.pr_number %} in #{{ commit.gitea.pr_number }}{%- endif %} | ||
{%- endfor -%} | ||
{% if gitea.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} | ||
{% raw %}\n{% endraw -%} | ||
## New Contributors | ||
{%- endif %}\ | ||
{% for contributor in gitea.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://codeberg.org/ThetaDev/git-cliff-readme-example.git | ||
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,15 @@ | ||
## What's Changed | ||
* Initial commit by @ThetaDev | ||
* docs(project): add README.md by @ThetaDev | ||
* feat(parser): add ability to parse arrays by @ThetaDev | ||
* fix(args): rename help argument due to conflict by @ThetaDev | ||
* docs(example)!: add tested usage example by @ThetaDev | ||
* refactor(parser): expose string functions by @ThetaDev | ||
* chore(release): add release script by @ThetaDev | ||
* feat(config): support multiple file formats by @ThetaDev | ||
* feat(cache): use cache while fetching pages by @ThetaDev | ||
|
||
## New Contributors | ||
* @ThetaDev made their first contribution | ||
|
||
<!-- 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.