Skip to content

fix: resolve git authors to GitHub usernames in release notes#3

Merged
machado144 merged 1 commit intomainfrom
fix/contributor-github-usernames
Mar 8, 2026
Merged

fix: resolve git authors to GitHub usernames in release notes#3
machado144 merged 1 commit intomainfrom
fix/contributor-github-usernames

Conversation

@machado144
Copy link
Contributor

Summary

  • Extract GitHub usernames from noreply email addresses in git commits
  • Format contributors as @username links in release notes
  • Works for both AI-generated and git fallback release notes

Test plan

  • Verify go test ./... passes
  • Trigger a release and check contributors section shows @username links

@github-actions
Copy link

github-actions bot commented Mar 8, 2026

✅ StructLint Validation

Metric Count
Checks passed 49
Violations 0

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core Changes

  • Added AuthorEmail field to the DetailedCommit struct to store the author's email address.
  • Enhanced GitService.GetCommitDetails to fetch the author's email and, if it's a GitHub noreply email, convert the Author field to a @username format.
  • Modified PromptService.GenerateGitFallbackNotes to render @username authors as clickable GitHub profile links in the generated release notes.

Verdict

Approve: The changes correctly implement the feature to resolve GitHub usernames from commit emails and format them as links in release notes. The code is clear, functional, and introduces no regressions or critical issues.


Code review performed by GEMINI - gemini-2.5-flash.

@machado144 machado144 merged commit a67bbb5 into main Mar 8, 2026
7 of 8 checks passed
@machado144 machado144 deleted the fix/contributor-github-usernames branch March 8, 2026 15:11
machado144 added a commit that referenced this pull request Mar 8, 2026
## Summary
- Extract GitHub usernames from noreply email addresses in git commits
- Format contributors as @username links in release notes
- Works for both AI-generated and git fallback release notes

## Test plan
- [ ] Verify `go test ./...` passes
- [ ] Trigger a release and check contributors section shows @username
links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant