You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, this sets the multi-line flag and the ignore case flag:
14
+
For example, this sets the `multiline_flag`and the `ignorecase_flag`:
15
15
16
16
```yaml
17
17
- action: FirstRegExMatch
@@ -24,7 +24,7 @@ For example, this sets the multi-line flag and the ignore case flag:
24
24
25
25
You can also use inline notation `(?<flags>)` where `<flags>` is one or more of `a` (ASCII), `i` (ignore case), `l` (locale), `m` (multi-line), `s` (dot matches all), or `x` (verbose).
26
26
27
-
This is equivalent to the above example, with `(?im)` setting the multi-line and ignore case flags:
27
+
This is equivalent to the above example, with `(?im)` setting the `multiline_flag` and `ignorecase_flag`:
Then create a `version_heading.md.jinja` file in `.github/changelog_templates/` or other [configured template directory](configuration-template_dirs). Its contents should be similar to the following:
[Compare the full difference.]({{ repo_url }}/compare/{{ version.previous_tag }}...{{ version.tag }})
78
+
```
79
+
80
+
```{note}
81
+
If you use this pattern and generate the changelog before tagging the commit, the `version.tag` will always be `HEAD`.
82
+
83
+
You will need to either manually change this or use an automated method such as [bump2version](https://github.com/c4urself/bump2version). [See below for more information.](#incremental-changelog-with-bump2version)
84
+
```
85
+
86
+
For showing a specific commit link, create a `commit.md.jinja` file in `.github/changelog_templates/ or other [configured template directory](configuration-template_dirs). Its contents should include something like
{% for key, val in commit.metadata["trailers"].items() %}
97
+
{% if key not in VALID_AUTHOR_TOKENS %}
98
+
**{{ key }}:** {{ val|join(", ") }}
99
+
100
+
{% endif %}
101
+
{% endfor %}
102
+
```
103
+
104
+
## Incremental changelog with bump2version
105
+
106
+
You can generate the incremental changelog just before using [bump2version](https://github.com/c4urself/bump2version) to bump the version of your project.
107
+
108
+
First, follow the steps for configuring generate-changelog for [incremental change logs](#incremental-change-logs).
109
+
110
+
Then configure bump2version to modify the CHANGELOG.md file:
111
+
112
+
```ini
113
+
[bumpversion:file(version heading):CHANGELOG.md]
114
+
search = Unreleased
115
+
```
116
+
117
+
If you are including links to [version diffs](#providing-links-to-commits-and-version-diffs), also add:
0 commit comments