Skip to content

Commit

Permalink
Merge pull request #213 from jovandeginste/ignore-changelog
Browse files Browse the repository at this point in the history
Exclude some commits from the changelog
  • Loading branch information
jovandeginste authored Aug 2, 2024
2 parents 4d43733 + cb6f09e commit d96cd05
Show file tree
Hide file tree
Showing 14 changed files with 561 additions and 637 deletions.
1,156 changes: 530 additions & 626 deletions CHANGELOG.md

Large diffs are not rendered by default.

42 changes: 31 additions & 11 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,38 @@
body = """
## What's Changed
{%- if version %} in {{ version }}{%- endif -%}
{%- if version %} in {{ version }}{%- endif %}
{# #}
{%- set_global commit_message = "" -%}
{%- set_global commit_author = "" -%}
{%- set_global outside_pr = true -%}
{% for commit in commits %}
{% if commit.github.pr_title -%}
{%- set commit_message = commit.github.pr_title -%}
{%- else -%}
{%- set commit_message = commit.message -%}
{%- if commit.github.pr_labels is containing("skip-release-notes") -%}
{%- continue -%}
{%- endif -%}
{%- if commit.message | split(pat="\n") | first | trim == commit_message -%}
{%- if commit.github.username == commit_author -%}
{%- continue -%}
{%- elif commit.github.username == "" -%}
{%- continue -%}
{%- elif commit.github.username -%}
{% else %}
{%- continue -%}
{%- endif -%}
{%- endif -%}
* {{ commit_message | split(pat="\n") | first | trim }}\
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%}
{% if commit.github.pr_number %} in \
{%- if commit.message | trim | split(pat="\n") | last | trim == "changelog: ignore" -%}
{%- continue -%}
{%- endif -%}
{%- if commit.github.pr_title -%}
{%- set_global commit_message = commit.github.pr_title | split(pat="\n") | first | trim -%}
{%- set_global outside_pr = false -%}
{%- else -%}
{%- set_global commit_message = commit.message | split(pat="\n") | first | trim -%}
{%- endif %}
{% if outside_pr or commit.github.pr_title %}{% else %} {% endif %}- {{ commit_message }}\
{% if commit.github.username %},{% set_global commit_author = commit.github.username %} by @{{ commit.github.username }}{%- endif -%}
{% if commit.github.pr_number %}, in \
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) \
{%- endif %}
{%- endfor -%}
Expand All @@ -32,7 +54,7 @@
## New Contributors
{%- endif %}\
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
* @{{ contributor.username }} made their first contribution
- @{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
{%- endif %}
Expand Down Expand Up @@ -86,8 +108,6 @@
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "newest"
# regex for parsing and grouping commits
commit_parsers = [{ footer = "^changelog: ?ignore", skip = true }]


[remote.github]
Expand Down
Binary file modified docs/dashboard-responsive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/responsive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/single_workout-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/single_workout-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/single_workout-responsive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/single_workout-theme.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/statistics-responsive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/statistics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/upload_workouts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/workout_overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d96cd05

Please sign in to comment.