Skip to content

Commit

Permalink
chore(release): v5.11.0 (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus authored Feb 19, 2025
1 parent f738ef1 commit 5f82f62
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
prepare-release:
uses: halildurmus/workflows/.github/workflows/prepare_release.yml@main
with:
update_changelog_args: '--include-path "examples/**/*" --include-path "packages/win32/**/*" --include-path "website/docs/**/*" --repository "../../"'
update_changelog_args: '--include-path "packages/win32/**/*" --include-path "website/docs/**/*" --repository "../../"'
working_directory: packages/win32
secrets:
token: ${{ secrets.PAT }}
21 changes: 17 additions & 4 deletions packages/win32/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,30 @@

All notable changes to this project will be documented in this file.

## [5.11.0] - 2025-02-19

### 🚀 Features

- Revert deprecation of top-level constants of enums by @halildurmus in [#960](https://github.com/halildurmus/win32/pull/960)
- Improve projection of flexible array members by @halildurmus in [#959](https://github.com/halildurmus/win32/pull/959)

### 🎨 Styling

- Format with tall-style by @halildurmus in [#957](https://github.com/halildurmus/win32/pull/957)

[5.11.0]: https://github.com/halildurmus/win32/compare/v5.10.1..v5.11.0

## [5.10.1] - 2025-01-27

### 🐛 Bug Fixes

- fix: fix `PRINTER_ENUM_*` constants by [@halildurmus](https://github.com/halildurmus) in [#954](https://github.com/halildurmus/win32/pull/954)
- fix: `nodoc` deprecation fix by [@weasdown](https://github.com/weasdown) in [#949](https://github.com/halildurmus/win32/pull/949)
- Fix `PRINTER_ENUM_*` constants by [@halildurmus](https://github.com/halildurmus) in [#954](https://github.com/halildurmus/win32/pull/954)
- `nodoc` deprecation fix by [@weasdown](https://github.com/weasdown) in [#949](https://github.com/halildurmus/win32/pull/949)

### ⚙️ Miscellaneous Tasks

- add `.gitattributes` to normalize line endings by [@halildurmus](https://github.com/halildurmus)
- tweak git-cliff configuration by [@halildurmus](https://github.com/halildurmus)
- Add `.gitattributes` to normalize line endings by [@halildurmus](https://github.com/halildurmus)
- Tweak git-cliff configuration by [@halildurmus](https://github.com/halildurmus)

## New Contributors ❤️

Expand Down
33 changes: 15 additions & 18 deletions packages/win32/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ All notable changes to this project will be documented in this file.\n
# https://keats.github.io/tera/docs/#introduction
body = """
{% macro print_commit(commit) -%}
{% if commit.remote.pr_title -%}
{%- set commit_message = commit.remote.pr_title -%}
{%- else -%}
{%- set commit_message = commit.message -%}
{%- endif -%}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit_message | split(pat="\n") | first | trim }}\
{% if commit.remote.username %} by {{ self::print_username(username=commit.remote.username) }}{%- endif -%}
{{ commit.message | split(pat="\n") | first | upper_first | trim }}\
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
{% if commit.remote.pr_number %} in \
[#{{ commit.remote.pr_number }}](<REPO>/pull/{{ commit.remote.pr_number }}) \
{%- endif -%}
{% endmacro -%}
{% macro print_username(username) -%}[@{{ username }}](<GITHUB>/{{ username }}){% endmacro -%}
{% macro print_contributor(contributor) -%}
- @{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}](<REPO>/pull/{{ contributor.pr_number }}) \
{%- endif %}
{% endmacro -%}
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
Expand All @@ -55,17 +55,13 @@ body = """
## New Contributors ❤️
{% endif %}\
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
- {{ self::print_username(username=contributor.username) }} \
made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}](<REPO>/pull/{{ contributor.pr_number }}) \
{%- endif %}
{%- endfor -%}
{{ self::print_contributor(contributor=contributor) }}
{%- endfor %}\n
{%- endif %}\n
"""
# template for the changelog footer
footer = """
\n{% for release in releases -%}
{% for release in releases -%}
{% if release.version -%}
{% if release.previous.version -%}
[{{ release.version | trim_start_matches(pat="v") }}]: \
Expand All @@ -74,7 +70,8 @@ footer = """
{% else -%}
[unreleased]: <REPO>/compare/{{ release.previous.version }}..HEAD
{% endif -%}
{% endfor %}"""
{% endfor %}
"""
# remove the leading and trailing s
trim = true
# postprocessors
Expand All @@ -94,8 +91,8 @@ filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# Replace issue numbers
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
# remove issue numbers from commits
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
]
# regex for parsing and grouping commits
commit_parsers = [
Expand Down
2 changes: 1 addition & 1 deletion packages/win32/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: win32
description: >
Access common Win32 APIs directly from Dart using FFI — no C required!
version: 5.10.1
version: 5.11.0
homepage: https://win32.pub
repository: https://github.com/halildurmus/win32
issue_tracker: https://github.com/halildurmus/win32/issues
Expand Down
2 changes: 0 additions & 2 deletions tools/update_changelog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ void main(List<String> args) {
'--tag',
'v$version',
'--include-path',
'examples/**/*',
'--include-path',
'packages/win32/**/*',
'--include-path',
'website/docs/**/*',
Expand Down

0 comments on commit 5f82f62

Please sign in to comment.