Skip to content

Commit 55bbd27

Browse files
Fix changelog generator config (#66)
1 parent 1de72dc commit 55bbd27

File tree

4 files changed

+42
-8
lines changed

4 files changed

+42
-8
lines changed

src/main/java/io/micrometer/release/single/ChangelogGenerator.java

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ChangelogGenerator {
2727

2828
private static final Logger log = LoggerFactory.getLogger(ChangelogGenerator.class);
2929

30-
static final String INPUT_FILE = "changelog.md";
30+
static final String DEFAULT_OUTPUT_FILE = "changelog.md";
3131

3232
static final String GITHUB_API_URL = "https://api.github.com";
3333

@@ -42,7 +42,7 @@ class ChangelogGenerator {
4242
public ChangelogGenerator(ProcessRunner processRunner) {
4343
this.githubApi = GITHUB_API_URL;
4444
this.githubToken = Input.getGhToken();
45-
this.outputFile = new File(INPUT_FILE);
45+
this.outputFile = new File(DEFAULT_OUTPUT_FILE);
4646
this.processRunner = processRunner;
4747
}
4848

@@ -56,9 +56,27 @@ public ChangelogGenerator(ProcessRunner processRunner) {
5656

5757
File generateChangelog(String githubRefName, String githubOrgRepo, File jarPath) {
5858
log.info("Generating changelog...");
59-
processRunner.run(getJava(), "-jar", jarPath.getAbsolutePath(), githubRefName.replace("v", ""),
60-
outputFile.getAbsolutePath(), "--changelog.repository=" + githubOrgRepo,
61-
"--github.api-url=" + githubApi, "--github.token=" + githubToken);
59+
// @formatter:off
60+
processRunner.run(getJava(), "-jar", jarPath.getAbsolutePath(),
61+
githubRefName.replace("v", ""),
62+
outputFile.getAbsolutePath(),
63+
"--changelog.repository=" + githubOrgRepo,
64+
"--changelog.contributors.exclude.names=shakuzen,jonatan-ivanov",
65+
"--changelog.sections[0].title=:warning: Noteworthy",
66+
"--changelog.sections[0].labels=release notes",
67+
"--changelog.sections[1].title=:star: New Features",
68+
"--changelog.sections[1].labels=enhancement",
69+
"--changelog.sections[2].title=:lady_beetle: Bug Fixes",
70+
"--changelog.sections[2].labels=bug, regression",
71+
"--changelog.sections[3].title=:notebook_with_decorative_cover: Documentation",
72+
"--changelog.sections[3].labels=doc-update, documentation",
73+
"--changelog.sections[4].title=:hammer: Dependency Upgrades",
74+
"--changelog.sections[4].labels=dependency-upgrade, dependencies",
75+
// "--changelog.sections[5].title=:memo: Tasks",
76+
// "--changelog.sections[5].labels=task",
77+
"--github.api-url=" + githubApi,
78+
"--github.token=" + githubToken);
79+
// @formatter:on
6280
return outputFile;
6381
}
6482

src/test/resources/generator/micrometer.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## :notebook_with_decorative_cover: Documentation
2+
3+
- Add docs for multiple MeterTag annotations [#5641](https://github.com/micrometer-metrics/micrometer/pull/5641)
4+
- Add docs for `@MeterTag` for `@Counted` [#5640](https://github.com/micrometer-metrics/micrometer/pull/5640)
5+
- Add docs for JvmThreadDeadlockMetrics [#5614](https://github.com/micrometer-metrics/micrometer/pull/5614)
6+
- Add docs for ForkJoinPool parallelism and pool size metrics [#5611](https://github.com/micrometer-metrics/micrometer/pull/5611)
7+
- Add docs for VirtualThreadMetrics [#5610](https://github.com/micrometer-metrics/micrometer/pull/5610)
8+
19
## :hammer: Dependency Upgrades
210

311
- Bump io.prometheus:prometheus-metrics-bom from 1.3.1 to 1.3.3 [#5649](https://github.com/micrometer-metrics/micrometer/pull/5649)
@@ -13,4 +21,4 @@
1321

1422
Thank you to all the contributors who worked on this release:
1523

16-
@izeye, @jonatan-ivanov, and @shakuzen
24+
@izeye

src/test/resources/processor/micrometer-1.13.9-output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
Thank you to all the contributors who worked on this release:
1515

16-
@izeye and @jonatan-ivanov
16+
@izeye

src/test/resources/processor/micrometer-1.14.0-output.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
- Warn about gauge re-registration [#5688](https://github.com/micrometer-metrics/micrometer/pull/5688)
66
- `executor.queued` metrics of ForkJoinPool does not include queued submissions [#5650](https://github.com/micrometer-metrics/micrometer/issues/5650)
77

8+
## :notebook_with_decorative_cover: Documentation
9+
10+
- Add docs for ForkJoinPool parallelism and pool size metrics [#5611](https://github.com/micrometer-metrics/micrometer/pull/5611)
11+
- Add docs for JvmThreadDeadlockMetrics [#5614](https://github.com/micrometer-metrics/micrometer/pull/5614)
12+
- Add docs for VirtualThreadMetrics [#5610](https://github.com/micrometer-metrics/micrometer/pull/5610)
13+
- Add docs for `@MeterTag` for `@Counted` [#5640](https://github.com/micrometer-metrics/micrometer/pull/5640)
14+
- Add docs for multiple MeterTag annotations [#5641](https://github.com/micrometer-metrics/micrometer/pull/5641)
15+
816
## :hammer: Dependency Upgrades
917

1018
- Bump com.google.auth:google-auth-library-oauth2-http from 1.28.0 to 1.29.0 [#5634](https://github.com/micrometer-metrics/micrometer/pull/5634)
@@ -20,4 +28,4 @@
2028

2129
Thank you to all the contributors who worked on this release:
2230

23-
@izeye, @jonatan-ivanov, and @shakuzen
31+
@izeye

0 commit comments

Comments
 (0)