Skip to content

refactor(internal/librarian/php): use helper funcs for generateAPI - #6718

Merged
zhumin8 merged 3 commits into
googleapis:mainfrom
zhumin8:php-refactor-generateapi
Jul 9, 2026
Merged

refactor(internal/librarian/php): use helper funcs for generateAPI#6718
zhumin8 merged 3 commits into
googleapis:mainfrom
zhumin8:php-refactor-generateapi

Conversation

@zhumin8

@zhumin8 zhumin8 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Refactor generateAPI for readability.

Followup to #6703.

For #6629

@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 refactors the PHP API generation logic in internal/librarian/php/generate.go by extracting several helper functions: gatherTargetProtos, buildProtocArgs, and extractOutput. It also removes unnecessary blank lines and adds comprehensive unit tests for these new helper functions in generate_test.go. I have no further feedback to provide as the changes are clean, well-tested, and follow the repository's style guidelines.

@zhumin8
zhumin8 marked this pull request as ready for review July 9, 2026 15:55
@zhumin8
zhumin8 requested a review from a team as a code owner July 9, 2026 15:55
@zhumin8
zhumin8 requested review from JoeWang1127 and sofisl July 9, 2026 15:55
@zhumin8
zhumin8 enabled auto-merge (squash) July 9, 2026 17:25
@zhumin8
zhumin8 merged commit 62f83a0 into googleapis:main Jul 9, 2026
27 checks passed
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.

2 participants