Skip to content

feat(internal/librarian/java): add README partials loader#6596

Open
yangyzs wants to merge 2 commits into
googleapis:mainfrom
yangyzs:feat/java-readme-partials
Open

feat(internal/librarian/java): add README partials loader#6596
yangyzs wants to merge 2 commits into
googleapis:mainfrom
yangyzs:feat/java-readme-partials

Conversation

@yangyzs

@yangyzs yangyzs commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Note: This pull request builds on top of #6595. Please review and merge #6595 first.

Add loadReadmePartials helper function to load and camel-case custom README partials from .readme-partials.yaml or .yml. Add unit tests in readme_test.go.

For #6515

yangyzs added 2 commits June 30, 2026 15:30
Add toCamelCase, parseGroupIDArtifactID, and parseRepoShortName helpers
to format Maven coordinates, repository names, and identifiers for README
generation. Add unit tests in readme_test.go.

For googleapis#6515
Add loadReadmePartials helper function to load and camel-case custom README
partials from .readme-partials.yaml or .yml. Add unit tests in readme_test.go.

For googleapis#6515
@yangyzs yangyzs requested a review from a team as a code owner June 30, 2026 20:16

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces several helper functions in internal/librarian/java/readme.go to parse Maven distribution coordinates, extract short repository names, convert strings to CamelCase, and load README partials from YAML files, along with comprehensive unit tests in readme_test.go. The review feedback suggests optimizing the toCamelCase function to avoid unnecessary memory allocations from []rune conversions by using utf8.DecodeRuneInString and importing the `

Comment thread internal/librarian/java/readme.go
Comment thread internal/librarian/java/readme.go
@yangyzs yangyzs requested a review from JoeWang1127 June 30, 2026 21:12
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