Skip to content

Commit ffd1ed1

Browse files
committed
Fix CHANGELOG generation issues
1 parent 5a69c41 commit ffd1ed1

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
cache: 'maven'
4949

5050
- name: (Maven) Build
51+
env:
52+
GITHUB_CHANGELOG_TOKEN: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
5153
run: mvn --batch-mode install --file pom.xml
5254

5355
- name: (Maven) Build and run integration tests

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ Install maven and use `mvn install` to build this project and copy the resulting
4040

4141
### Changes
4242

43-
All changes are listed in [CHANGELOG.md](./CHANGELOG.md). The file is generated automatically during "generate-resources" build phase based on merged pull requests and their tags.
43+
All changes are listed in [CHANGELOG.md](./CHANGELOG.md). The file is generated during the `generate-sources` phase when the `releases` Maven profile is activated. To regenerate it locally with PR titles, set the `GITHUB_CHANGELOG_TOKEN` environment variable:
44+
45+
```bash
46+
GITHUB_CHANGELOG_TOKEN=<your-token> mvn clean verify -Preleases
47+
```
48+
49+
Without the token, only dependency updates (extracted from commit messages) will include titles; feature PRs will show only issue numbers.
4450

4551
#### Breaking changes in Version 2.x
4652

0 commit comments

Comments
 (0)