Skip to content

Commit 2d734bf

Browse files
committed
fix: enable proper contributor attribution in GitHub releases
Fix JReleaser configuration to show actual commit authors instead of incorrectly parsed Java annotations as contributors. Issues fixed: - Enable contributor extraction from git history (was disabled) - Escape Java annotations (@reference, @RedisKey, etc.) in changelog to prevent GitHub from treating them as user mentions - Filter out bot accounts (GitHub Actions) from contributor list - Add regex replacer to wrap all @annotations in backticks This ensures releases show real contributors instead of fake users like "reference" and "RedisKey" that were being parsed from annotation mentions in the changelog.
1 parent 99aa008 commit 2d734bf

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

jreleaser.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,32 @@ release:
3030
changelog:
3131
formatted: ALWAYS
3232
preset: conventional-commits
33+
includeLabels:
34+
- 'feat'
35+
- 'feature'
36+
- 'fix'
37+
- 'docs'
38+
- 'chore'
39+
- 'perf'
40+
- 'refactor'
41+
- 'test'
42+
- 'build'
43+
- 'ci'
3344
contributors:
34-
enabled: false
45+
enabled: true
46+
format: '- {{contributorName}} ({{contributorUsernameAsLink}})'
47+
extraProperties:
48+
categorizeScopes: false
49+
replacers:
50+
# Escape Java annotations to prevent GitHub from treating them as user mentions
51+
- search: '\s@([A-Z][a-zA-Z]+)'
52+
replace: ' `@$1`'
53+
hide:
54+
contributors:
55+
- 'GitHub Actions'
56+
- 'actions'
57+
- 'github-actions'
58+
- 'github-actions[bot]'
3559

3660
signing:
3761
active: ALWAYS

0 commit comments

Comments
 (0)